blob: c51fa6b70a2854c3befeb82af0bf3307b7e8c6c4 [file] [log] [blame]
John Kacur8b40f522009-09-24 18:02:18 +02001#ifndef __PERF_TYPES_H
2#define __PERF_TYPES_H
Paul Mackerras9cffa8d2009-06-19 22:21:42 +10003
Arnaldo Carvalho de Melo9486aa32011-01-22 20:37:02 -02004#include <stdint.h>
5
Paul Mackerras9cffa8d2009-06-19 22:21:42 +10006/*
Arnaldo Carvalho de Melo9486aa32011-01-22 20:37:02 -02007 * We define u64 as uint64_t for every architecture
8 * so that we can print it with "%"PRIx64 without getting warnings.
Paul Mackerras9cffa8d2009-06-19 22:21:42 +10009 */
Arnaldo Carvalho de Melo9486aa32011-01-22 20:37:02 -020010typedef uint64_t u64;
11typedef int64_t s64;
Paul Mackerras9cffa8d2009-06-19 22:21:42 +100012typedef unsigned int u32;
13typedef signed int s32;
14typedef unsigned short u16;
15typedef signed short s16;
16typedef unsigned char u8;
17typedef signed char s8;
18
Jiri Olsa6a11f922012-05-16 08:59:04 +020019union u64_swap {
20 u64 val64;
21 u32 val32[2];
22};
23
John Kacur8b40f522009-09-24 18:02:18 +020024#endif /* __PERF_TYPES_H */