diff options
author | Hou Tao <[email protected]> | 2022-10-11 15:12:49 +0800 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-10-13 12:09:19 -0700 |
commit | 62c69e89e81bfbdb9a87ae3e0599dcc6aacf786b (patch) | |
tree | f3fd7ad771f817ed752b19f95481a4b903d9d694 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | e94e0a2d3730cd718a3a67682b038b05fa40d2a7 (diff) |
selftests/bpf: Use sys_pidfd_open() helper when possible
SYS_pidfd_open may be undefined for old glibc, so using sys_pidfd_open()
helper defined in task_local_storage_helpers.h instead to fix potential
build failure.
And according to commit 7615d9e1780e ("arch: wire-up pidfd_open()"), the
syscall number of pidfd_open is always 434 except for alpha architure,
so update the definition of __NR_pidfd_open accordingly.
Signed-off-by: Hou Tao <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions