blob: 5f3689a3d0857be7431f8ed06eac3eb5e9707e18 [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
John Kacur8b40f522009-09-24 18:02:18 +020019#endif /* __PERF_TYPES_H */