[PATCH v4 2/6] perf: Fix wrong name in comment for struct perf_cpu_context
Alexandru Elisei
alexandru.elisei at arm.com
Thu Jan 27 08:17:55 PST 2022
Commit 0793a61d4df8 ("performance counters: core code") added the perf
subsystem (then called Performance Counters) to Linux, creating the struct
perf_cpu_context. The comment for the struct referred to it as a "struct
perf_counter_cpu_context".
Commit cdd6c482c9ff ("perf: Do the big rename: Performance Counters ->
Performance Events") changed the comment to refer to a "struct
perf_event_cpu_context", which was still the wrong name for the struct.
Change the comment to say "struct perf_cpu_context".
CC: Thomas Gleixner <tglx at linutronix.de>
CC: Ingo Molnar <mingo at redhat.com>
Signed-off-by: Alexandru Elisei <alexandru.elisei at arm.com>
---
include/linux/perf_event.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 117f230bcdfd..c8f4806a73db 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -875,7 +875,7 @@ struct perf_event_context {
#define PERF_NR_CONTEXTS 4
/**
- * struct perf_event_cpu_context - per cpu event context structure
+ * struct perf_cpu_context - per cpu event context structure
*/
struct perf_cpu_context {
struct perf_event_context ctx;
--
2.34.1
More information about the linux-arm-kernel
mailing list