perf_counter: allow for data addresses to be recorded
Paul suggested we allow for data addresses to be recorded along with the traditional IPs as power can provide these. For now, only the software pagefault events provide data addresses, but in the future power might as well for some events. x86 doesn't seem capable of providing this atm. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> LKML-Reference: <20090408130409.394816925@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
4d855457d8
commit
78f13e9525
@@ -749,7 +749,7 @@ static void record_and_restart(struct perf_counter *counter, long val,
|
||||
* Finally record data if requested.
|
||||
*/
|
||||
if (record)
|
||||
perf_counter_overflow(counter, 1, regs);
|
||||
perf_counter_overflow(counter, 1, regs, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user