Can anyone please tell me how to find the interrupt latency on my imx6q board using software methods? I am using C baremetal programming. My initial plan was to manually generate an interrupt(EPIT) and measure the time between the moment the control enters the general irq handler and the the moment just before the user interrupt handler for that particular interrupt is called. Since i can not use any other interrupt during this process, i am confused how to measure the time. Can EPIT be used as a counter? If yes, then what might be the interval between each count? Please help
Can any one at least provide some pointers regarding this matter.