summaryrefslogtreecommitdiffstats
path: root/runtime/map.h
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-11 06:17:29 +0000
committerhunt <hunt>2005-11-11 06:17:29 +0000
commit5176158645ef1076c42252689b29c42b02d511df (patch)
treea541e0fd3596c091af3fc75a72a5ad029a0de875 /runtime/map.h
parent15997cc74dd4e2a17b62d49d45eee410cd0db49c (diff)
downloadsystemtap-steved-5176158645ef1076c42252689b29c42b02d511df.tar.gz
systemtap-steved-5176158645ef1076c42252689b29c42b02d511df.tar.xz
systemtap-steved-5176158645ef1076c42252689b29c42b02d511df.zip
2005-11-10 Martin Hunt <hunt@redhat.com>
* 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.
Diffstat (limited to 'runtime/map.h')
-rw-r--r--runtime/map.h2
1 files changed, 2 insertions, 0 deletions
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 *);