diff options
| author | Leo Yan <[email protected]> | 2025-03-04 11:12:33 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-03-05 17:13:19 +0000 |
| commit | 1e66dcff7b9bae2abc928d0e24fbb68e206365bb (patch) | |
| tree | 8a5d83c2fb496d62cc472219420cafc2b1393fb4 /tools/perf/util/branch.h | |
| parent | perf script: Add not taken event for branches (diff) | |
| download | kernel-1e66dcff7b9bae2abc928d0e24fbb68e206365bb.tar.gz kernel-1e66dcff7b9bae2abc928d0e24fbb68e206365bb.zip | |
perf script: Add not taken event for branch stack
The branch stack has an existed field for printing mispredict, extend
the field for printing events and add support not-taken event.
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/branch.h')
| -rw-r--r-- | tools/perf/util/branch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/branch.h b/tools/perf/util/branch.h index b80c12c74bbb..7429530fa774 100644 --- a/tools/perf/util/branch.h +++ b/tools/perf/util/branch.h @@ -25,7 +25,8 @@ struct branch_flags { u64 spec:2; u64 new_type:4; u64 priv:3; - u64 reserved:31; + u64 not_taken:1; + u64 reserved:30; }; }; }; |
