missing interrupts

Hello,

I have c programs looking for hardware interrupts using either ligpiod or ioctl.
(ex: sudo gpiomon --rising-edge gpiochip0 interruptpinnumber)
I have a lot of interrupts missing. When I profile the system with Nsight Systems, they are all detected but they are not caught(?) by the c code. From the timeline the system seems far from saturing.

Where can the problem come from?

Thanks

hello Tib1f,

it’ll depend on your driver implementation methods.
please refer to below code-snippet for polling interrupt. you should also note that it’ll occupied few CPU resources.
for example,

<i>$l4t-r32.2/public_sources/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi2_fops.c</i>

static int tegra_channel_kthread_capture_start(void *data)
{
        while (1) {
                wait_event_interruptible();