]> Git Repo - linux.git/commitdiff
tracing: Fix cpumask() example typo
authorSteven Rostedt (Google) <[email protected]>
Wed, 14 Dec 2022 03:12:27 +0000 (22:12 -0500)
committerSteven Rostedt (Google) <[email protected]>
Wed, 14 Dec 2022 16:17:55 +0000 (11:17 -0500)
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]>
samples/trace_events/trace-events-sample.h

index fb4548a44153ca679dc910f2378a73bd69266091..1c6b843b8c4eeb254e3a67960a5e6129fbcdbff5 100644 (file)
@@ -359,7 +359,7 @@ TRACE_EVENT(foo_bar,
                  __print_array(__get_dynamic_array(list),
                                __get_dynamic_array_len(list) / sizeof(int),
                                sizeof(int)),
-                 __get_str(str), __get_bitmask(cpus), __get_cpumask(cpus),
+                 __get_str(str), __get_bitmask(cpus), __get_cpumask(cpum),
                  __get_str(vstr))
 );
 
This page took 0.054812 seconds and 4 git commands to generate.