I try to access the performance monitor unit inside the jetson nano, I use
#define PMCR_E (1<<0)
asm volatile(“msr pmcr_el0,%0” :: “r” (PMCR_E));
to enable the pmcr_el0, but it always shows “illegal instruction” when I execute the file.
Would you please tell me what is the correct way to enable the pmcr_el0 under the C language? Great thanks!