All of lore.kernel.org
 help / color / mirror / Atom feed
* sampling and reading
@ 2014-11-04 20:27 Arnav
  2014-11-04 21:08 ` Andi Kleen
  2014-11-05  2:41 ` Namhyung Kim
  0 siblings, 2 replies; 3+ messages in thread
From: Arnav @ 2014-11-04 20:27 UTC (permalink / raw)
  To: linux-perf-users

i am working on a project where i need to find program counters for every 100M 
instructions.

i have used the  following command to record the event

perf record -e instructions -c 100000000 ./filename

now, since counters are counted every 100M instructions, i read file using 
'perf report'. But i get results in some percentage form and not in numerical 
numbers format.

i wish to read the file and gather the perforamance counter statistics. 
Plz suggest how to get the desired results.

thanks

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

* Re: sampling and reading
  2014-11-04 20:27 sampling and reading Arnav
@ 2014-11-04 21:08 ` Andi Kleen
  2014-11-05  2:41 ` Namhyung Kim
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2014-11-04 21:08 UTC (permalink / raw)
  To: Arnav; +Cc: linux-perf-users

Arnav <arnav.gupta06@live.in> writes:

> i am working on a project where i need to find program counters for every 100M 
> instructions.
>
> i have used the  following command to record the event
>
> perf record -e instructions -c 100000000 ./filename
>
> now, since counters are counted every 100M instructions, i read file using 
> 'perf report'. But i get results in some percentage form and not in numerical 
> numbers format.
>
> i wish to read the file and gather the perforamance counter statistics. 
> Plz suggest how to get the desired results.

Use perf script instead of perf report.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only

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

* Re: sampling and reading
  2014-11-04 20:27 sampling and reading Arnav
  2014-11-04 21:08 ` Andi Kleen
@ 2014-11-05  2:41 ` Namhyung Kim
  1 sibling, 0 replies; 3+ messages in thread
From: Namhyung Kim @ 2014-11-05  2:41 UTC (permalink / raw)
  To: Arnav; +Cc: linux-perf-users

Hi Arnav,

On Tue, 4 Nov 2014 20:27:08 +0000 (UTC), Arnav wrote:
> i am working on a project where i need to find program counters for every 100M 
> instructions.
>
> i have used the  following command to record the event
>
> perf record -e instructions -c 100000000 ./filename
>
> now, since counters are counted every 100M instructions, i read file using 
> 'perf report'. But i get results in some percentage form and not in numerical 
> numbers format.
>
> i wish to read the file and gather the perforamance counter statistics. 
> Plz suggest how to get the desired results.

How about using

  perf report --show-total-period

?

Thanks,
Namhyung

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

end of thread, other threads:[~2014-11-05  2:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04 20:27 sampling and reading Arnav
2014-11-04 21:08 ` Andi Kleen
2014-11-05  2:41 ` Namhyung Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.