Re: perf_counters: page fault trace record

From: Paul Mackerras
Date: Fri Jun 12 2009 - 23:44:22 EST


Corey Ashford writes:

> One of the tools we are working on needs to be able to look not only at counts
> of page faults, but where they are occurring (ip and faulting page address).
>
> What would you think about adding a new bit to the config record, something like:

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?

Paul.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/