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.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'runtime/uprobes/uprobes.c') diff --git a/runtime/uprobes/uprobes.c b/runtime/uprobes/uprobes.c index 8c187bd1..22d62ecc 100644 --- a/runtime/uprobes/uprobes.c +++ b/runtime/uprobes/uprobes.c @@ -1,3 +1,14 @@ +#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.c" + +#else /* uprobes 1 (based on original utrace) */ + /* * Userspace Probes (UProbes) * kernel/uprobes_core.c @@ -2575,3 +2586,5 @@ static int __access_process_vm(struct task_struct *tsk, unsigned long addr, void #endif #include "uprobes_arch.c" MODULE_LICENSE("GPL"); + +#endif /* uprobes 1 (based on original utrace) */ -- cgit