diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-07-14 02:56:48 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-16 17:25:49 -0700 |
commit | 3c561c547c396038c7690645cff4f98181c62d49 (patch) | |
tree | 5b3ef2705c6e5137d2965f24855b29ab7601d363 /net/switchdev/switchdev.c | |
parent | 6c628ed95e1b41f98766268593196adb7a0cb9a7 (diff) |
selftests: drv-net: add helper/wrapper for bpftrace
bpftrace is very useful for low level driver testing. perf or trace-cmd
would also do for collecting data from tracepoints, but they require
much more post-processing.
Add a wrapper for running bpftrace and sanitizing its output.
bpftrace has JSON output, which is great, but it prints loose objects
and in a slightly inconvenient format. We have to read the objects
line by line, and while at it return them indexed by the map name.
Reviewed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250714-netpoll_test-v7-1-c0220cfaa63e@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions