[PATCH 3/3] Add test for %clock trace class

Dmitry V. Levin ldv at altlinux.org
Thu Apr 16 23:37:24 UTC 2020


On Fri, Apr 17, 2020 at 12:04:13AM +0200, Ákos Uzonyi wrote:
> * tests/Makefile.am (EXTRA_DIST): Add trace_clock.in.
> * tests/gen_tests.in (trace_clock): New entry.
> * tests/trace_clock.in: New file.
> 
> Signed-off-by: Ákos Uzonyi <uzonyi.akos at gmail.com>
> ---
>  tests/Makefile.am    | 1 +
>  tests/gen_tests.in   | 1 +
>  tests/trace_clock.in | 5 +++++
>  3 files changed, 7 insertions(+)
>  create mode 100644 tests/trace_clock.in
> 
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index 18bd5f7f..fb1d4b14 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -533,6 +533,7 @@ EXTRA_DIST = \
>  	strace.supp \
>  	sun_path.expected \
>  	syntax.sh \
> +	trace_clock.in \
>  	trace_creds.in \
>  	trace_fstat.in \
>  	trace_fstatfs.in \
> diff --git a/tests/gen_tests.in b/tests/gen_tests.in
> index 8949acde..8b13943b 100644
> --- a/tests/gen_tests.in
> +++ b/tests/gen_tests.in
> @@ -658,6 +658,7 @@ timer_xettime	-e trace=timer_create,timer_settime,timer_gettime
>  timerfd_xettime	-e trace=timerfd_create,timerfd_settime,timerfd_gettime
>  times	-esignal=none
>  times-fail	-a12 -e trace=times
> +trace_clock	test_trace_expr 'clock_nanosleep|times' -e%clock
>  trace_creds	test_trace_expr '([gs]et[^p]*([gu]id|groups)|caps|prctl|[fl]?chown|print(path-umovestr|strn-umoven)-undumpable|ptrace|quotactl|rt_sigtimedwait|rt_(tg)?sigqueueinfo).*' -e%creds
>  trace_fstat	test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full
>  trace_fstatfs	test_trace_expr '' -e%fstatfs
> diff --git a/tests/trace_clock.in b/tests/trace_clock.in
> new file mode 100644
> index 00000000..5042b091
> --- /dev/null
> +++ b/tests/trace_clock.in
> @@ -0,0 +1,5 @@
> +adjtimex -a0
> +clock_adjtime -a0
> +clock_xettime -a0
> +xettimeofday -a0
> +time -a0

Why -a0?


-- 
ldv


More information about the Strace-devel mailing list