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

Dmitry V. Levin ldv at altlinux.org
Fri Apr 17 22:26:01 UTC 2020


On Fri, Apr 17, 2020 at 11:32:50PM +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

Apparently, this test fails on some platforms.
I see it failing on ppc and mips, but other platforms also could be
affected.  On these platforms, mkstemp implementation invokes
gettimeofday, this results to fcntl and fcntl64 executables being filtered
by -e%clock.


-- 
ldv


More information about the Strace-devel mailing list