aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLeo Yan <[email protected]>2025-03-04 11:12:32 +0000
committerNamhyung Kim <[email protected]>2025-03-05 17:13:19 +0000
commit4caa971050875ef17491ccf7c8d6defd4d99763f (patch)
tree7c77954c2c05349858f4e219b0cd2791032b97a2 /tools/perf/util/trace-event-scripting.c
parentperf script: Separate events from branch types (diff)
downloadkernel-4caa971050875ef17491ccf7c8d6defd4d99763f.tar.gz
kernel-4caa971050875ef17491ccf7c8d6defd4d99763f.zip
perf script: Add not taken event for branches
Some hardware (e.g., Arm SPE) can trace the not taken event for branches. Add a flag for this event and support printing it. Reviewed-by: Ian Rogers <[email protected]> Reviewed-by: James Clark <[email protected]> Signed-off-by: Leo Yan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
-rw-r--r--tools/perf/util/trace-event-scripting.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event-scripting.c b/tools/perf/util/trace-event-scripting.c
index 55d7e4e612d5..29cc467be14a 100644
--- a/tools/perf/util/trace-event-scripting.c
+++ b/tools/perf/util/trace-event-scripting.c
@@ -317,6 +317,7 @@ static const struct {
const char *name;
} branch_events[] = {
{PERF_IP_FLAG_BRANCH_MISS, "miss"},
+ {PERF_IP_FLAG_NOT_TAKEN, "not_taken"},
{0, NULL}
};