]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Fix cpumask() example typo
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 14 Dec 2022 03:12:27 +0000 (22:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:46:49 +0000 (07:46 +0200)
commit41abc05ab8cd44a51f8ef3c7fe252be730c871d7
tree120bb3c11fe71f0de87e59419ef3e469c0cd0fac
parent3c8a30f95bcba9bf16cca5a6df11d870969d1157
tracing: Fix cpumask() example typo

[ Upstream commit eb9d58947d40699d93e5e69e1ddc54e41da7e132 ]

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>
Stable-dep-of: ea8d7647f9dd ("tracing: Verify event formats that have "%*p.."")
Signed-off-by: Sasha Levin <sashal@kernel.org>
samples/trace_events/trace-events-sample.h