Arnaldo Carvalho de Melo
124e02be72
perf evswitch: Introduce init() method to set the on/off evsels from the command line
...
Another step in having all the boilerplate in just one place to then use
in the other tools.
Cc: Adrian Hunter <[email protected] >
Cc: Florian Weimer <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: William Cohen <[email protected] >
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2019-08-15 12:25:55 -03:00
Arnaldo Carvalho de Melo
add3a719c9
perf evswitch: Introduce OPTS_EVSWITCH() for cmd line processing
...
All tools will want those, so provide a convenient way to get them.
Cc: Adrian Hunter <[email protected] >
Cc: Florian Weimer <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: William Cohen <[email protected] >
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2019-08-15 12:25:47 -03:00
Arnaldo Carvalho de Melo
0b495b1215
perf evswitch: Add the names of on/off events
...
So that we can have macros for the OPT_ entries and also for finding
those in an evlist, this way other tools will use this very easily.
Cc: Adrian Hunter <[email protected] >
Cc: Florian Weimer <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: William Cohen <[email protected] >
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2019-08-15 12:24:42 -03:00
Arnaldo Carvalho de Melo
8829e56fa0
perf evswitch: Move switch logic to use in other tools
...
Now other tools that want switching can use an evswitch for that, just
set it up and add it to the PERF_RECORD_SAMPLE processing function.
Cc: Adrian Hunter <[email protected] >
Cc: Florian Weimer <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: William Cohen <[email protected] >
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2019-08-15 12:24:31 -03:00
Arnaldo Carvalho de Melo
d236044272
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 <[email protected] >
Cc: Florian Weimer <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: William Cohen <[email protected] >
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2019-08-15 12:24:24 -03:00