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/map-gen.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'runtime/map-gen.c') diff --git a/runtime/map-gen.c b/runtime/map-gen.c index a17f7e34..ce6e8742 100644 --- a/runtime/map-gen.c +++ b/runtime/map-gen.c @@ -229,7 +229,6 @@ static key_data KEYSYM(map_get_key) (struct map_node *mn, int n, int *type) key_data ptr; struct KEYSYM(map_node) *m = (struct KEYSYM(map_node) *)mn; - dbug ("n = %d type=%lx\n", n, type); if (n > KEY_ARITY || n < 1) { if (type) *type = END; @@ -359,7 +358,6 @@ MAP KEYSYM(_stp_map_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); } @@ -404,7 +402,6 @@ int KEYSYM(__stp_map_set) (MAP map, ALLKEYSD(key), VSTYPE val, int add) hlist_for_each(e, head) { n = (struct KEYSYM(map_node) *)((long)e - sizeof(struct list_head)); - //dbug ("n=%lx key1=%ld n->key1=%ld\n", (long)n, key1, n->key1); if (KEY1_EQ_P(n->key1, key1) #if KEY_ARITY > 1 && KEY2_EQ_P(n->key2, key2) @@ -423,8 +420,6 @@ int KEYSYM(__stp_map_set) (MAP map, ALLKEYSD(key), VSTYPE val, int add) } } /* key not found */ - dbug("key not found\n"); - n = (struct KEYSYM(map_node)*)_new_map_create (map, head); if (n == NULL) return -1; -- cgit