Dear Leo,
Thanks again for this replaying.
I tried two commands by using the new build version (new perf and kernel), but its perf got same error.
# ./perf_mi_1817 record -e cs_etm/@coresight-tmc-etr/ --per-thread ls event syntax error: 'cs_etm/@coresight-tmc-etr/' ___ parser error Run 'perf list' for a list of valid events
Usage: perf record [<options>] [<command>] or: perf record [<options>] -- <command> [<options>]
-e, --event <event> event selector. use 'perf list' to list available events
# ./perf_mi_1817 record -e cs_etm/coresight-tmc-etr/ --per-thread ls event syntax error: 'cs_etm/coresight-tmc-etr/' ___ unknown term
valid terms: timestamp,cycacc,config,config1,config2,name,period,freq,branch_type,time,call-graph,stack-size,no-inherit,inherit,max-stack,no-overwrite,overwrite,driver-config Run 'perf list' for a list of valid events
Usage: perf record [<options>] [<command>] or: perf record [<options>] -- <command> [<options>]
-e, --event <event> event selector. use 'perf list' to list available events
Could you give me some possible solutions? Thank you very much.
BRs. Eric. ===============================================================
Leo Yan leo.yan@linaro.org 於 2020年6月10日 週三 下午12:51寫道:
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