diff options
author | Anju T Sudhakar <[email protected]> | 2019-07-18 23:47:48 +0530 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-09-20 10:28:26 -0300 |
commit | 124eb5f82bf9395419b20205c4dcc1b8fcda7f29 (patch) | |
tree | bf33b527d49e039fc1b851ce561ad9150b54ef49 /tools/perf/scripts/python/sctop.py | |
parent | 8067b3da970baa12e6045400fdf009673b8dd3c2 (diff) |
perf kvm: Add arch neutral function to choose event for perf kvm record
'perf kvm record' uses 'cycles'(if the user did not specify any event)
as the default event to profile the guest.
This will not provide any proper samples from the guest incase of
powerpc architecture, since in powerpc the PMUs are controlled by the
guest rather than the host.
Patch adds a function to pick an arch specific event for 'perf kvm
record', instead of selecting 'cycles' as a default event for all
architectures.
For powerpc this function checks for any user specified event, and if
there isn't any it returns invalid instead of proceeding with 'cycles'
event.
Signed-off-by: Anju T Sudhakar <[email protected]>
Reviewed-by: Ravi Bangoria <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Madhavan Srinivasan <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Link: http://lore.kernel.org/lkml/[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