[PATCH v1 1/2] perf: Fix incorrect comment for event_idx callback

From: Andrew Murray
Date: Fri May 03 2019 - 06:23:54 EST


The default implementation of the event_idx callback
(perf_event_idx_default) returns 0. Let's update the comment for the
callback to reflect this, as it currently indicates an incorrect value.

Signed-off-by: Andrew Murray <andrew.murray@xxxxxxx>
---
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 e47ef764f613..27c1cb3cddf1 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -392,7 +392,7 @@ struct pmu {

/*
* Will return the value for perf_event_mmap_page::index for this event,
- * if no implementation is provided it will default to: event->hw.idx + 1.
+ * if no implementation is provided it will default to: 0.
*/
int (*event_idx) (struct perf_event *event); /*optional */

--
2.21.0