1/**
2 * @file op_types.h
3 * General-utility types
4 *
5 * @remark Copyright 2002 OProfile authors
6 * @remark Read the file COPYING
7 *
8 * @author John Levon
9 * @author Philippe Elie
10 */
11
12#ifndef OP_TYPES_H
13#define OP_TYPES_H
14
15#ifndef __KERNEL__
16
17#include <sys/types.h>
18
19/*@{\name miscellaneous types */
20typedef unsigned char u8;
21typedef unsigned short u16;
22typedef unsigned int u32;
23typedef unsigned long long u64;
24typedef int fd_t;
25/*@}*/
26
27/** generic type for holding addresses */
28typedef unsigned long long vma_t;
29
30/** generic type to hold a sample count in pp tools */
31typedef u64 count_type;
32
33#else
34#include <linux/types.h>
35#endif
36
37#endif /* OP_TYPES_H */
38