diff options
author | Mark Rutland <[email protected]> | 2011-04-28 15:47:10 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2011-08-31 10:50:09 +0100 |
commit | e1f431b57ef9e4a68281540933fa74865cbb7a74 (patch) | |
tree | 895e018faee0a504c82c02b69a8784433c3a057e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 7ae18a5717cbbf1879bdd5b66d7009a9958e5aef (diff) |
ARM: perf: refactor event mapping
Currently mapping an event type to a hardware configuration value
depends on the data being pointed to from struct arm_pmu. These fields
(cache_map, event_map, raw_event_mask) are currently specific to CPU
PMUs, and do not serve the general case well.
This patch replaces the event map pointers on struct arm_pmu with a new
'map_event' function pointer. Small shim functions are used to reuse
the existing common code.
Signed-off-by: Mark Rutland <[email protected]>
Reviewed-by: Will Deacon <[email protected]>
Reviewed-by: Jamie Iles <[email protected]>
Reviewed-by: Ashwin Chaugule <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions