Hi Mathieu,
I'm trying to make Coresight along with perf and OpenCSD working in some internal project of Spreadtrum recently. As the kernel we're using in-house is v4.4.49 which doesn't support using CoreSight with perf tools, so I got the internal kernel merged with LSK4.4 [1].
Now I can collect trace with the command 'perf record -e cs_etm/@10003000.etb/ --per-thread uname' on an our *ARM64* platform, the 'perf' was compiled from perf-opencsd-4.12 [2].
But after operated in this way on our *32-bit ARM* platform, I received the following error:
perf record -e cs_etm/@10003000.etb/ --per-thread uname event syntax error: 'cs_etm/@10003000.etb/' ___ parser error
As I mentioned above the perf tool was compiled from perf-opencsd-4.12 with a 32-bit arm toolchain and kernel source code was also the same.
The only possible reason I can think out is that I have to backport some patchs for supporting using ETMv3 with perf tools?
Thanks, Chunyan
[1] https://git.linaro.org/kernel/linux-linaro-stable.git/commit/?h=linux-linaro... [2] https://github.com/Linaro/OpenCSD/commits/perf-opencsd-4.12