summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-01-03 15:54:30 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-01-03 15:54:30 +0100
commit65f8d08cf838df3c3d728cdef908090237931496 (patch)
treef4902ce189fc0304527eaf2ad29da2e88c2e9a6d /tools/perf/builtin-script.c
parentperf powerpc: Add data source encodings for power10 platform (diff)
parentLinux 5.16-rc8 (diff)
downloadlinux-65f8d08cf838df3c3d728cdef908090237931496.tar.xz
linux-65f8d08cf838df3c3d728cdef908090237931496.zip
Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index d308adfd1176..c9b3002ec254 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -2475,7 +2475,7 @@ static int process_switch_event(struct perf_tool *tool,
if (perf_event__process_switch(tool, event, sample, machine) < 0)
return -1;
- if (scripting_ops && scripting_ops->process_switch)
+ if (scripting_ops && scripting_ops->process_switch && !filter_cpu(sample))
scripting_ops->process_switch(event, sample, machine);
if (!script->show_switch_events)