aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/include/linux
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-10-17 17:57:18 +0200
committerIngo Molnar <mingo@elte.hu>2009-10-19 09:26:35 +0200
commitdb9f11e36d0125a5e3e595ea9ef2e4b89f7e8737 (patch)
treed0622b32432b06391a3f0ebece4d296a72bd0f3b /tools/perf/util/include/linux
parentperf tools: Introduce bitmask'ed additional headers (diff)
downloadlinux-dev-db9f11e36d0125a5e3e595ea9ef2e4b89f7e8737.tar.xz
linux-dev-db9f11e36d0125a5e3e595ea9ef2e4b89f7e8737.zip
perf tools: Use DECLARE_BITMAP instead of an open-coded array
Use DECLARE_BITMAP instead of an open coded array for our bitmap of featured sections. This makes the array an unsigned long instead of a u64 but since we use a 256 bits bitmap, the array size shouldn't vary between different boxes. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <1255795038-13751-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/include/linux')
-rw-r--r--tools/perf/util/include/linux/types.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/util/include/linux/types.h b/tools/perf/util/include/linux/types.h
index ed538942523d..858a38d08435 100644
--- a/tools/perf/util/include/linux/types.h
+++ b/tools/perf/util/include/linux/types.h
@@ -1 +1,7 @@
-/* stub */
+#ifndef _PERF_LINUX_TYPES_H_
+#define _PERF_LINUX_TYPES_H_
+
+#define DECLARE_BITMAP(name,bits) \
+ unsigned long name[BITS_TO_LONGS(bits)]
+
+#endif