Monitoring the Linux Instrumented System

After the build completes, copy the contents of thesd_carddirectory onto an SD card, and boot Linux on the board. Connect the board to your computer (both UART and JTAG cables). Set up the Linux TCF agent target connection with the IP address of the board. Click theDebugbutton to launch the application on the target. Switch to theDebugperspective. After launching the ELF, the program halts in main.

Create a new Run Configuration by selectingRun>Run Configurationand double-clicking onXilinx C/C++ application (System Debugger). Ensure that theDebug Typeis set toAttach to running target, then clickRunto close the Run Configurations window. ClickYesin the Conflict dialog box that says "Existing launch configuration 'System Debugger on Local .elf' conflicts with the newly launched configuration...".

Switch to the Performance Analysis perspective by clicking onWindow>Open Perspective>Other ...

SelectPerformance Analysisin theOpen Perspectivedialog and clickOK.

Next, click on theStart Analysisbutton, which opens thePerformance Analysis Inputdialog.

Check the box toEnable APM Counters. Click theEditbutton to set upAPM Hardware Information.

Click theLoadbutton in theAPM Hardware Informationdialog. Navigate toworkspace_path/project/SDDebug/_sds/p0/ipi/zc702.sdkand select thezc702.hdffile (zc702 is the platform name used in this example - use your platform instead). ClickOpen, then clickOKin theAPM Hardware Informationdialog. Finally, clickOKin thePerformance Analysis Inputdialog.

TheAnalysisviews open in thePL Performancetab. Click theResumebutton to run the application.

After your program completes execution, click theStop Analysisbutton. If prompted by theConfirm Perspective Switchdialog to stay in thePerformance Analysisperspective, clickNo.

Scroll through the analysis plots in the lower portion of the perspective to view different performance statistics. Click in any plot area to show a bigger version in the middle of the perspective. The orange box below allows you to focus on a particular time slice of data.