diff options
author | Vince Weaver <[email protected]> | 2009-07-08 17:46:14 -0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-07-10 10:28:26 +0200 |
commit | 11d1578f9454159c43499d1d8fe8a7d728c176a3 (patch) | |
tree | 2ad986dad1482083c1f61632f851883791d70aea /net/lapb/lapb_subr.c | |
parent | 9590b7ba3fefdfe0c7741f5e2f61faf2ffcea19c (diff) |
perf_counter: Add P6 PMU support
Add basic P6 PMU support. The P6 uses the EVNTSEL0 EN bit to
enable/disable both its counters. We use this for the
global enable/disable, and clear all config bits (except EN)
to disable individual counters.
Actual ia32 hardware doesn't support lfence, so use a locked
op without side-effect to implement a full barrier.
perf stat and perf record seem to function correctly.
[[email protected]: cleanups and complete the enable/disable code]
Signed-off-by: Vince Weaver <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions