[lttng-dev] [PATCH 15/15] lttng: remove kallsyms wrapper

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Nov 30 13:34:28 EST 2011


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 <mathieu.desnoyers at efficios.com>
---
 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 <linux/kallsyms.h>
-
-/*
- * 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




More information about the lttng-dev mailing list