aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/types.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-25 17:05:54 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-25 21:39:04 +0200
commit7c6a1c65bbd3be688e581511f45818663efc1877 (patch)
tree28bfa19c484b266d5ef3daa04aba8a6831277bc2 /tools/perf/util/types.h
parentperf_counter tools: Shorten names for events (diff)
downloadlinux-dev-7c6a1c65bbd3be688e581511f45818663efc1877.tar.xz
linux-dev-7c6a1c65bbd3be688e581511f45818663efc1877.zip
perf_counter tools: Rework the file format
Create a structured file format that includes the full perf_counter_attr and all its relevant counter IDs so that the reporting program has full information. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/types.h')
-rw-r--r--tools/perf/util/types.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/perf/util/types.h b/tools/perf/util/types.h
new file mode 100644
index 000000000000..5e75f9005940
--- /dev/null
+++ b/tools/perf/util/types.h
@@ -0,0 +1,17 @@
+#ifndef _PERF_TYPES_H
+#define _PERF_TYPES_H
+
+/*
+ * We define u64 as unsigned long long for every architecture
+ * so that we can print it with %Lx without getting warnings.
+ */
+typedef unsigned long long u64;
+typedef signed long long s64;
+typedef unsigned int u32;
+typedef signed int s32;
+typedef unsigned short u16;
+typedef signed short s16;
+typedef unsigned char u8;
+typedef signed char s8;
+
+#endif /* _PERF_TYPES_H */