From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v8 1/2] doc: Add missing API references to api_c_tests.rst
Date: Fri, 12 Jun 2026 12:17:02 +0200 [thread overview]
Message-ID: <aivcnnkJVwLQIP22@yuki.lan> (raw)
In-Reply-To: <20260612-doc_add_missing_headers-v8-1-a4639c49cad8@suse.com>
Hi!
Some of the fuzzy sync struct member descriptions were simplified too
much. Suggestions below.
> /**
> - * The state of a two way synchronisation or race.
> + * struct tst_fzsync_pair - The state of a two way synchronisation or race.
> + * @avg_alpha: Rate at which old diff samples are forgotten (default 0.25).
> + * @a_start: Internal; Thread A start time.
> + * @b_start: Internal; Thread B start time.
> + * @a_end: Internal; Thread A end time.
> + * @b_end: Internal; Thread B end time.
> + * @diff_ss: Internal; Avg. difference between a_start and b_start.
> + * @diff_sa: Internal; Avg. difference between a_start and a_end.
> + * @diff_sb: Internal; Avg. difference between b_start and b_end.
> + * @diff_ab: Internal; Avg. difference between a_end and b_end.
> + * @spins: Internal; Number of spins while waiting for the slower thread.
> + * @spins_avg: Internal; Average spins stat.
> + * @delay: Internal; Number of spins to use in the delay.
We need to add this here (otherwise the information is lost):
A negative value delays thread A and a positive delays thread B.
> + * @delay_bias: Internal; Bias added to delay. + * @sampling:
> Internal; Sampling state or remaining count.
^ If possitive stores the number of samples
left. If zero or negative stores sampling
state.
> + * @min_samples: Minimum samples before random delays are calculated (default 1024).
> + * @max_dev_ratio: Maximum allowed proportional average deviation (default 0.1).
^
Maximum allowed proportional average deviation, in range (0.0, 1.0),
before random delays are applied. It's ratio of average_deviation /
total_time (default 0.1 i.e. avg deviation at most 10%).
> + * @a_cntr: Internal; Atomic counter used by fzsync_pair_wait().
> + * @b_cntr: Internal; Atomic counter used by fzsync_pair_wait().
> + * @exit: Internal; Used by tst_fzsync_pair_exit() and fzsync_pair_wait().
> + * @exec_time_start: Internal; Test time remaining on tst_fzsync_pair_reset().
> + * @exec_loops: Maximum number of iterations to execute.
> + * @exec_loop: Internal; Current loop index.
> + * @thread_b: Internal; The second thread or 0.
> + * @yield_in_wait: Yield CPU while waiting on single-core machines.
^
Yield CPU while waiting, set automatically on single-core
machines.
With these adjusted:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-06-12 10:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-12 8:27 [LTP] [PATCH v8 0/2] doc: Add missing headers and complete API docs Andrea Cervesato
2026-06-12 8:27 ` [LTP] [PATCH v8 1/2] doc: Add missing API references to api_c_tests.rst Andrea Cervesato
2026-06-12 10:17 ` Cyril Hrubis [this message]
2026-06-12 12:27 ` [LTP] " linuxtestproject.agent
2026-06-12 8:27 ` [LTP] [PATCH v8 2/2] doc: complete struct tst_test documentation Andrea Cervesato
2026-06-12 12:11 ` Cyril Hrubis
2026-06-12 14:27 ` [LTP] [PATCH v8 0/2] doc: Add missing headers and complete API docs Andrea Cervesato via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aivcnnkJVwLQIP22@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.