]> git.baikalelectronics.ru Git - kernel.git/commit
perf script: Add dlfilter__filter_event_early()
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 27 Jun 2021 13:18:10 +0000 (16:18 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Jul 2021 19:14:37 +0000 (16:14 -0300)
commitc7c16654228d7cef6aeb44ebaee1e99117f25731
treeb8088b61a24ddb216715ea727e8380951a814c64
parent7a8d954a27e4d4bd1e690b97f8414fe313aeb138
perf script: Add dlfilter__filter_event_early()

filter_event_early() can be more than 30% faster than filter_event()
because it is called before internal filtering. In other respects it
is the same as filter_event(), except that it will be passed events
that have yet to be filtered out.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.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: https://lore.kernel.org/r/20210627131818.810-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-dlfilter.txt
tools/perf/builtin-script.c
tools/perf/util/dlfilter.c
tools/perf/util/dlfilter.h
tools/perf/util/perf_dlfilter.h