Hi,
On 10/06/2019 09:49, Student - Ng Yi Zher Jeremy wrote:
Dear Sir,
My apologies for spamming you with more, perhaps ridiculous, questions...
I have been struggling to understand the systematic approach to conduct system traces with sysFS. I have asked similar question to hwangcc23, but I feel this question is suited more for the Linaro team.
I am having trouble choosing the options for the coresight drivers in my Hikey960 device with Cortex A53 and A73 processors, 4 CPUs each. I have created a simple program that is a quick implementation of a link list in C program. The following is the objdump of the main object:
Is there any reason, why you wouldn't use the perf tool ? The perf tool will automatically trace your application as it gets scheduled in/out on the CPU. Using sysfs mode is not ideal for tracing a process.
You may try:
perf record -e cs_etm/@ec033000.etr/ --per-thread <your-application>
Please note that, if your application is multi-threaded, you may need to use the latest version of the kernel/perf tools.
Cheers Suzuki