perf with OpenCSD on i.MX 8MM

cancel
Showing results for 
Search instead for 
Did you mean: 

perf with OpenCSD on i.MX 8MM

427 Views
kanimozhi_t
Contributor V

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,

  1. How to integrate OpenCSD library with perf tool on Yocto?
  2. Is opencsd backported to Yocto zeus?
  3. 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']

 

0 Kudos
3 Replies

405 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi kanimozhi_t

 

one can look at OpenCSD documentation

https://github.com/Linaro/OpenCSD

https://github.com/Linaro/OpenCSD/blob/master/HOWTO.md

for yocto issue may be posted on meta-fsl-arm mailing list

https://lists.yoctoproject.org/g/meta-freescale

 

Best regards
igor

0 Kudos

357 Views
kanimozhi_t
Contributor V

Hi @igorpadykov 

Thanks for replying.

 

I've posted in meta-fsl mailing list as suggested - perf with OpenCSD on Yocto Zeus - meta-freescale and waiting for a reply there.

 

In the meantime, I would like to get your views on the following questions:

  1. Is the OpenCSD for perf backported to Zeus branch yet?
  2. Is OpenCSD known to work on i.MX 8MM EVK with yocto Zeus?
  3. Do you have the steps to be followed for manual build of perf with openCSD?
  4. Where can I get the perf source code for i.MX 8M Mini EVK?
0 Kudos

351 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Kanimozhi

 

for supported features one can look at nxp official linux documentation

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 Kudos