diff options
| author | 2026-03-13 11:45:40 +0800 | |
|---|---|---|
| committer | 2026-03-18 17:16:06 -0700 | |
| commit | 4a4fedb8a523e35d2ad80637bae85de3ee56646b (patch) | |
| tree | 4a50eadeeed26067713c54be8037620800786244 /scripts/Makefile.thinlto | |
| parent | selftests/bpf: Avoid spurious failures perf_link (diff) | |
selftests/bpf: Isolate fmod_ret hooks by pid
modify_return's fmod_ret programs can override bpf_modify_return_test()'s
return value, which conflicts with get_func_ip_test when selftests run in
parallel.
Store current tgid in BSS and make modify_return hooks act only for that
tgid. For other tasks, fentry/fexit become no-ops and fmod_ret returns the
original ret.
Drop the serial-only restriction and remove the TODO comment.
Tested:
sudo ./test_progs -t modify_return
sudo ./test_progs -t get_func_ip_test
sudo ./test_progs -j$(nproc) -t modify_return
sudo ./test_progs -j$(nproc) -t get_func_ip_test
Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
Link: https://lore.kernel.org/r/20260313034540.255805-1-sun.jian.kdev@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
