summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-26 16:21:13 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-27 12:21:39 +0200
commit0e47d1d5011fe87c34764311ccabb4a1ef761121 (patch)
treec06b371d5e023849c30461d9e487eb57a84b0787 /built_in.h
parentb551029e03f58065fb8c018a928280ef071b59a2 (diff)
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>
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h4
1 files changed, 0 insertions, 4 deletions
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