summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMykyta Yatsenko <yatsenko@meta.com>2026-05-18 08:23:17 -0700
committerSteven Rostedt <rostedt@goodmis.org>2026-07-28 07:18:48 -0400
commit74ae53cb7c6a1b101b7c9bf6d2fea3ed2a29db87 (patch)
tree31dee581b2a8b24479a5c876327009c54a8ebffd /tools/perf/scripts/python
parenteadc0725ab8d38c05148fce49f8d5c6a0e01f062 (diff)
selftests/bpf: Add test for tracepoint btf_ids tracefs file
Read events/bpf_testmod/bpf_testmod_test_read/btf_ids and verify the exported FUNC_PROTO matches the testmod tracepoint signature (__data, struct task_struct *task, struct bpf_testmod_test_read_ctx *ctx) and the record struct trace_event_raw_bpf_testmod_test_read carries the fields declared by TP_STRUCT__entry. Use the testmod tracepoint so the test exercises the module/split-BTF path (btf_relocate_id) rather than vmlinux only, and falls back from /sys/kernel/tracing to /sys/kernel/debug/tracing when tracefs is not mounted at the new location. Link: https://patch.msgid.link/20260518-generic_tracepoint-v2-3-b755a5cf67bb@meta.com Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions