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/[email protected] Cc: Andrew Morton <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent ea47666 commit eb9d589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)