Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Valentin Schneider and committed by
Steven Rostedt (Google)
fa828efb 38c6f680

+14
+14
Documentation/trace/events.rst
··· 219 219 The ".function" postfix can only be attached to values of size long, and can only 220 220 be compared with "==" or "!=". 221 221 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 + 222 236 5.2 Setting filters 223 237 ------------------- 224 238