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/20230707172155.70873-10-vschneid@redhat.com Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Daniel Bristot de Oliveira <bristot@redhat.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Leonardo Bras <leobras@redhat.com> Cc: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Valentin Schneider <vschneid@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 38c6f68 commit fa828ef

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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)