- Host System: Linux* or Windows* system with QNX BSP andVTuneinstalledProfiler
- Target System: Supported processor with QNX7 operating with instrumental kernel, connected to the host system via ethernet. Supported processors include Intel® Pentium®, Intel® Celeron®, or Intel Atom® processors formerly code named Apollo Lake or Intel Atom® processors formerly code named Denverton.
- Turn off firewall restrictions for network connections between the host system and target system
Set up Your System
- Ensure that the host system is connected to the target QNX system via ethernet and log in to the target QNX system using a command window.
- On the host system, launch theVTuneuser interface, clickProfilerNew Project, specify a project name, and clickCreate Project.
- ClickConfigure Analysis, selectlocal hostin theWHEREpane, and clickSearch Binaries.
- In theBinary/Symbol Searchwindow, browse to the location of the kernel and application target modules on the host system, and clickOK.
- On the target QNX system, run the following command:<sep-dir>/sepWhere<is the location where thesep-dir>sepfile was copied. The target collector loads and waits for the host system to connect.
- On the host system, run one of the following analysis commands.
- Hotspots with call stacks:<install-dir>/bin64/sep -start -d<duration>-target-ip<target-ip-address>-target-port 9321 -lbr call_stack -out<filename>.tb7Example command:/opt/intel/vtune_/bin64/sep -start -d 60 -target-ip 12.345.67.89 -target-port 9321 -lbr call_stack -out hotspots_callstacks.tb7profilerCall stacks are hardware based and limited to a depth of 16 frames. Due to hardware limitations, the depth of the captured call stack can be less than 16 frames.
- Custom CPU events:<install-dir>/bin64/sep.exe -start -d<duration>-target-ip<target-ip-address>-target-port 9321 -ec "<event-list>" -out<filename>.tb7Example command:/opt/intel/vtune_/bin64/sep.exe -start -d 60 -target-ip 12.345.67.89 -target-port 9321 -ec "MEM_LOAD_UOPS_RETIRED.DRAM_HIT,MEM_LOAD_UOPS_RETIRED.HITM,MEM_LOAD_UOPS_RETIRED.L2_HIT" -out custom.tb7profilerSee the Sampling Enabling Product User's Guide for more information.
- After collection begins, run the application on the target QNX system or ensure that it is already running. The analysis collects system-wide data. Collection stops automatically when the specified duration is complete.
- After collection is complete, stop the application on the target QNX system if it is not already finished.
View and Interpret Results
- Switch to theHotspotsviewpoint and review the performance data collected.
- If you collected hotspots data, begin with theSummarywindow in theHotspotsviewpoint. TheTop Hotspotslist shows the top 5 functions that occupied the most CPU time. Double-click a function to be taken to theBottom-upwindow where you can see aggregated performance data and a timeline showing activity over the entire collection. For more information, see Hotspots View.