From 904b272c43bf358300719d01836bcd10c04aa356 Mon Sep 17 00:00:00 2001 From: Jim Keniston Date: Mon, 3 Nov 2008 14:47:12 -0800 Subject: Add a version of uprobes that works with the 2.6.27 version of utrace. --- runtime/uprobes/uprobes.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'runtime/uprobes/uprobes.h') 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 +#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 */ -- cgit