perf script: Add API for filtering via dynamically loaded shared object
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 27 Jun 2021 13:18:09 +0000 (16:18 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Jul 2021 19:14:37 +0000 (16:14 -0300)
commit291961fc3c28b4c1acfc3b03559aa14c286a6b0d
treedd2653c0fb8d0a619e7ccdc72382d0e58560a2ba
parentc435c166dcf526ac827bc964d82cc0d5e7a1fd0b
perf script: Add API for filtering via dynamically loaded shared object

In some cases, users want to filter very large amounts of data (e.g.
from AUX area tracing like Intel PT) looking for something specific.
While scripting such as Python can be used, Python is 10 to 20 times
slower than C. So define a C API so that custom filters can be written
and loaded.

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-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-dlfilter.txt [new file with mode: 0644]
tools/perf/Documentation/perf-script.txt
tools/perf/builtin-script.c
tools/perf/util/Build
tools/perf/util/dlfilter.c [new file with mode: 0644]
tools/perf/util/dlfilter.h [new file with mode: 0644]
tools/perf/util/perf_dlfilter.h [new file with mode: 0644]