Profiling Linux Applications with System Debugger - 2022.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
Release Date
2022.2 English

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

  1. Create an new Linux application for the target, using the Vitis IDE.
    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 button.
  6. Create a new Xilinx System Debugger debug configuration for the application, you wish to profile, and launch the debug configuration. Create a new Launch on Hardware (Single Application Debug).
  7. On the Main view, select Linux Application Debug from the Debug Type list.
  8. On the Application view, 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 > Debug > TCF Profiler.
  11. In the TCF Profiler view, click the Start toolbar button 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.