]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf trace: Guard __probe_ip suppression with evsel__is_probe()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2026 01:17:41 +0000 (22:17 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2026 01:17:41 +0000 (22:17 -0300)
commitd669529868b355e1f10ff869539dc995cd25db3f
treeea10d9199d12cfcf7f556ecdb744b3dab07ad02f
parent9212e395c64d80f7b6af314ff6dfc4b526571493
perf trace: Guard __probe_ip suppression with evsel__is_probe()

trace__fprintf_tp_fields() compares every field name against
"__probe_ip" for all tracepoint events, but this field is only
implicitly added by the Ftrace subsystem to bare dynamic probes.

Add an evsel__is_probe() check before the strcmp so the string
comparison is skipped entirely for non-probe events.

Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c