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

Intel VTune CLI: supported reports with uarch-exploration and runsa collections

Bernard
Valued Contributor I
1,986 Views

Hi,

Usually I work with VTune GUI both for performance measurement and for results analysis.

At my work recently  I have started to use VTune CLI to run analysis and report the results, because we try to introduce automated profiling test runs.

I'm interested mainly in custom analysis of "runsa" type and "uarch-exploration",  but I'm not able to generate any results beside scarce "summary" report. I used two types of report command:

  1.  Hotspots -- no generated results
  2.  hw-events -- no generated results

The vtune.log did not indicate any serious problem, beside warning in regards to PEBS events not collected in VM environment. There was no any error in regards to "report" functionality.

I would like to know which "reports" are compatible with custom runsa and with uarch-exploration analysis.

Thank your for your help

--Bernard

 

 

0 Kudos
1 Solution
Dmitry_R_Intel1
Employee
1,865 Views

Yes you can use events modifiers which can be specified together with event delimited by colon. For example, this string:

MEM_INST_RETIRED.ALL_LOADS:sa=100000:os=no

will set period to 100000 and disable counting on 0 privilege level for the MEM_INST_RETIRED.ALL_LOADS event.

You can find the list of all supported modifiers and their descriptions in the SEP user guide here: https://software.intel.com/content/www/us/en/develop/download/sep-user-guide.html

Look for 'Event Modifiers' section.

View solution in original post

19 Replies
Kirill_U_Intel
Employee
1,981 Views

Hi.

is it possible to share /tmp/vtune_data result?

Kirill

0 Kudos
Bernard
Valued Contributor I
1,974 Views

Hi Kirill,

Thank you quick response.

I'm attaching a 4 files (zipped) generated by the perf collector.

Please let me know if you need additional files.

--Bernard

0 Kudos
Kirill_U_Intel
Employee
1,966 Views

I need one more file. something like systemcollector-2284-nntpat98-59.sc.

I added all attached files to 'result' dir and called import

    vtune.exe -r result -import

after that I generated all types of reports that you mentioned

   summary, html summary, hotspots, hw-events

 

0 Kudos
Bernard
Valued Contributor I
1,961 Views

Hi Kirill,

I do not have an access to our remote server now, and I will provide that file (.sc) on Monday.

 

after that I generated all types of reports that you mentioned

   summary, html summary, hotspots, hw-events

Can you post the exact 'report' command for following reports types?

-- hotspots

-- hw-events

-- summary

In my case only a report "hotspot" worked for a -collection hotspot.

Now the question is -- which "report" commands work with which analysis types? Do following reports: "hotspots, hw-events, top-down, summary, callstacks, gprof-cc"  work with  "uarch-exploration" and with custom analysis  "collect-with-runsa"?

 

Thank you for your help

-- Bernard

 

0 Kudos
Kirill_U_Intel
Employee
1,924 Views

>>Now the question is -- which "report" commands work with which analysis types? Do following reports: "hotspots, hw-events, top-down, summary, callstacks, gprof-cc"  work with  "uarch-exploration" and with custom analysis  "collect-with-runsa"?

 

I suppose that depends on collected data. Summary and hotspots should be applicable for the most collection. hw-events could be reported for hardware collection (hotspots, uarch-exploration) - you should have perf or tb7 or vtss data traces in result directory. Callstacks are for collection with stacks and so on.

0 Kudos
Bernard
Valued Contributor I
1,916 Views

This is what I wanted to know.

Anyway, the ".tb7" file or ".perf"  file can be always used with the VTune GUI version for  complete analysis.

Best regards,

--Bernard

0 Kudos
Bernard
Valued Contributor I
1,935 Views

Hi Kirill,

I'm sending you a ".sc" file.

Thank you

Best regards,

--Bernard

0 Kudos
Kirill_U_Intel
Employee
1,930 Views

I've used reports from you log

vtune.exe -r result -R summary

vtune.exe -r result -R hotspots

vtune.exe -r result -R -R summary -format=html

vtune.exe -r result -R hw-events -format=csv -csv-delimiter comma

 

0 Kudos
Bernard
Valued Contributor I
1,926 Views

Thank you

I will try those "report" commands out.

 

--Bernard

0 Kudos
Kirill_U_Intel
Employee
1,927 Views

re-check import and reports with ".sc" file.

All repors were generated without any problems

0 Kudos
RaeesaM_Intel
Moderator
1,895 Views

Hi Bernard,


Has the solution provided by Kirill worked for you ? Please let us know if the issue still persists.


Regards,

Raeesa


0 Kudos
Bernard
Valued Contributor I
1,883 Views

Hi Raeesa,

Yes this problem was solved.

I do not want to create a new thread, hence I'm asking this question here.

Does VTune CLI have an option of parametrization of  -knob event-config

For example I would like to lower the period, change the umask and require the higher skid reduction by using a "ppp" option.

The perf command below illustrates what I would like to set from the VTune CLI.

Is this possible?

 cpu/period=0x186a3,event=0xe6,umask=0x1,name=\'BACLEARS.ANY\'/u

 
 
Best regards,
 
--Bernard
0 Kudos
Dmitry_R_Intel1
Employee
1,866 Views

Yes you can use events modifiers which can be specified together with event delimited by colon. For example, this string:

MEM_INST_RETIRED.ALL_LOADS:sa=100000:os=no

will set period to 100000 and disable counting on 0 privilege level for the MEM_INST_RETIRED.ALL_LOADS event.

You can find the list of all supported modifiers and their descriptions in the SEP user guide here: https://software.intel.com/content/www/us/en/develop/download/sep-user-guide.html

Look for 'Event Modifiers' section.

Bernard
Valued Contributor I
1,861 Views

Hi Dmitry,

Yes you can use events modifiers which can be specified together with event delimited by colon

This is the information I was looking for.

Thank you for quick response.

--Bernard

0 Kudos
RaeesaM_Intel
Moderator
1,825 Views

Hi Bernard,


Glad to know that the explanation provided by Kirill and Dmitry helped you. This thread will be no longer supported by Intel. Please raise a new thread if you have any further queries.We would be happy to help you out.


Thanks and Regards,

Raeesa


0 Kudos
Kirill_U_Intel
Employee
1,809 Views

One remark that I forgot to mention.

if you import results (vtune -import result), vtune creates new directory (something like r@@@ and so on)

Reports should be generated for new r@@@ directory.

 

 

0 Kudos
Bernard
Valued Contributor I
1,806 Views

Hi Kirill,

I figured that out.

I have  a question in regards to Dmitry answer.

The case of performance events modifiers -- I forgot to mention, that I'm using perf driverless collection mode.

Does driver-less mode support  "SEP" type modifiers syntax?

Thank you

--Bernard

0 Kudos
Kirill_U_Intel
Employee
1,800 Views

It must.

VTune converts sep events string to perf cmd and ll modifiers are applicable for perf

If you open driverless result you could find 3 files: sep.events, map.events, perfcmd

sep.events - sep configuration

map.events - mapping sep events to perf events

perfcmd - perf commandline that VTune will use

0 Kudos
Bernard
Valued Contributor I
1,798 Views

I know those .events files and especially the perfcmd file it was very helpful to learn those arcane modifiers settings to run perf record and perf stat commands.

Thanks for explanation, now everything is clear.

--Bernard

0 Kudos
Reply