]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Clean up open-coded gettid syscall invocations
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Mon, 4 Nov 2024 17:19:58 +0000 (09:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:19 +0000 (13:02 +0100)
commite551a183d635811faa0944705065f6d375e5c920
treeec12b720471de10844ca7af6327ae424372af6b1
parent86b7ebddab03bcb2b738eb07fe4a751bd82abab9
selftests/bpf: Clean up open-coded gettid syscall invocations

commit 0e2fb011a0ba8e2258ce776fdf89fbd589c2a3a6 upstream.

Availability of the gettid definition across glibc versions supported by
BPF selftests is not certain. Currently, all users in the tree open-code
syscall to gettid. Convert them to a common macro definition.

Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241104171959.2938862-3-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reported-by: Colm Harrington <colm.harrington@oracle.com>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
12 files changed:
tools/testing/selftests/bpf/benchs/bench_trigger.c
tools/testing/selftests/bpf/bpf_util.h
tools/testing/selftests/bpf/map_tests/task_storage_map.c
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/prog_tests/linked_funcs.c
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c