[PATCH bpf-next 0/2] selftests/bpf: Add uprobe pid filter test

From: Jiri Olsa
Date: Thu Aug 29 2024 - 15:54:58 EST


hi,
in response to [1] patch, I'm adding bpf selftest that confirms the
change fixes problem for bpf programs trigered by return uprobe created
over perf event.

Oleg pointed out other issues with uprobe_multi pid filter,
I plan to send another patchset for that.

thanks,
jirka


[1] https://lore.kernel.org/linux-trace-kernel/ME0P300MB0416034322B9915ECD3888649D882@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
---
Jiri Olsa (2):
selftests/bpf: Add child argument to spawn_child function
selftests/bpf: Add uprobe pid filter test for multiple processes

tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
tools/testing/selftests/bpf/progs/uprobe_multi_pid_filter.c | 61 ++++++++++++++++++++++++++++++
2 files changed, 203 insertions(+), 46 deletions(-)
create mode 100644 tools/testing/selftests/bpf/progs/uprobe_multi_pid_filter.c