Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4995 Discussions

Need to count EVENTS not SAMPLES

floopydrive
Beginner
334 Views

Hi Everyone


I am trying to measure a count of instructions retired using the command line as below. However I get a count of the number of samples collected (~35000), not the count of the instructions retired(should be in billions). Can anyone help me here? How do I get this using the command line?

regards
Manish

------
Command line

vtl activity -c sampling -o "-ec en='INST_RETIRED.ANY' -calibration no" -app gcc_part.bat -moi gcc_base.atom.exe
vtl run
vtl show
vtl view a1::r1 -sort -sea totals > 1.txt

Results

Module Process INST_RETIRED.ANY samples Process Path Process ID Original Module Path
gcc_base.atom.exe gcc_base.atom.exe 35626 \Device\HarddiskVolume2\Manish\ 0x32c \Device\HarddiskVolume2\Manish\
ntdll.dll gcc_base.atom.exe 859 \Device\HarddiskVolume2\Manish\\ 0x32c \SystemRoot\System32\

0 Kudos
3 Replies
Peter_W_Intel
Employee
334 Views
Quoting - floopydrive

Hi Everyone


I am trying to measure a count of instructions retired using the command line as below. However I get a count of the number of samples collected (~35000), not the count of the instructions retired(should be in billions). Can anyone help me here? How do I get this using the command line?

regards
Manish

------
Command line

vtl activity -c sampling -o "-ec en='INST_RETIRED.ANY' -calibration no" -app gcc_part.bat -moi gcc_base.atom.exe
vtl run
vtl show
vtl view a1::r1 -sort -sea totals > 1.txt

Results

Module Process INST_RETIRED.ANY samples Process Path Process ID Original Module Path
gcc_base.atom.exe gcc_base.atom.exe 35626DeviceHarddiskVolume2Manish 0x32c DeviceHarddiskVolume2Manish
ntdll.dll gcc_base.atom.exe 859 DeviceHarddiskVolume2Manish\ 0x32c SystemRootSystem32


Hi Manish,

It seem that is difficult to get total event count from "vtl view", but Iwould like tomodify your vtl command -
"vtl activity -c sampling -o "-ec en=INST_RETIRED.ANY:sa=2000000-calibration no" -app gcc_part.bat -moi gcc_base.atom.exe"

Actually you used default SAV (Sample After Value) for sampling data collection, but I don't know - my CPU frequency is 2G Mhz, so SAV "2000000" is used for "1000 samples per second" as expectation. You can change it to any value you like

Thus, you can get total event count = samples*SAV.

Regards, Peter
0 Kudos
floopydrive
Beginner
334 Views

Hi Manish,

It seem that is difficult to get total event count from "vtl view", but Iwould like tomodify your vtl command -
"vtl activity -c sampling -o "-ec en=INST_RETIRED.ANY:sa=2000000-calibration no" -app gcc_part.bat -moi gcc_base.atom.exe"

Actually you used default SAV (Sample After Value) for sampling data collection, but I don't know - my CPU frequency is 2G Mhz, so SAV "2000000" is used for "1000 samples per second" as expectation. You can change it to any value you like

Thus, you can get total event count = samples*SAV.

Regards, Peter

Thank you Peter. What if I put SAV as a very small number? Will it give erroneous values?
0 Kudos
Peter_W_Intel
Employee
334 Views
Quoting - floopydrive

Thank you Peter. What if I put SAV as a very small number? Will it give erroneous values?

I experiencedsuch problem before if I set SAV as a very small number - too many system interruptions to cause unexpected result eithersystem being hung.

So VTune Analyzerwill give out default SAV= 100,000for each event ( except CPU_CLK_UNHALTED.CORE& INST_RETIRED.ANY - which uses CPU_Frequency/1,000 as default SAV number)
0 Kudos
Reply