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 <[email protected]>
---
 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

Reply via email to