]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test: Fix nanosleep check in the ftrace test
authorMartin Kaiser <martin@kaiser.cx>
Tue, 28 Apr 2026 14:38:46 +0000 (16:38 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 11 May 2026 17:15:49 +0000 (14:15 -0300)
commita4cbd51862d449e487866c173f5dff46329da76c
tree66258aea93b1f4242c7ab22c169bb83b9e1d1e6d
parent8c8f2093614373ea8179b562320212a25cf937c0
perf test: Fix nanosleep check in the ftrace test

The perf ftrace test case runs:

  perf ftrace profile --graph-opts depth=5 sleep 0.1

and checks that the output contains a *clock_nanosleep function with a
count of 1.

This fails on a risc-v system that uses musl as its C library. musl's
nanosleep syscall wrapper uses either the nanosleep or the
clock_nanosleep syscall.

Filter for sys_*nanosleep to allow both syscalls.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/ftrace.sh