Commit 347d24f
tracing/filters: Enable filtering the CPU common field by a cpumask
The tracing_cpumask lets us specify which CPUs are traced in a buffer
instance, but doesn't let us do this on a per-event basis (unless one
creates an instance per event).
A previous commit added filtering scalar fields by a user-given cpumask,
make this work with the CPU common field as well.
This enables doing things like
$ trace-cmd record -e 'sched_switch' -f 'CPU & CPUS{12-52}' \
-e 'sched_wakeup' -f 'target_cpu & CPUS{12-52}'
Link: https://lkml.kernel.org/r/20230707172155.70873-5-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 3cbec9d commit 347d24f
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
937 | 938 | | |
938 | 939 | | |
939 | 940 | | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
940 | 949 | | |
941 | 950 | | |
942 | 951 | | |
| |||
1440 | 1449 | | |
1441 | 1450 | | |
1442 | 1451 | | |
| 1452 | + | |
| 1453 | + | |
1443 | 1454 | | |
1444 | 1455 | | |
1445 | 1456 | | |
| |||
1659 | 1670 | | |
1660 | 1671 | | |
1661 | 1672 | | |
| 1673 | + | |
1662 | 1674 | | |
1663 | 1675 | | |
1664 | 1676 | | |
| |||
1714 | 1726 | | |
1715 | 1727 | | |
1716 | 1728 | | |
| 1729 | + | |
| 1730 | + | |
1717 | 1731 | | |
1718 | 1732 | | |
1719 | 1733 | | |
| |||
0 commit comments