diff options
author | hunt <hunt> | 2008-02-27 19:45:45 +0000 |
---|---|---|
committer | hunt <hunt> | 2008-02-27 19:45:45 +0000 |
commit | 9a5de18784b77de82e5121861fac892c2d4d2630 (patch) | |
tree | 54d0a3fb138a31627788606953bb1cb37897caf8 /runtime/map.c | |
parent | a2dc47ddef0dbed1b0dc912c876f5f57f97c1ede (diff) | |
download | systemtap-steved-9a5de18784b77de82e5121861fac892c2d4d2630.tar.gz systemtap-steved-9a5de18784b77de82e5121861fac892c2d4d2630.tar.xz systemtap-steved-9a5de18784b77de82e5121861fac892c2d4d2630.zip |
2008-02-27 Martin Hunt <hunt@redhat.com>
* 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.
Diffstat (limited to 'runtime/map.c')
-rw-r--r-- | runtime/map.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/map.c b/runtime/map.c index 70990876..513e27df 100644 --- a/runtime/map.c +++ b/runtime/map.c @@ -138,7 +138,6 @@ int64_t _stp_key_get_int64 (struct map_node *mn, int n) if (mn) { res = (*mn->map->get_key)(mn, n, &type).val; - dbug("type=%d\n", type); if (type != INT64) res = 0; } @@ -159,7 +158,6 @@ char *_stp_key_get_str (struct map_node *mn, int n) if (mn) { str = (*mn->map->get_key)(mn, n, &type).strp; - dbug("type=%d\n", type); if (type != STRING) str = "bad type"; } @@ -716,7 +714,6 @@ void _stp_map_printn (MAP map, int n, const char *fmt) struct map_node *ptr; int type, num; key_data kd; - dbug ("print map %lx fmt=%s\n", (long)map, fmt); if (n < 0) return; @@ -763,7 +760,6 @@ static struct map_node *_stp_new_agg(MAP agg, struct hlist_head *ahead, struct m { struct map_node *aptr; /* copy keys and aggregate */ - dbug("creating new entry in %lx\n", (long)agg); aptr = _new_map_create(agg, ahead); if (aptr == NULL) return NULL; @@ -952,12 +948,10 @@ static struct map_node *_new_map_create (MAP map, struct hlist_head *head) return NULL; } m = (struct map_node *)map->head.next; - dbug ("got %lx off head\n", (long)m); hlist_del_init(&m->hnode); } else { m = (struct map_node *)map->pool.next; map->num++; - dbug ("got %lx off pool\n", (long)m); } list_move_tail(&m->lnode, &map->head); |