Hi,
On Wed, Jun 10, 2020 at 11:46:39AM +0800, H MJ wrote:
Dear Leo,
Very thanks for your replaying.
Leo Yan leo.yan@linaro.org 於 2020年6月10日 週三 上午11:15寫道:
Hi,
On Wed, Jun 10, 2020 at 10:19:35AM +0800, H MJ wrote:
Dear Mathieu,
Big thanks for this replaying.
Did you mean directly use the folder 'tools/perf' in perf-opencsd to replace the folder 'tools/perf' in laste mainline kernel?
No, I think Mathieu suggested you to use the mainline kernel completely, for building both kernel and 'tools/perf'.
Is it the same as directly using the 'tools/perf' in the last mainline kernel with the opencsd lib ?
perf-opencsd is relative old and it might be incompatible with the mainline kernel (e.g. if you are using kernel image from perf-opencsd and using perf tool from mainline kernel, it's likely not work).
I've tried directly compile the last mainline kernel and its perf, but its perf cannot fetch the cs_etm event. (coresight).
Could you give more detailed info (like commands and logs) so others can help you to analyze potential issue?
After that, I additional included the opencsd lib (only opencsd lib, not perf-opencsd), but it happened "parser error" and "unknown term".
Just remind, from my understanding, OpenCSD lib is relevant with CoreSight trace decoding, so even without linking OpenCSD lib for perf tool, it still can capture trace data with command:
perf record -e cs_etm/@tmc_etr0/u --per-thread program
So more detailed info might can be helpful.
Thanks, Leo