]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix pid check in fexit_sleep test
authorYucong Sun <sunyucong@gmail.com>
Wed, 6 Oct 2021 18:56:17 +0000 (11:56 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Oct 2021 22:17:00 +0000 (15:17 -0700)
commit4754cbaec112a70041b8a0880cbceae12f469277
treed4c646c5b0499e3f0009b859fa4d26db4fb08e76
parent7065d80fe8ccf9ebd22aa3f8a1a34bfe414a14a5
selftests/bpf: Fix pid check in fexit_sleep test

bpf_get_current_pid_tgid() returns u64, whose upper 32 bits are the same
as userspace getpid() return value.

Signed-off-by: Yucong Sun <sunyucong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211006185619.364369-13-fallentree@fb.com
tools/testing/selftests/bpf/progs/fexit_sleep.c