I am interested in collecting branch target information from the CPU code of a program. I am curious to know if there are any features and supports on Jetson AGX Orin akin to Intel PT for processor tracing.
Does any ARM CPU support this?
Yes, ARM Coresight ETM supports this. And it seems other Jetson platform can use PTM to achieve this goal. But the tutorial seems not work on AGX Orin.
will jtag suffice for what you want to achieve?
http://sw-mobile-docs/rekhak/r35/r35.3.1/DeveloperGuide/text/AT/JetsonLinuxDevelopmentTools/DebuggingOnJetsonPlatforms.html#enabling-jtag-support-on-secure-targets
I would like to avoid utilizing additional hardware and prefer using CoreSight, like this, to obtain the processor trace from the kernel. While I find this approach agreeable, I haven’t found any technical references about utilizing CoreSight on Jetson AGX Orin. Do you know if the operating system in Jetson AGX Orin supports such features? Thank you very much for your assistance.
Hi,
Coresight tracing sources (STM and ETM) and ETF sink are supported in Linux in Orin.
The corresponding nodes in device tree need to be enabled: hardware/nvidia/soc/t23x/kernel-dts/tegra234-soc/tegra234-soc-coresight.dtsi
Below kernel config also needs to be enabled:
CONFIG_CORESIGHT=y
CONFIG_CORESIGHT_LINKS_AND_SINKS=y
CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y
CONFIG_CORESIGHT_STM=y
CONFIG_CORESIGHT_SOURCE_ETM4X=y
ETR sink is not accessible currently.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.