aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-15 10:37:24 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-15 12:24:24 -0300
commitd2360442725fd29b3189887476c57059854a398c (patch)
tree624a749971249094d583233abfcfcacd9f77bd4b /tools/perf/builtin-script.c
parentperf script: Allow specifying event to switch off processing of other events (diff)
downloadlinux-dev-d2360442725fd29b3189887476c57059854a398c.tar.xz
linux-dev-d2360442725fd29b3189887476c57059854a398c.zip
perf evswitch: Move struct to a separate header to use in other tools
Now that we see that the simple userspace-based "slicing" of events using delimiter events ("markers") works, lets move it to a separate header to make it available to other tools, next step will be having the switch on/off check done at the PERF_RECORD_SAMPLE processing function moved too. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Florian Weimer <fweimer@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: William Cohen <wcohen@redhat.com> Link: https://lkml.kernel.org/n/tip-z0cyi9ifzlr37cedr9xztc1k@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r--tools/perf/builtin-script.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index b6eed0f7e835..fff02e0d70c4 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -16,6 +16,7 @@
#include "util/trace-event.h"
#include "util/evlist.h"
#include "util/evsel.h"
+#include "util/evswitch.h"
#include "util/sort.h"
#include "util/data.h"
#include "util/auxtrace.h"
@@ -1616,13 +1617,6 @@ static int perf_sample__fprintf_synth(struct perf_sample *sample,
return 0;
}
-struct evswitch {
- struct evsel *on,
- *off;
- bool discarding;
- bool show_on_off_events;
-};
-
struct perf_script {
struct perf_tool tool;
struct perf_session *session;