Hi,
We've successfully added CoreSight components to the i.MX 8MM board and can record the trace with the following command:
perf record -e cs_etm/@tmc_etr0/u --per-thread -- /bin/ls
However when we try to view the trace data, we get the following error:
$ perf report -D -i perf.data --stdio
0x178 [0x148]: event: 70
.
. ... raw event: size 328 bytes
................
. 00b0: cc178 [0x148]: failed to process type: 70 [Operation not permitted]
Error:
failed to process sample
When we referred this message in OpenCSD documentation we found that this is caused by "a perf tool which is not using OpenCSD library"
So, we would like to know,
- How to integrate OpenCSD library with perf tool on Yocto?
- Is opencsd backported to Yocto zeus?
- Why perf.bb in /yocto/zeus/sources/poky/meta/recipes-kernel/perf/perf.bb is void of CoreSight option?
NOTE: Adding IMAGE_INSTALL_append = " opencsd" gives the following error (Nothing RPROVIDES 'opencsd').
Parsing recipes: 100% |########################################| Time: 0:00:50
ERROR: Nothing RPROVIDES 'opencsd' (but /yocto/zeus/sources/poky/meta/recipes-core/images/core-image-base.bb RDEPENDS on or otherwise requires it)
ERROR: Required build target 'core-image-base' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-base', 'opencsd']