Profiling Linux Applications with System Debugger

To profile Linux applications using Xilinx System Debugger, perform the following:

  1. Create an new Linux application for the target, using the Xilinx SDK.
    Note: The instructions have been developed based on Cortex-A9 on ZC702 but should be valid for other targets as well.
  2. Import your application sources in to the new project.
  3. Build the application.
  4. Boot Linux on ZC702 (for example, from the SD card) and start the TCF agent on the target.
  5. Create a new target connection for the TCF agent, from the Target Connections view.

  6. Create a new Xilinx System Debugger debug configuration for the application, you wish to profile, and launch the debug configuration.
  7. On the Target Setup tab page, select Linux Application Debug from the Debug Type list.
  8. On the Application tab page, specify the local .elf file path and the remote .elf file path.
  9. Click Debug.
  10. When the process context stops at main(), launch the TCF Profiler view by selecting Window > Show View > Other > Debug > TCF Profiler.
  11. In the TCF Profiler view, click the Start toolbar icon to start profiling.
    Note: Set a breakpoint at the end of your application code, so that the process is not terminated. If not set, the data collected by the TCF Profiler is lost when the process terminates.
  12. Resume the process context. TCF Profiler view will be updated with the profile date.