I need to use perf to get some hardware event information.
I’d like to know if the performance monitoring unit (PMU) is implement in the Mediatek X20?
If so, how to enable it, so that I can get the PMU event?
Thanks in advance,
If you mean CPU PMUs, they are there.
For 3.18 kernel, find some spare interrupts and add them to your device tree will enable PMUs. See https://github.com/freedomtan/kernel-3.18-X20-96-board/commit/88e1fa4f3ec299b98ad1860a9da2255375e9d412
This is really what I want.
Thank you very much!