summaryrefslogtreecommitdiffstats
path: root/runtime/map.h
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-09 08:24:52 +0000
committerhunt <hunt>2005-11-09 08:24:52 +0000
commit66f95fac49b0789dbf33026643c015c563b57572 (patch)
tree146e368636cf39e68a9ce6e127d2d8dc43a992e1 /runtime/map.h
parentdf27664107205cccec6eacb890d6800db7ee95cc (diff)
downloadsystemtap-steved-66f95fac49b0789dbf33026643c015c563b57572.tar.gz
systemtap-steved-66f95fac49b0789dbf33026643c015c563b57572.tar.xz
systemtap-steved-66f95fac49b0789dbf33026643c015c563b57572.zip
2005-11-09 Martin Hunt <hunt@redhat.com>
* map.h (struct map_root): Delete fields used by old API. * map.c: Remove old map API functions. * map-stat.c (_stp_map_add_stat): Delete. (_stp_pmap_new_hstat_linear): Move here from map.c. (_stp_pmap_new_hstat_log): Ditto. * list.c: Deleted. * map-keys.c: Deleted. * map-values.c: Deleted. * map-int.c: Deleted.
Diffstat (limited to 'runtime/map.h')
-rw-r--r--runtime/map.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/runtime/map.h b/runtime/map.h
index a0bb5521..83a65c1e 100644
--- a/runtime/map.h
+++ b/runtime/map.h
@@ -107,12 +107,6 @@ struct map_root {
int data_offset;
- /* this is the creation data saved between the key functions and the
- set/get functions */
- u_int8_t create;
- key_data c_key[MAX_KEY_ARITY];
- struct hlist_head *c_keyhead;
-
/* the hash table for this array */
struct hlist_head hashes[HASH_TABLE_SIZE];
@@ -235,12 +229,11 @@ static int msb64(int64_t x);
static MAP _stp_map_new_hstat_log(unsigned max_entries, int key_size, int buckets);
static MAP _stp_map_new_hstat_linear(unsigned max_entries, int ksize, int start, int stop, int interval);
static void _stp_map_print_histogram(MAP map, stat *s);
-void _stp_map_key_del(MAP map);
struct map_node * _stp_map_start(MAP map);
struct map_node * _stp_map_iter(MAP map, struct map_node *m);
void _stp_map_del(MAP map);
+void _stp_map_clear(MAP map);
void _stp_map_print(MAP map, const char *fmt);
-static struct map_node * __stp_map_create(MAP map);
static struct map_node *_new_map_create (MAP map, struct hlist_head *head);
static int _new_map_set_int64 (MAP map, struct map_node *n, int64_t val, int add);