Skip to contentSkip to conversation

tools/perf/design: Synchronize the definition of enum perf_hw_id with code

PATCH Applied Like Xu 2 participants 2 messages Nov 9, 2021 – Nov 11, 2021 perf events

lore
Share & tools
lore

Like Xu

author
#0 lore raw

PATCH 1/1 tools/perf/design: Synchronize the definition of enum perf_hw_id with code

From: Like Xu <[email protected]>

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.

---
 tools/perf/design.txt | 3 +++
 1 file changed, 3 insertions(+)
tools/perf/design.txt +3 -0
index a42fab308ff6..aa8cfeabb743 100644
@@ -106,6 +106,9 @@ enum perf_hw_id {
 	PERF_COUNT_HW_BRANCH_INSTRUCTIONS	= 4,
 	PERF_COUNT_HW_BRANCH_MISSES		= 5,
 	PERF_COUNT_HW_BUS_CYCLES		= 6,
+	PERF_COUNT_HW_STALLED_CYCLES_FRONTEND	= 7,
+	PERF_COUNT_HW_STALLED_CYCLES_BACKEND	= 8,
+	PERF_COUNT_HW_REF_CPU_CYCLES		= 9,
 };
 
 These are standardized types of events that work relatively uniformly
Signature · 1 line
2.33.0
maintainer Applied
#1 lore raw

Em Tue, Nov 09, 2021 at 05:01:47PM +0800, Like Xu escreveu:

Quoted 7 lines

From: Like Xu <[email protected]>

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.

Thanks, applied.

- Arnaldo

Quoted 21 lines
---
 tools/perf/design.txt | 3 +++
 1 file changed, 3 insertions(+)
tools/perf/design.txt +3 -0
index a42fab308ff6..aa8cfeabb743 100644
@@ -106,6 +106,9 @@ enum perf_hw_id {
 	PERF_COUNT_HW_BRANCH_INSTRUCTIONS	= 4,
 	PERF_COUNT_HW_BRANCH_MISSES		= 5,
 	PERF_COUNT_HW_BUS_CYCLES		= 6,
+	PERF_COUNT_HW_STALLED_CYCLES_FRONTEND	= 7,
+	PERF_COUNT_HW_STALLED_CYCLES_BACKEND	= 8,
+	PERF_COUNT_HW_REF_CPU_CYCLES		= 9,
 };
 
 These are standardized types of events that work relatively uniformly
Signature · 1 line
2.33.0
Signature · 1 line
- Arnaldo