diff options
-rw-r--r-- | tools/perf/builtin-script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 57488d60b64a..08a2b5d51018 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -2191,6 +2191,9 @@ static int process_sample_event(struct perf_tool *tool, return 0; } + if (filter_cpu(sample)) + return 0; + if (machine__resolve(machine, &al, sample) < 0) { pr_err("problem processing %d event, skipping it.\n", event->header.type); @@ -2200,9 +2203,6 @@ static int process_sample_event(struct perf_tool *tool, if (al.filtered) goto out_put; - if (filter_cpu(sample)) - goto out_put; - if (scripting_ops) { struct addr_location *addr_al_ptr = NULL; struct addr_location addr_al; |