diff options
author | Alexander Yarygin <[email protected]> | 2014-07-03 18:29:05 +0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-07-16 17:57:32 -0300 |
commit | 9daa81239e60c162153fb2a365b8492c9a9bf632 (patch) | |
tree | a3f2fda3d42857f6c2d5188c308e02474d641eef /tools/perf/scripts/python | |
parent | 44b3802122174ba499613bac3aab2e66e948ce1e (diff) |
perf kvm: Move arch specific code into arch/
Parts of a 'perf kvm stat' code make sense only for x86.
Let's move this code into the arch/x86/kvm-stat.c file and add
util/kvm-stat.h for generic structure definitions.
Add a global array 'kvm_reg_events_ops' for accessing the arch-specific
'kvm_events_ops' from generic code.
Since the several global arrays (i.e. 'kvm_events_tp') have been moved
to arch/*, we can not know their sizes and use them directly in
builtin-kvm.c. This patch fixes that problem by adding trimming NULL
element to each array and changing the behavior of their handlers in
generic code.
Reviewed-by: David Ahern <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Alexander Yarygin <[email protected]>
Acked-by: Christian Borntraeger <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions