Diederik de Haas
fc5d836c67
perf: Various spelling fixes
...
Fix various spelling errors as reported by Debian's lintian tool.
"amount of times" -> "number of times"
ocurrence -> occurrence
upto -> up to
Signed-off-by: Diederik de Haas <[email protected] >
Acked-by: Ian Rogers <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2023-01-23 10:00:47 -03:00
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