Changes:
xxxx/xx/xx: Version 10.1.5 - Sebastien Godard (sysstat <at> orange.fr)
+ * mpstat now takes into account every interrupt per processor
+ so that their number adds up to the number displayed for CPU "all".
* [Peter Schiffer]: systemd unit file couldn't be installed
because PKG_PROG_PKG_CONFIG macro wasn't expanded in configure
script. This is now fixed.
* [Benno Schulenberg]: Fixed a small inconsistency in pidstat
usage message.
+ * CREDITS file updated.
2013/03/08: Version 10.1.4 - Sebastien Godard (sysstat <at> orange.fr)
* [Christophe Cerin]: pidstat now stops and displays its average
Dr. David Alan Gilbert <dave@tre[...].org>
David Gesswein <djg@drs[...].com>
Frank Glinka <glinkaf@uni[...].de>
+ Gurinder Shergill <gurinder.shergill@hp[...].com>
Ladislav Hagara <ladislav.hagara@uno[...].cz>
Don Harrop <don@swb[...].com>
Jürgen Heinemann <heinemann.juergen@hjc[...].de>
*
* IN:
* @sig Signal number.
- ***************************************************************************
+ **************************************************************************
*/
void int_handler(int sig)
{
char *line = NULL, *li;
unsigned long irq = 0;
unsigned int cpu;
- int cpu_index[cpu_nr], index = 0, dgt, len;
+ int cpu_index[cpu_nr], index = 0, len;
char *cp, *next;
for (cpu = 0; cpu < cpu_nr; cpu++) {
}
strncpy(p->irq_name, li, len);
p->irq_name[len] = '\0';
- if (len > 0) {
- dgt = isdigit(li[len - 1]);
- }
- else {
- dgt = FALSE;
- }
for (cpu = 0; cpu < index; cpu++) {
p = st_ic[curr] + cpu_index[cpu] * ic_nr + irq;
* This is the same as st_irqcpu->irq.
*/
p->interrupt = strtoul(cp, &next, 10);
- if (dgt) {
- /* Sum only numerical irq (and not NMI, LOC, etc.) */
- st_irq_i->irq_nr += p->interrupt;
- }
+ st_irq_i->irq_nr += p->interrupt;
cp = next;
}
irq++;