perf evswitch: Move struct to a separate header to use in other tools
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Aug 2019 13:37:24 +0000 (10:37 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Aug 2019 15:24:24 +0000 (12:24 -0300)
commitd2360442725fd29b3189887476c57059854a398c
tree624a749971249094d583233abfcfcacd9f77bd4b
parentdd41f660c03a6d8f2c2f3b2cccf50d8c4e06dd42
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>
tools/perf/builtin-script.c
tools/perf/util/evswitch.h [new file with mode: 0644]