Skip to contentSkip to conversation

sampling and reading

DISCUSSION Arnav 3 participants 3 messages Nov 4, 2014 – Nov 5, 2014

lore
Share & tools
lore

Arnav

author
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Arnav

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

Quoted 8 lines

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

Signature · 1 line
[email protected] -- Speaking for myself only
#2 lore raw
In reply to Arnav

Hi Arnav,

Quoted 5 lines · Arnav

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

Quoted 8 lines

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