diff options
| author | Peter Zijlstra <[email protected]> | 2010-03-02 19:52:12 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-03-10 13:23:31 +0100 |
| commit | ca037701a025334e724e5c61b3b1082940c8b981 (patch) | |
| tree | 12e3651ae6b35e9a5df4b49f9f571a01fc5a42a4 /include/linux/debugobjects.h | |
| parent | d4944a06666054707d23e11888e480af239e5abf (diff) | |
perf, x86: Add PEBS infrastructure
This patch implements support for Intel Precise Event Based Sampling,
which is an alternative counter mode in which the counter triggers a
hardware assist to collect information on events. The hardware assist
takes a trap like snapshot of a subset of the machine registers.
This data is written to the Intel Debug-Store, which can be programmed
with a data threshold at which to raise a PMI.
With the PEBS hardware assist being trap like, the reported IP is always
one instruction after the actual instruction that triggered the event.
This implements a simple PEBS model that always takes a single PEBS event
at a time. This is done so that the interaction with the rest of the
system is as expected (freq adjust, period randomization, lbr,
callchains, etc.).
It adds an ABI element: perf_event_attr::precise, which indicates that we
wish to use this (constrained, but precise) mode.
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions