diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2017-07-10 19:19:25 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-07-10 19:19:25 +0000 |
| commit | ede5626d303b721dd02246a3850380943c24e380 (patch) | |
| tree | 675a1d0c32fc5c5abba4bf423aa43b3092450a77 /tools/perf/scripts/python/sctop.py | |
| parent | perf evsel: Fix attr.exclude_kernel setting for default cycles:p (diff) | |
| download | kernel-ede5626d303b721dd02246a3850380943c24e380.tar.gz kernel-ede5626d303b721dd02246a3850380943c24e380.zip | |
perf evsel: State in the default event name if attr.exclude_kernel is set
When no event is specified perf will use the "cycles" hardware event
with the highest precision available in the processor, and excluding
kernel events for non-root users, so make that clear in the event name
by setting the "u" event modifier, i.e. "cycles:upp".
E.g.:
The default for root:
# perf record usleep 1
# perf evlist -v
cycles:ppp: ..., precise_ip: 3, exclude_kernel: 0, ...
#
And for !root:
$ perf record usleep 1
$ perf evlist -v
cycles:uppp: ... , precise_ip: 3, exclude_kernel: 1, ...
$
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
