From 9a5de18784b77de82e5121861fac892c2d4d2630 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 27 Feb 2008 19:45:45 +0000 Subject: 2008-02-27 Martin Hunt * sym.h (_stp_module): Add text_size, lock, and unwind data pointer. * sym.c (_stp_find_module_by_addr): New function. (_stp_kallsyms_lookup): Call _stp_find_module_by_addr(). (_stp_get_unwind_info): New. * runtime.h: Move debug macros to debug.h. Include it. * debug.h: New file. * map.c: Update debug calls. * map-gen.c: Update debug calls. * pmap-gen.c: Update debug calls. * mempool.c: New file. * symbols.c: Use rwlocks. Use new dbug macros. Handle unwind info if present. * transport.c: Include mempool.c. Update dbug and kbug calls to new macros. * transport_msgs.h (_stp_command_name): Add struct containing message names for debugging. * control.c, procfs.c: Use new dbug macros. Use new mempool functions. --- runtime/pmap-gen.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'runtime/pmap-gen.c') diff --git a/runtime/pmap-gen.c b/runtime/pmap-gen.c index 0efffdb6..8666549b 100644 --- a/runtime/pmap-gen.c +++ b/runtime/pmap-gen.c @@ -437,7 +437,6 @@ PMAP KEYSYM(_stp_pmap_new) (unsigned max_entries, int htype, ...) start = va_arg(ap, int); stop = va_arg(ap, int); interval = va_arg(ap, int); - // dbug ("start=%d stop=%d interval=%d\n", start, stop, interval); va_end (ap); } @@ -515,8 +514,6 @@ int KEYSYM(__stp_pmap_set) (MAP map, ALLKEYSD(key), VSTYPE val, int add) } /* key not found */ - dbug("key not found\n"); - n = (struct KEYSYM(pmap_node)*)_new_map_create (map, head); if (n == NULL) return -1; @@ -678,7 +675,6 @@ VALTYPE KEYSYM(_stp_pmap_get) (PMAP pmap, ALLKEYSD(key)) #endif ) { if (anode == NULL) { - // dbug("agg=%lx ahead=%lx\n", (long)agg, (long)ahead); anode = _stp_new_agg(agg, ahead, (struct map_node *)n); } else { if (clear_agg) { @@ -738,7 +734,6 @@ int KEYSYM(__stp_pmap_del) (MAP map, ALLKEYSD(key)) } /* key not found */ - dbug("key not found\n"); return 0; } -- cgit