From 471fca5e53a239f7fa4d04b7b6d6f53765a3d598 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 18 Dec 2009 17:56:24 +0100 Subject: Remove uprobes.h declaration from runtime.h Turns out that it breaks on kernels that don't have utrace. * runtime/runtime.h : Don't include uprobes.h * runtime/stack.c: Include uprobes.h * runtime/stack-i386.c: Check if uprobes is included at all. * runtime/stack-x86_64.c: ditto * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): put uprobes.h include back in. --- runtime/runtime.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'runtime/runtime.h') diff --git a/runtime/runtime.h b/runtime/runtime.h index 0fd2a380..91c48d57 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -31,16 +31,6 @@ #include #include -/* If uprobes isn't in the kernel, pull it in from the runtime. */ -#if defined(CONFIG_UPROBES) || defined(CONFIG_UPROBES_MODULE) -#include -#else -#include "uprobes/uprobes.h" -#endif -#ifndef UPROBES_API_VERSION -#define UPROBES_API_VERSION 1 -#endif - #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) #if !defined (CONFIG_DEBUG_FS) && !defined (CONFIG_DEBUG_FS_MODULE) -- cgit