i.MX8MM and i.MX8MN, they use the same driver(DDRC_ID) and cortex-a53integrated.
If we want to monitor VPU, their *master id* is different from SoCs.
On i.MX8MM, event is imx8_ddr0/axid-read,axi_id=0x08/ On i.MX8MN,
event is imx8_ddr0/axid-read,axi_id=0x12/
I try to write a JSON file to use these events, for now, I only canwe want related events are loaded for specific SoC.
locate the file at the directory:
Perf tool loads all events when CPUID matched, which is now unreasonable,
so we could have a folder like .../arch/arm64/nxp/system for these JSONs. The
perf tool can be updated to handle CPU and system events in separate folders.
seems to not be a good ideal.
All events will also be loaded if we use DDRC_ID to match in the future, this
The important part is knowing which events are supported per implementation.
Is there any method in the driver of knowing the specific implementation, like
any DT compat string? Least preferred option would be DT machine ID.
I think, NO, master id could be different even they use the same DT compatible string.