blob: c025b238bbb9bb75f1b800a8653702e69f00f8fd [file] [log] [blame]
/**
* @file op_types.h
* General-utility types
*
* @remark Copyright 2002 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
*/
#ifndef OP_TYPES_H
#define OP_TYPES_H
#ifndef __KERNEL__
#include <sys/types.h>
/*@{\name miscellaneous types */
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef int fd_t;
/*@}*/
/** generic type for holding addresses */
typedef unsigned long long vma_t;
/** generic type to hold a sample count in pp tools */
typedef u64 count_type;
#else
#include <linux/types.h>
#endif
#endif /* OP_TYPES_H */