You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to customize a kernel module that handles the PMI (performance monitor interrupt). Basically, I plan to program the performance counter that will trigger interrupt after X retired intructions and then the kernel module will send a signal to the userspace program so that it can stop at specific position (i.e. instruction X). PS: the program is running inside the gdb.
However, since the arm-pmu driver has already registered the interrupt and I don't know the irq number of the PMI, I fail to load the personal PMI handler module. Meanwhile, there are weird behaviors when I interact with arm-pmu driver by directly programming the PMU with system register access. The PMI mode interrupt make all program crash and jump to user login window, nothing happens on AIC mode and the program that set up the counters hangs on FIQ mode.
I also consider using perf_event_open and set up SIGIO signal handler for sampling mode. But it does not work well.
Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered:
Hi Team,
I want to customize a kernel module that handles the PMI (performance monitor interrupt). Basically, I plan to program the performance counter that will trigger interrupt after X retired intructions and then the kernel module will send a signal to the userspace program so that it can stop at specific position (i.e. instruction X). PS: the program is running inside the gdb.
However, since the arm-pmu driver has already registered the interrupt and I don't know the irq number of the PMI, I fail to load the personal PMI handler module. Meanwhile, there are weird behaviors when I interact with arm-pmu driver by directly programming the PMU with system register access. The PMI mode interrupt make all program crash and jump to user login window, nothing happens on AIC mode and the program that set up the counters hangs on FIQ mode.
I also consider using perf_event_open and set up SIGIO signal handler for sampling mode. But it does not work well.
Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: