diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-05-21 09:34:00 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-05-25 10:46:02 -0700 |
commit | 70342420a1cf1173bdec456e5fa574a804e422db (patch) | |
tree | 4636693b5cc3ec019e1c1e69b420f136b41b0ee1 /kernel | |
parent | 04d939a2ab229a3821f04fc81f7c027842f501f1 (diff) |
selftests/bpf: extend multi-uprobe tests with child thread case
Extend existing multi-uprobe tests to test that PID filtering works
correctly. We already have child *process* tests, but we need also child
*thread* tests. This patch adds spawn_thread() helper to start child
thread, wait for it to be ready, and then instruct it to trigger desired
uprobes.
Additionally, we extend BPF-side code to track thread ID, not just
process ID. Also we detect whether extraneous triggerings with
unexpected process IDs happened, and validate that none of that happened
in practice.
These changes prove that fixed PID filtering logic for multi-uprobe
works as expected. These tests fail on old kernels.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20240521163401.3005045-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions