diff options
Diffstat (limited to 'runtime/uprobes/uprobes.h')
-rw-r--r-- | runtime/uprobes/uprobes.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/uprobes/uprobes.h b/runtime/uprobes/uprobes.h index dc970bbf..0266cb7d 100644 --- a/runtime/uprobes/uprobes.h +++ b/runtime/uprobes/uprobes.h @@ -1,4 +1,16 @@ #ifndef _LINUX_UPROBES_H + +#include <linux/utrace.h> +#ifndef UTRACE_ACTION_RESUME + +/* + * Assume the kernel is running the 2008 version of utrace. + * Skip the code in this file and instead use uprobes 2. + */ +#include "../uprobes2/uprobes.h" + +#else /* uprobes 1 (based on original utrace) */ + #define _LINUX_UPROBES_H /* * Userspace Probes (UProbes) @@ -400,4 +412,6 @@ static void uprobe_post_ssout(struct uprobe_task*, struct uprobe_probept*, #endif /* UPROBES_IMPLEMENTATION */ +#endif /* uprobes 1 (based on original utrace) */ + #endif /* _LINUX_UPROBES_H */ |