Trivial change. Avoid printing the header multiple times.
For instance:
DEVICE NUMBER OF INTERRUPTS
virtio0-input : 2
virtio0-input : 1
virtio0-input : 1
virtio0-input : 2
virtio3-requests : 4
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
global devices
+probe begin {
+ printf("\t DEVICE \t NUMBER OF INTERRUPTS \n");
+}
+
probe irq_handler.entry {
devices[dev_name]++;
}
probe timer.ms(100) {
- printf("\t DEVICE \t NUMBER OF INTERRUPTS \n");
foreach ( devname in devices )
printf(" %20s : %5d\n",kernel_string(devname),devices[devname]);
delete devices