public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* perf stat output
@ 2009-11-12 22:03 Lucas De Marchi
  2009-11-13  8:07 ` Peter Zijlstra
  2009-11-15  9:13 ` Ingo Molnar
  0 siblings, 2 replies; 7+ messages in thread
From: Lucas De Marchi @ 2009-11-12 22:03 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Arnaldo Carvalho de Melo; +Cc: linux-kernel

Hi all!

Some questions about perf stat output. See example:


lucas@LMS-linux:~/programming/testprograms> perf stat -e
L1-dcache-loads -e L1-dcache-load-misses -- make -j
gcc test_schedchanges.c -o test_schedchanges
gcc -pthread test_taskaff1.c -o test_taskaff1
gcc -pthread test_taskaff2.c -o test_taskaff2
gcc -pthread test_taskaff3.c -o test_taskaff3

 Performance counter stats for 'make -j':

       161384667  L1-dcache-loads          #      0.000 M/sec
              24853791  L1-dcache-load-misses    #      0.000 M/sec

	          0.066893389  seconds time elapsed

Why do we have both L1-dcache-loads and  L1-dcache-load-misses with
0.000 M/sec? Also, why do we have 0 M/s when running "perf stat -a -e
cache-misses -e cache-references" but values different than 0 when
running "perf stat -a" without selecting the events?

The last question: what does the  "scaled from X%" mean? Is it related
to the maximum number of performance registers a processor can count
at a time?


Thanks

Lucas De Marchi

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-15 14:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 22:03 perf stat output Lucas De Marchi
2009-11-13  8:07 ` Peter Zijlstra
2009-11-13 14:46   ` Lucas De Marchi
2009-11-15  9:13 ` Ingo Molnar
2009-11-15 14:05   ` Lucas De Marchi
2009-11-15 14:27     ` Ingo Molnar
2009-11-15 14:30     ` [tip:perf/core] perf stat: Do not print ratio when task-clock event is not counted tip-bot for Lucas De Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox