diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-25 17:05:54 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-25 21:39:04 +0200 |
commit | 7c6a1c65bbd3be688e581511f45818663efc1877 (patch) | |
tree | 28bfa19c484b266d5ef3daa04aba8a6831277bc2 /tools/perf/util/types.h | |
parent | e5c59547791f171b280bc4c4b2c3ff171824c1a3 (diff) | |
download | op-kernel-dev-7c6a1c65bbd3be688e581511f45818663efc1877.zip op-kernel-dev-7c6a1c65bbd3be688e581511f45818663efc1877.tar.gz |
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.h | 17 |
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 0000000..5e75f90 --- /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 */ |