Skip to content

Commit b238057

Browse files
committed
tracing: Have filter accept "common_cpu" to be consistent
Make filtering consistent with histograms. As "cpu" can be a field of an event, allow for "common_cpu" to keep it from being confused with the "cpu" field of the event. Link: https://lkml.kernel.org/r/20220820134401.513062765@goodmis.org Link: https://lore.kernel.org/all/20220820220920.e42fa32b70505b1904f0a0ad@kernel.org/ Cc: stable@vger.kernel.org Cc: Ingo Molnar <mingo@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Tzvetomir Stoyanov <tz.stoyanov@gmail.com> Cc: Tom Zanussi <zanussi@kernel.org> Fixes: 1e3bac7 ("tracing/histogram: Rename "cpu" to "common_cpu"") Suggested-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent ab83844 commit b238057

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/trace/trace_events.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ static int trace_define_generic_fields(void)
176176

177177
__generic_field(int, CPU, FILTER_CPU);
178178
__generic_field(int, cpu, FILTER_CPU);
179+
__generic_field(int, common_cpu, FILTER_CPU);
179180
__generic_field(char *, COMM, FILTER_COMM);
180181
__generic_field(char *, comm, FILTER_COMM);
181182

0 commit comments

Comments
 (0)