aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorRavi Bangoria <[email protected]>2021-03-16 15:30:48 +0000
committerDaniel Borkmann <[email protected]>2021-03-16 23:16:59 +0000
commit56901d483bf14ca729a6c4e06d2b49590b9f1971 (patch)
tree444d7941d0f2786675e63270beabfd041b3f7541 /tools/lib/bpf/bpf_helpers.h
parentselftests/bpf: Fix warning comparing pointer to 0 (diff)
downloadkernel-56901d483bf14ca729a6c4e06d2b49590b9f1971.tar.gz
kernel-56901d483bf14ca729a6c4e06d2b49590b9f1971.zip
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/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions