From 5176158645ef1076c42252689b29c42b02d511df Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 11 Nov 2005 06:17:29 +0000 Subject: 2005-11-10 Martin Hunt * pmap-gen.c (_stp_pmap_get()): New function. Aggregates the per-cpu map nodes into an aggregation map node. * map.c (_stp_new_agg): Return a struct map_node *. (_stp_add_agg): If count is 0 when adding, just set the stats. --- runtime/map.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/map.h') diff --git a/runtime/map.h b/runtime/map.h index 08c06a1e..3a1b01c5 100644 --- a/runtime/map.h +++ b/runtime/map.h @@ -241,6 +241,8 @@ static void _new_map_clear_node (struct map_node *); static void _new_map_del_node (MAP map, struct map_node *n); static MAP _stp_pmap_new_hstat_linear (unsigned max_entries, int ksize, int start, int stop, int interval); static MAP _stp_pmap_new_hstat_log (unsigned max_entries, int key_size, int buckets); +static void _stp_add_agg(struct map_node *aptr, struct map_node *ptr); +static struct map_node *_stp_new_agg(MAP agg, struct hlist_head *ahead, struct map_node *ptr); /* these prototypes suppress warnings from macros */ void _stp_map_key_str(MAP, char *); -- cgit