Support for ARM Coresight devices in a small Coresight framework
Limitations of hardware:
- Scatter-gather operation is broken in hardware on Qualcomm Snapdragon 410e processor (Dragonboard 410c).
- None of Coresight interconnect devices provides an interrupt line.
- Circular-buffer is the only mode of operation for TMC(ETR). So buffer will be overwritten from start and none of interrupt provided.
- Can't restore state of ETR(TMC) device: there is no way to set offset of buffer to continue operation from. So two users can't trace simultaneously
Example usage:
pmctrace -u coresight uname pmctrace -u coresight -t uname sudo pmctrace -s coresight -i kernel -f cpu_switch