Skip to content

Commit fa828ef

Browse files
valschneiderrostedt
authored andcommitted
tracing/filters: Document cpumask filtering
Cpumask, scalar and CPU fields can now be filtered by a user-provided cpumask, document the syntax. Link: https://lkml.kernel.org/r/[email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Juri Lelli <[email protected]> Cc: Daniel Bristot de Oliveira <[email protected]> Cc: Marcelo Tosatti <[email protected]> Cc: Leonardo Bras <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Valentin Schneider <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 38c6f68 commit fa828ef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/trace/events.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,20 @@ the function "security_prepare_creds" and less than the end of that function.
219219
The ".function" postfix can only be attached to values of size long, and can only
220220
be compared with "==" or "!=".
221221

222+
Cpumask fields or scalar fields that encode a CPU number can be filtered using
223+
a user-provided cpumask in cpulist format. The format is as follows::
224+
225+
CPUS{$cpulist}
226+
227+
Operators available to cpumask filtering are:
228+
229+
& (intersection), ==, !=
230+
231+
For example, this will filter events that have their .target_cpu field present
232+
in the given cpumask::
233+
234+
target_cpu & CPUS{17-42}
235+
222236
5.2 Setting filters
223237
-------------------
224238

0 commit comments

Comments
 (0)