Skip to content

Commit 438f1a9

Browse files
Like Xuacmel
authored andcommitted
perf design.txt: Synchronize the definition of enum perf_hw_id with code
We're not surprised that there are tons of Linux users who only read the documentation to learn about the kernel. Let's update the perf part for common hardware events since three new *generic* hardware events were added. Signed-off-by: Like Xu <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 09e9afa commit 438f1a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/perf/design.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ enum perf_hw_id {
106106
PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 4,
107107
PERF_COUNT_HW_BRANCH_MISSES = 5,
108108
PERF_COUNT_HW_BUS_CYCLES = 6,
109+
PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 7,
110+
PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 8,
111+
PERF_COUNT_HW_REF_CPU_CYCLES = 9,
109112
};
110113

111114
These are standardized types of events that work relatively uniformly

0 commit comments

Comments
 (0)