summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_send_signal_kern.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-03-08 17:39:29 -0800
committerAndrii Nakryiko <andrii@kernel.org>2022-03-08 17:39:29 -0800
commit3399dd9f372bf0f4f3fb1fb11eb60ebd7b52d79c (patch)
tree57ffe5074f8f389437e8ea468731b0b3f2e599e1 /tools/testing/selftests/bpf/progs/test_send_signal_kern.c
parent7fd9fd46a459272e641be78c1cc36baab1921fa1 (diff)
parentba83af059153441d77bc2dbb4cd22421b8a34107 (diff)
Merge branch 'BPF test_progs tests improvement'
Mykola Lysenko says: ==================== First patch reduces the sample_freq to 1000 to ensure test will work even when kernel.perf_event_max_sample_rate was reduced to 1000. Patches for send_signal and find_vma tune the test implementation to make sure needed thread is scheduled. Also, both tests will finish as soon as possible after the test condition is met. ==================== Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_send_signal_kern.c')
-rw-r--r--tools/testing/selftests/bpf/progs/test_send_signal_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_send_signal_kern.c b/tools/testing/selftests/bpf/progs/test_send_signal_kern.c
index b4233d3efac2..92354cd72044 100644
--- a/tools/testing/selftests/bpf/progs/test_send_signal_kern.c
+++ b/tools/testing/selftests/bpf/progs/test_send_signal_kern.c
@@ -10,7 +10,7 @@ static __always_inline int bpf_send_signal_test(void *ctx)
{
int ret;
- if (status != 0 || sig == 0 || pid == 0)
+ if (status != 0 || pid == 0)
return 0;
if ((bpf_get_current_pid_tgid() >> 32) == pid) {