From 33f88a80b716a37e6ef7b474622457906cc1f4f0 Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 6 Oct 2005 16:33:48 +0000 Subject: 2005-10-06 Frank Ch. Eigler PR 1332. * translate.cxx (emit_symbol_data): New function to transcribe a processed address->symbol lookup table, based upon /proc/kallsyms. 2005-10-06 Frank Ch. Eigler PR 1332. * sym.h: New file to declare explicit symbol table struct. * runtime.h (_stp_kallsyms_lookup_tabled): Use it if available. * sym.c (_stp_symbol_sprint): HAS_LOOKUP mooted. 2005-10-06 Frank Ch. Eigler PR 1132. * systemtap.samples/symbols.*: New test. --- runtime/sym.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'runtime/sym.c') diff --git a/runtime/sym.c b/runtime/sym.c index 344df373..6e686051 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -18,7 +18,6 @@ String _stp_symbol_sprint (String str, unsigned long address) { -#ifdef HAS_LOOKUP char *modname; const char *name; unsigned long offset, size; @@ -34,9 +33,6 @@ String _stp_symbol_sprint (String str, unsigned long address) else _stp_sprintf (str, " : %s+%#lx/%#lx", name, offset, size); } -#else - _stp_sprintf (str, "0x%lx", address); -#endif return str; } -- cgit