hiI am progressing in the implementation of the proposal "GDB process record 
and replay with ARM Coresight"  
https://lists.linaro.org/pipermail/coresight/2019-July/003021.html
so far I was able to use perf events to configure the drivers for etm and 
collect the traces. the code was tested successfully on an STM32MP157A 
discovery kit (arm v7). and I can collect the traces from the perf mmapped aux 
area. 
For parsing them I needed to gather information about the cpu and etm  
registers. those are available in the events of type PERF_RECORD_AUXTRACE_INFO 
in the priv section. priv is a kind of "opaque" data structure where the layout 
is depending on the perf pmu drivers. the implementation of perf tool gives a 
good example to follow. I needed also to make a wrapper around opencsd library 
and again perf was offering a good example to follow. 
those are good reasons to think about factoring out the functionality of 
parsing etm traces on linux system in a dedicated library that can be reused by 
other software, a kind of libcoresightperf.is there any plan or ongoing 
activities for such a library?
Kind RegardsZied Guermazi




_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to