On Mon, 28 May 2012, Yipeng Huang wrote:

> Have a couple questions about how the cycle events in Perf are defined.
> 
> 1. Is the perf stat -e cycles event a good equivalent for PAPI_TOT_CYC
> (PAPI's total cycles event)?

usually.

> 2. Is there an overlap in counting between the cycles event and the
> resource stall event r01a2 or are they distinct?

what processor is this full?  In general cycles only stops if the CPU is 
explicitly halted (with a halt instruction), it doesn't stop for stalls.

> 3. How can I find out how other particular events are defined? Is
> there a reference available?

do you mean how do you tell which events perf uses?  You need to check
the kernel sources. For example the AMD event definitions are in
  arch/x86/kernel/cpu/perf_event_amd.c

Vince

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

Reply via email to