Hi Mike,
We would like to know if the perf decode script (cs-trace-disasm.py) mentioned in the OpenCSD HOWTO page is hosted anywhere ? https://github.com/Linaro/OpenCSD/blob/master/HOWTO.md#trace-decoding-with-p...
Also, does the script support generating instruction trace for both user space and kernel space ?
With Regards, Tanmay
Hi Tanmay,
On Mon, Apr 25, 2022 at 08:47:38AM +0000, Tanmay Jagdale wrote:
Hi Mike,
We would like to know if the perf decode script (cs-trace-disasm.py) mentioned in the OpenCSD HOWTO page is hosted anywhere ? https://github.com/Linaro/OpenCSD/blob/master/HOWTO.md#trace-decoding-with-p...
Also, does the script support generating instruction trace for both user space and kernel space ?
Please see enclosed python file, which comes from [1] and it was updated by Al for its last version.
I use below commands for it:
# cp arm-cs-trace-disasm.py $KERNEL/tools/perf/scripts/python # export PATH=$KERNEL/tools/perf/:$PATH
# perf record -e cs_etm// --per-thread -- test_program # perf script -s arm-cs-trace-disasm.py -- -d objdump -k ./vmlinux
And I found there still have some issues for upstreaming, one issue is the python script uses perf.data file and it cannot respect the specified perf data file with option '-i'; and there have some improvement in the Intel-PT python script intel-pt-events.py which uses more general way for disassembly. I will play more with the script and see if can improve it or not.
Thanks, Leo
[1] https://lists.linaro.org/archives/list/coresight@lists.linaro.org/message/PX...