[lkml]   [2022]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[for-next][PATCH 8/8] tracing: Fix cpumask() example typo
From: "Steven Rostedt (Google)" <>

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

Although it produces the same output, fix it, because it's an example and
is confusing in how to properly use the cpumask() macro.


Cc: Andrew Morton <>
Acked-by: Masami Hiramatsu (Google) <>
Signed-off-by: Steven Rostedt (Google) <>
samples/trace_events/trace-events-sample.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events-sample.h
index fb4548a44153..1c6b843b8c4e 100644
--- a/samples/trace_events/trace-events-sample.h
+++ b/samples/trace_events/trace-events-sample.h
@@ -359,7 +359,7 @@ TRACE_EVENT(foo_bar,
__get_dynamic_array_len(list) / sizeof(int),
- __get_str(str), __get_bitmask(cpus), __get_cpumask(cpus),
+ __get_str(str), __get_bitmask(cpus), __get_cpumask(cpum),


 \ /
  Last update: 2022-12-14 15:04    [W:0.056 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site