Skip to content

Commit eb9d589

Browse files
committed
tracing: Fix cpumask() example typo
The sample code for using cpumask used the wrong field for the __get_cpumask() helper. It used "cpus" which is the bitmask (but would still give a proper example) instead of the "cpum" that was there to be used. Although it produces the same output, fix it, because it's an example and is confusing in how to properly use the cpumask() macro. Link: https://lore.kernel.org/linux-trace-kernel/20221213221227.56560374@gandalf.local.home Cc: Andrew Morton <akpm@linux-foundation.org> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent ea47666 commit eb9d589

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/trace_events/trace-events-sample.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ TRACE_EVENT(foo_bar,
359359
__print_array(__get_dynamic_array(list),
360360
__get_dynamic_array_len(list) / sizeof(int),
361361
sizeof(int)),
362-
__get_str(str), __get_bitmask(cpus), __get_cpumask(cpus),
362+
__get_str(str), __get_bitmask(cpus), __get_cpumask(cpum),
363363
__get_str(vstr))
364364
);
365365

0 commit comments

Comments
 (0)