1#ifndef __PERF_TYPES_H 2#define __PERF_TYPES_H 3 4#include <stdint.h> 5 6/* 7 * We define u64 as uint64_t for every architecture 8 * so that we can print it with "%"PRIx64 without getting warnings. 9 */ 10typedef uint64_t u64; 11typedef int64_t s64; 12typedef unsigned int u32; 13typedef signed int s32; 14typedef unsigned short u16; 15typedef signed short s16; 16typedef unsigned char u8; 17typedef signed char s8; 18 19union u64_swap { 20 u64 val64; 21 u32 val32[2]; 22}; 23 24#endif /* __PERF_TYPES_H */ 25