aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorRavi Bangoria <[email protected]>2021-03-16 21:00:48 +0530
committerDaniel Borkmann <[email protected]>2021-03-17 00:16:59 +0100
commit56901d483bf14ca729a6c4e06d2b49590b9f1971 (patch)
tree444d7941d0f2786675e63270beabfd041b3f7541 /tools/perf/scripts/python/event_analyzing_sample.py
parentebda107e5f222a086c83ddf6d1ab1da97dd15810 (diff)
selftests/bpf: Use nanosleep() syscall instead of sleep() in get_cgroup_id
Glibc's sleep() switched to clock_nanosleep() from nanosleep(), and thus syscalls:sys_enter_nanosleep tracepoint is not hitting which is causing testcase failure. Instead of depending on glibc sleep(), call nanosleep() systemcall directly. Before: # ./get_cgroup_id_user ... main:FAIL:compare_cgroup_id kern cgid 0 user cgid 483 After: # ./get_cgroup_id_user ... main:PASS:compare_cgroup_id Signed-off-by: Ravi Bangoria <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions