From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Wed, 30 Nov 2011 13:34:28 -0500 Subject: [lttng-dev] [PATCH 15/15] lttng: remove kallsyms wrapper In-Reply-To: <1322678068-5255-1-git-send-email-mathieu.desnoyers@efficios.com> References: <1322678068-5255-1-git-send-email-mathieu.desnoyers@efficios.com> Message-ID: <1322678068-5255-16-git-send-email-mathieu.desnoyers@efficios.com> LTTng does not need this wrapper anymore, given that all the lookups that were done with kallsyms are replaced by exported symbols. Signed-off-by: Mathieu Desnoyers --- drivers/staging/lttng/wrapper/kallsyms.h | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) delete mode 100644 drivers/staging/lttng/wrapper/kallsyms.h diff --git a/drivers/staging/lttng/wrapper/kallsyms.h b/drivers/staging/lttng/wrapper/kallsyms.h deleted file mode 100644 index a7b8ab1..0000000 --- a/drivers/staging/lttng/wrapper/kallsyms.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef _LTT_WRAPPER_KALLSYMS_H -#define _LTT_WRAPPER_KALLSYMS_H - -#include - -/* - * Copyright (C) 2011 Avik Sil (avik.sil at linaro.org) - * - * wrapper around kallsyms_lookup_name. Implements arch-dependent code for - * arches where the address of the start of the function body is different - * from the pointer which can be used to call the function, e.g. ARM THUMB2. - * - * Dual LGPL v2.1/GPL v2 license. - */ - -static inline -unsigned long kallsyms_lookup_funcptr(const char *name) -{ - unsigned long addr; - - addr = kallsyms_lookup_name(name); -#ifdef CONFIG_ARM -#ifdef CONFIG_THUMB2_KERNEL - if (addr) - addr |= 1; /* set bit 0 in address for thumb mode */ -#endif -#endif - return addr; -} -#endif /* _LTT_WRAPPER_KALLSYMS_H */ -- 1.7.5.4