lkml.org 
[lkml]   [2021]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tools/perf/design: Synchronize the definition of enum perf_hw_id with code
Date
From: Like Xu <likexu@tencent.com>

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 <likexu@tencent.com>
---
tools/perf/design.txt | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tools/perf/design.txt b/tools/perf/design.txt
index a42fab308ff6..aa8cfeabb743 100644
--- a/tools/perf/design.txt
+++ b/tools/perf/design.txt
@@ -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
--
2.33.0
\
 
 \ /
  Last update: 2021-11-09 10:05    [W:2.311 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site