linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/3] selftests/bpf: benchmark all symbols for kprobe-multi
@ 2025-08-26  8:04 Menglong Dong
  2025-08-26  8:04 ` [PATCH bpf-next v2 1/3] selftests/bpf: move get_ksyms and get_addrs to trace_helpers.c Menglong Dong
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Menglong Dong @ 2025-08-26  8:04 UTC (permalink / raw)
  To: andrii
  Cc: eddyz87, mykolal, ast, daniel, martin.lau, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, shuah, yikai.lin,
	memxor, bpf, linux-kselftest, linux-kernel

Add the benchmark testcase "kprobe-multi-all", which will hook all the
kernel functions during the testing.

This series is separated out from [1].

Changes since V1:
* introduce trace_blacklist instead of copy-pasting strcmp in the 2nd
  patch
* use fprintf() instead of printf() in 3rd patch

Link: https://lore.kernel.org/bpf/20250817024607.296117-1-dongml2@chinatelecom.cn/ [1]
Menglong Dong (3):
  selftests/bpf: move get_ksyms and get_addrs to trace_helpers.c
  selftests/bpf: skip recursive functions for kprobe_multi
  selftests/bpf: add benchmark testing for kprobe-multi-all

 tools/testing/selftests/bpf/bench.c           |   4 +
 .../selftests/bpf/benchs/bench_trigger.c      |  53 ++++
 .../selftests/bpf/benchs/run_bench_trigger.sh |   4 +-
 .../bpf/prog_tests/kprobe_multi_test.c        | 220 +---------------
 .../selftests/bpf/progs/trigger_bench.c       |  12 +
 tools/testing/selftests/bpf/trace_helpers.c   | 234 ++++++++++++++++++
 tools/testing/selftests/bpf/trace_helpers.h   |   3 +
 7 files changed, 311 insertions(+), 219 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-29 13:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26  8:04 [PATCH bpf-next v2 0/3] selftests/bpf: benchmark all symbols for kprobe-multi Menglong Dong
2025-08-26  8:04 ` [PATCH bpf-next v2 1/3] selftests/bpf: move get_ksyms and get_addrs to trace_helpers.c Menglong Dong
2025-08-26  8:04 ` [PATCH bpf-next v2 2/3] selftests/bpf: skip recursive functions for kprobe_multi Menglong Dong
2025-08-26  8:04 ` [PATCH bpf-next v2 3/3] selftests/bpf: add benchmark testing for kprobe-multi-all Menglong Dong
2025-08-26 18:48   ` Jiri Olsa
2025-08-27  6:54     ` Menglong Dong
2025-08-29  7:01     ` Menglong Dong
2025-08-29 13:43       ` Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).