Skip to content

Commit d7ebe75

Browse files
deaterIngo Molnar
authored andcommitted
perf: Fix comments in include/linux/perf_event.h
Fix include/linux/perf_event.h comments to be consistent with the actual #define names. This is trivial, but it can be a bit confusing when first reading through the file. Signed-off-by: Vince Weaver <vweaver1@eecs.utk.edu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: paulus@samba.org Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/alpine.DEB.2.00.1106031757090.29381@cl320.eecs.utk.edu Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent aa4a221 commit d7ebe75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/perf_event.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ enum perf_event_sample_format {
137137
*
138138
* struct read_format {
139139
* { u64 value;
140-
* { u64 time_enabled; } && PERF_FORMAT_ENABLED
141-
* { u64 time_running; } && PERF_FORMAT_RUNNING
140+
* { u64 time_enabled; } && PERF_FORMAT_TOTAL_TIME_ENABLED
141+
* { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
142142
* { u64 id; } && PERF_FORMAT_ID
143143
* } && !PERF_FORMAT_GROUP
144144
*
145145
* { u64 nr;
146-
* { u64 time_enabled; } && PERF_FORMAT_ENABLED
147-
* { u64 time_running; } && PERF_FORMAT_RUNNING
146+
* { u64 time_enabled; } && PERF_FORMAT_TOTAL_TIME_ENABLED
147+
* { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
148148
* { u64 value;
149149
* { u64 id; } && PERF_FORMAT_ID
150150
* } cntr[nr];

0 commit comments

Comments
 (0)