Re: [PATCH v1 26/28] cyclictest.8: Options: Reference clock_getres(2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 4 Jul 2025, Ahmed S. Darwish wrote:

> The cyclictest's manpage references CLOCK_MONOTONIC and CLOCK_REALTIME
> multiple times without providing a relevant description or reference.
> 
> Reference clock_getres(2) where such clocks are extensively described.
> 
> Pick the Linux version, instead of the POSIX (3p) one, as the former has
> details that are relevant to cyclictest's "--secaligned" implementation;
> i.e., Linux's CLOCK_MONOTONIC starts from 0.
> 
> Signed-off-by: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>
> ---
>  src/cyclictest/cyclictest.8 | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/cyclictest/cyclictest.8 b/src/cyclictest/cyclictest.8
> index 6982234..12fb9c1 100644
> --- a/src/cyclictest/cyclictest.8
> +++ b/src/cyclictest/cyclictest.8
> @@ -100,11 +100,15 @@ Obsolete option.  Please use \-\-default\-system instead.
>  .
>  .TP
>  .B \-c, \-\-clock=CLOCK
> -select clock
> +Select the system clock to be used for calculating the measuring thread's
> +latency. Allowed CLOCK values are:
>  .br
>  0 = CLOCK_MONOTONIC (default)
>  .br
>  1 = CLOCK_REALTIME
> +.br
> +For more information on the Linux implementation of such clocks, check
> +.MR clock_getres 2
>  .
>  .TP
>  .B \-x, \-\-posix_timers
> -- 
> 2.49.0
> 
> 
> 
Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux