diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-11 06:46:46 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-11 09:45:51 -0500 |
commit | 621a01eac89b5e2f81a4cf576568b31f40a02724 (patch) | |
tree | 79a7f2a8d49017077f40cfac4e78ee255cf2f43e /virt/kvm/coalesced_mmio.c | |
parent | ccff286d85098ba5438e22aa2ea807fc1e18cf2f (diff) |
perf counters: hw driver API
Impact: restructure code, introduce hw_ops driver abstraction
Introduce this abstraction to handle counter details:
struct hw_perf_counter_ops {
void (*hw_perf_counter_enable) (struct perf_counter *counter);
void (*hw_perf_counter_disable) (struct perf_counter *counter);
void (*hw_perf_counter_read) (struct perf_counter *counter);
};
This will be useful to support assymetric hw details, and it will also
be useful to implement "software counters". (Counters that count kernel
managed sw events such as pagefaults, context-switches, wall-clock time
or task-local time.)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'virt/kvm/coalesced_mmio.c')
0 files changed, 0 insertions, 0 deletions