aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorLeo Yan <[email protected]>2025-03-04 11:12:31 +0000
committerNamhyung Kim <[email protected]>2025-03-05 17:13:19 +0000
commit88b1473135e4c6667bac12aff25be11399cf8819 (patch)
treee10baded3b87b2ea4a35fdf593f7fe5246a01aed /tools/perf/builtin-script.c
parentperf script: Refactor sample_flags_to_name() function (diff)
downloadkernel-88b1473135e4c6667bac12aff25be11399cf8819.tar.gz
kernel-88b1473135e4c6667bac12aff25be11399cf8819.zip
perf script: Separate events from branch types
Branch types and events are two different things. A branch type can be a conditional branch, an indirect branch, a procedure call, a return, or an exception taken, etc. The extra event information is provided for what happens during a branch, e.g. if a branch is mispredicted or not taken (specific to conditional branches). To deliver information about branches, this commit separates events from branch types. It parses branch types first, then appends event strings embraced by the '/' character. If multiple events occur, the events is separated with a comma (,). Also add a minor improvement by adding char 'm' in char array for branch mispredict event. Below are extracted sample flags. Before: branch: br miss instructions: br miss After: branch: jmp/miss/ instructions: jmp/miss/ 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/builtin-script.c')
0 files changed, 0 insertions, 0 deletions