Commit Graph

14 Commits

Author SHA1 Message Date
jdolecek 5dfdf5bea8 fix intrctl_io_firstline() to properly return NULL if there are no records
to show
2018-06-23 11:11:00 +00:00
jdolecek c8af0e8068 fix free() on unitialized value for list -c when there are no
assigned interrupts
2018-06-22 22:50:53 +00:00
ryo cc1c85bff6 fix column alignment of "intrctl list [-c]" 2016-11-02 11:03:33 +00:00
jdolecek 4db570fea8 getopt() result is int; fixes build on arm, pointed out by Rin Okuyama 2016-10-15 22:23:50 +00:00
jdolecek efdf03ed86 reduce the affinity column to just 5 chars for compact list 2016-10-15 12:14:00 +00:00
jdolecek 8804f261c0 add -c option to list command for compact list, it displays totals rather then
per-CPU stats
2016-10-15 12:06:27 +00:00
jdolecek fa9d657255 add HISTORY and AUTHORS 2016-10-12 21:47:37 +00:00
ryo eb2d7ca7b4 "intrctl list" auto fit to minimum columns
Reviewed by nonaka@ and knakahara@
2016-09-19 18:46:39 +00:00
knakahara a5c3fa9748 fix CID 1364766: Resource leaks 2016-08-05 06:58:55 +00:00
knakahara 8a1a4ef250 intrctl(8): pretty printing intrctl list.
e.g.
========== before ==========
interrupt id	  CPU#00	  CPU#01	device name(s)
irq 9	       0*	       0 	pq3pcie1
irq 10	       0*	       0 	pq3pcie0
irq 12	      30*	       0 	usb1
irq 13	      79*	       0 	etsec1-tx
irq 14	     268*	       0 	etsec1-rx
irq 15	       0*	       0 	etsec3-tx
irq 16	       0*	       0 	etsec3-rx
irq 17	       0*	       0 	etsec3-err
irq 18	       0*	       0 	etsec1-err
irq 26	    1030*	       0 	duart
irq 27	       0*	       0 	i2c
irq 56	  680437*	       0 	esdhc
msigroup 0	       0*	       0 	msi 0-31
========== before ==========

========== after ==========
interrupt id                 CPU0                  CPU1  device name(s)
irq 9                           0*                    0  pq3pcie1
irq 10                          0*                    0  pq3pcie0
irq 12                         30*                    0  usb1
irq 13                         79*                    0  etsec1-tx
irq 14                        310*                    0  etsec1-rx
irq 15                          0*                    0  etsec3-tx
irq 16                          0*                    0  etsec3-rx
irq 17                          0*                    0  etsec3-err
irq 18                          0*                    0  etsec1-err
irq 26                       1629*                    0  duart
irq 27                          0*                    0  i2c
irq 56                     730617*                    0  esdhc
msigroup 0                      0                    18* msi 0-31
========== after ==========

This patch is implemented by nonaka@n.o. Thanks.
2016-08-03 08:34:21 +00:00
knakahara 2c577ca608 fix: incorrect sysctlbyname(3) error handling.
pointed out by nonaka@n.o
2016-08-03 08:28:09 +00:00
wiz 18805f9978 Fix a typo. Sort commands. End list correctly. 2015-08-17 17:47:22 +00:00
knakahara a1136117a8 Add intrctl(8) man. 2015-08-17 06:50:03 +00:00
knakahara 84f76c9c0f Add intrctl(8). 2015-08-17 06:42:45 +00:00