Home |
RTKernel-32 Programming Manual Function RTInstallSharedIRQHandlerEx Function RTInstallSharedIRQHandler Function RTRemoveSharedIRQHandlerEx Function RTRemoveSharedIRQHandler Function RTKRestoreIRQHandlerFar Function RTKIRQInfo |
Function RTKIRQInfoRTKIRQInfo writes interrupt statistics to a string variable: void RTKIRQInfo(char * Buffer, unsigned BufferLen); ParametersBufferPointer to the string variable to store the returned list in. BufferLenThe length of the string pointed to by Buffer. The Buffer should have at least about 80 + (40 * # of IRQs) bytes. Example:IRQ Calls FreeStack Doubles Time ---------------------------------------- 0 1194 188 0 0.103566 1 137 158 2 0.021934 3 6663 156 0 0.734534 Panic 2 158 0 0.004392 One line of information is issued for each IRQ hooked by RTKernel-32 on which interrupts have occurred since program start. The IRQ number, the number of interrupts that have occurred, unused interrupt stack, and the number of recursive interrupts (normally 0) are returned. The accumulated CPU time consumption of each IRQ is only returned by RTKernel-32's Debug Version if flag RF_ICPUTIME is set in RTKConfig.Flags ('-' otherwise). If recursions have occurred (as on the keyboard interrupt in the example), statistics for the panic stack are also given. Recursions on the panic stack (column "Doubles" in line "Panic") mean danger and suggest an error in the interrupt handler (see Advanced Topics, Interrupt Handling) or an interrupt overload.
|