blob: d6ec44ceaaddc3cb39450eae411690647c3916c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef _RUNTIME_H_
#define _RUNTIME_H_
/** @file runtime.h
* @brief Main include file for runtime functions.
*/
#define __KERNEL__
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/hash.h>
#include <linux/kprobes.h>
#include <linux/proc_fs.h>
#include <linux/vmalloc.h>
#include <linux/time.h>
#include <linux/spinlock.h>
#include <asm/uaccess.h>
#include <linux/kallsyms.h>
#ifdef DEBUG
#define dbug(args...) \
{ \
printf("%s:%d: ", __FUNCTION__, __LINE__); \
printf(args); \
}
#else
#define dbug(args...) ;
#endif
#include "emul.h"
#undef memcpy
#define memcpy __builtin_memcpy
#include "print.c"
#include "string.c"
#endif /* _RUNTIME_H_ */
|