lkml.org 
[lkml]   [2009]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: perf_counters: page fault trace record
Corey Ashford writes:

> Paul Mackerras wrote:
> > Can't you do what you need just using a page fault software counter
> > with sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_ADDR and
> > sample_period = 1?
>
> I thought about that, but I was under the (incorrect?) impression that
> on Power, the PERF_SAMPLE_ADDR would be set by the value of the SDAR
> register, which wouldn't be correct for the case of a page fault.

No, the PERF_SAMPLE_ADDR value only comes from SDAR for a hardware
counter overflow event. For the page-fault software counter the
PERF_SAMPLE_ADDR value will always be the faulting address.

Paul.


\
 
 \ /
  Last update: 2009-06-13 11:21    [W:0.075 / U:1.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site