From 5a90d39d40a4360db4715408190aee558dbc3813 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 31 Aug 2005 18:24:26 +0000 Subject: 2005-08-31 Martin Hunt * sym.c (_stp_kallsyms_lookup): Moved to runtime.h. * stack.c (_stp_kta): Moved to runtime.h. * runtime.h (init_module): Initialize _stp_kallsyms_lookup and _stp_kta. * probes.c (_stp_lookup_name): Replaced by kallsyms_lookup_name(). --- runtime/sym.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'runtime/sym.c') diff --git a/runtime/sym.c b/runtime/sym.c index a1c04a65..107f6b33 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -9,17 +9,6 @@ * @{ */ -/** Lookup symbol. - * This simply calls the kernel function kallsyms_lookup(). - * That function is not exported, so this workaround is required. - * See the kernel source, kernel/kallsyms.c for more information. - */ -static const char * (*_stp_kallsyms_lookup)(unsigned long addr, - unsigned long *symbolsize, - unsigned long *offset, - char **modname, char *namebuf)=(void *)KALLSYMS_LOOKUP; - - /** Write addresses symbolically into a String * @param str String * @param address The address to lookup. -- cgit