Em Fri, Aug 23, 2013 at 04:21:00PM +0530, Ritesh Harjani escreveu:
>    Hi folks,
> 
>    I have some following  queries on perf:
> 
>    1. how does perf collect L1/L2 cache events on various architectures?

PMU counters.
 
>    2. My question might be specific to ARM architecture as well, does perf
>    collects the stats of cache events based on PMU counter in ARM processor ?

yes

>    If no, could some one please tell, how does perf collects this data  ?
> 
>    3. And how about rest of the architectures ?

PMU counters. Look at arch/

>    4. Also, If possible could someone please guide to that piece of code(
>    where cache events stats are collected ) in tools/perf/ ?

Start at arch/arm, I hadn't looked, but did a quick scan now with:

[acme@zoo linux]$ find arch/arm/ -name "*perf*"

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to