ifpps: Don't assume a maximum of 32 CPUs
commit0e47d1d5011fe87c34764311ccabb4a1ef761121
authorTobias Klauser <tklauser@distanz.ch>
Sun, 26 May 2013 14:21:13 +0000 (26 16:21 +0200)
committerDaniel Borkmann <dborkman@redhat.com>
Mon, 27 May 2013 10:21:39 +0000 (27 12:21 +0200)
treec06b371d5e023849c30461d9e487eb57a84b0787
parentb551029e03f58065fb8c018a928280ef071b59a2
ifpps: Don't assume a maximum of 32 CPUs

There are people with machines containing far more than 32 CPUs. In
their case ifpps didn't work until now because of a limitation to 32
CPUs.

Rework ifpps to support an arbitrary number of CPUs. In order to still
remain within the display space, if more than 10 (TOP_CPUS) CPUs are
available, only the 10 top hitting (in terms of usr and sys time or irqs
respectively) are displayed.

Suggested-by: Daniel Borkmann <borkmann@iogearbox.net>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
built_in.h
ifpps.c