perf script: Move filtering before scripting
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 21 Jun 2021 15:05:05 +0000 (18:05 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 Jun 2021 18:18:15 +0000 (15:18 -0300)
commit4371fbc0c9c4bcd812e96bafd54a666c330292e8
tree2cf4817a12985a4da9849cd5434a069877723fd1
parent9300041c661dacc0b4036f29315cef6008bc940d
perf script: Move filtering before scripting

To make it possible to use filtering with scripts, move filtering before
scripting.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20210621150514.32159-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c