From 0e47d1d5011fe87c34764311ccabb4a1ef761121 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 26 May 2013 16:21:13 +0200 Subject: 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 Signed-off-by: Tobias Klauser --- built_in.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'built_in.h') diff --git a/built_in.h b/built_in.h index 8bea69c..94a39dc 100644 --- a/built_in.h +++ b/built_in.h @@ -24,10 +24,6 @@ typedef uint8_t u8; # define CO_CACHE_LINE_SIZE (1 << CO_IN_CACHE_SHIFT) #endif -#ifndef MAX_CPUS -# define MAX_CPUS 32 -#endif - #ifndef __aligned_16 # define __aligned_16 __attribute__((aligned(16))) #endif -- cgit v1.2.3-54-g00ecf