X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=0c363795c8e46a3d308799113431aafaa3db499f;hb=a5377cf935630082f2eac2e5f4a538844cc06c8d;hp=1168b979e07688a995a1a7e640c5237a28df8641;hpb=1d7439282ad415e7d1630598becae3109c7d2735;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 1168b979..0c363795 100644 --- a/src/irq.c +++ b/src/irq.c @@ -22,6 +22,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" #include "configfile.h" @@ -120,6 +121,7 @@ static int irq_read (void) } else { ERROR ("irq plugin: unable to get CPU count from first line " "of /proc/interrupts"); + fclose (fh); return (-1); } @@ -155,6 +157,10 @@ static int irq_read (void) if (irq_name[irq_name_len - 1] != ':') continue; + /* Is it the the ARM fast interrupt (FIQ)? */ + if (irq_name_len == 4 && (strncmp(irq_name, "FIQ:", 4) == 0)) + continue; + irq_name[irq_name_len - 1] = 0; irq_name_len--;