From: Ruben Kerkhof Date: Sun, 2 Aug 2015 18:54:51 +0000 (+0200) Subject: irq: skip FIQ line in /proc/interrupts X-Git-Tag: collectd-5.5.1~68^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=91fbf283d2c180105c4729907ea9d2079c6d93f7;p=collectd.git irq: skip FIQ line in /proc/interrupts /proc/interrupts on my Raspberry PI contains: FIQ: usb_fiq This line doesn't contain any per cpu counters but we try to parse it anyway, resulting in: parse_value: Failed to parse string as derive: usb_fiq. Fixes #971 --- diff --git a/src/irq.c b/src/irq.c index 1168b979..6afacf0d 100644 --- a/src/irq.c +++ b/src/irq.c @@ -155,6 +155,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--;