From b9c556e44326b40b2c927a0a5b5626332a8c9587 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 22 Mar 2005 08:57:11 +0000 Subject: *** empty log message *** --- runtime/docs/html/map_8c.html | 144 ++++++++++++++++++++++-------------------- 1 file changed, 74 insertions(+), 70 deletions(-) (limited to 'runtime/docs/html/map_8c.html') diff --git a/runtime/docs/html/map_8c.html b/runtime/docs/html/map_8c.html index d69f77a8..22df45e4 100644 --- a/runtime/docs/html/map_8c.html +++ b/runtime/docs/html/map_8c.html @@ -1,17 +1,18 @@ -SystemTap: SystemTap Runtime Library +SystemTap: map.c File Reference -
Intro | Functions | Defines | Enumerations | Enumeration Values
- -

map.c File Reference

+
Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages
+

map.c File Reference

Implements maps (associative arrays) and lists. More... +

+

Go to the source code of this file. - + @@ -68,7 +69,7 @@ - + @@ -84,7 +85,12 @@

Functions

MAP _stp_map_new (unsigned max_entries, enum valtype type)
MAP _stp_map_new (unsigned max_entries, enum valtype type)
 Create a new map.
void _stp_map_key_del (MAP map)
void _stp_map_stat_add (MAP map, int64_t val)
 Add to the current element's statistics.
MAP _stp_list_new (unsigned max_entries, enum valtype type)
MAP _stp_list_new (unsigned max_entries, enum valtype type)
 Create a new list.
void _stp_list_clear (MAP map)
 Get the number of elements in a list.
-


Function Documentation

+

Detailed Description

+Implements maps (associative arrays) and lists. +

+ +

+Definition in file map.c.


Function Documentation

@@ -129,9 +135,9 @@ Adds an int64 to a list.

-Definition at line 839 of file map.c. +Definition at line 846 of file map.c.

-References _stp_map_key_long(), _stp_map_set_int64(), and map_root::num. +References _stp_map_key_long(), _stp_map_set_int64(), and map_root::num.

@@ -178,11 +184,9 @@ Adds a string to a list.

-Definition at line 828 of file map.c. -

-References _stp_map_key_long(), _stp_map_set_str(), and map_root::num. +Definition at line 835 of file map.c.

-Referenced by _stp_copy_argv_from_user(). +References _stp_map_key_long(), _stp_map_set_str(), and map_root::num.

@@ -196,7 +200,7 @@ Referenced by _stp_copy_argv_fro MAP  map  )  - [inline] + @@ -219,9 +223,9 @@ All elements in the list are deleted.

Parameters:

-Definition at line 788 of file map.c. +Definition at line 795 of file map.c.

-References _stp_free(), dlog(), map_root::head, map_node::hnode, map_node::lnode, map_root::maxnum, map_root::num, and map_root::pool. +References map_root::head, map_node::hnode, map_node::lnode, map_root::maxnum, map_root::num, and map_root::pool.

@@ -238,7 +242,7 @@ References _stp_free(), - enum valtype  + enum valtype  type @@ -270,9 +274,9 @@ A list is a map that internally has an incrementing long key for each member. Li

See also:
foreach

-Definition at line 776 of file map.c. +Definition at line 783 of file map.c.

-References _stp_map_new(), and map_root::no_wrap. +References _stp_map_new(), and map_root::no_wrap.

@@ -310,9 +314,9 @@ Get the number of elements in a list.

Returns:
The number of elements in a list.

-Definition at line 850 of file map.c. +Definition at line 857 of file map.c.

-References map_root::num. +References map_root::num.

@@ -358,9 +362,10 @@ If the element doesn't exist, it is created. If no current element (key) is set val value

+
See also:
_stp_map_set_int64

-Definition at line 541 of file map.c. +Definition at line 548 of file map.c.

@@ -397,9 +402,9 @@ Deletes a map, freeing all memory in all elements. Normally done only when the m

-Definition at line 190 of file map.c. +Definition at line 195 of file map.c.

-References _stp_vfree(), map_root::head, map_node::lnode, and map_root::membuf. +References map_root::head, map_node::lnode, and map_root::membuf.

@@ -437,9 +442,9 @@ Gets the current element's value.

Returns:
The value. If the current element is not set or doesn't exist, returns 0.

-Definition at line 551 of file map.c. +Definition at line 558 of file map.c.

-References map_root::create, dbug, map_root::key, and map_node_int64::val. +References map_root::create, and map_root::key.

@@ -477,9 +482,9 @@ Gets the current element's value.

Returns:
A pointer to the stats struct. If the current element is not set or doesn't exist, returns NULL.

-Definition at line 715 of file map.c. +Definition at line 722 of file map.c.

-References map_root::create, dbug, map_root::key, and map_node_stat::stats. +References map_root::create, and map_root::key.

@@ -517,9 +522,9 @@ Gets the current element's value.

Returns:
A string pointer. If the current element is not set or doesn't exist, returns NULL.

-Definition at line 632 of file map.c. +Definition at line 639 of file map.c.

-References map_root::create, dbug, map_root::key, and map_node_str::str. +References map_root::create, and map_root::key.

@@ -568,9 +573,9 @@ Get the next element in a map.

See also:
foreach

-Definition at line 172 of file map.c. +Definition at line 176 of file map.c.

-References dbug, map_root::head, and map_node::lnode. +References map_root::head, and map_node::lnode.

@@ -607,11 +612,11 @@ If no current element (key) for this map is set, this function does nothing.

-Definition at line 104 of file map.c. +Definition at line 108 of file map.c.

-References _stp_free(), dbug, map_node::hnode, and map_node::lnode. +References map_root::create, map_node::hnode, map_root::key, and map_node::lnode.

-Referenced by _stp_map_set_stat(), and _stp_map_set_str(). +Referenced by _stp_map_set_stat(), and _stp_map_set_str().

@@ -658,11 +663,11 @@ This sets the current element based on a long key. If the key is not found, a ne

-Definition at line 415 of file map.c. +Definition at line 420 of file map.c.

-References _stp_map_key_long_long(), map_root::c_key2type, and NONE. +References _stp_map_key_long_long(), and map_root::c_key2type.

-Referenced by _stp_list_add_int64(), and _stp_list_add_str(). +Referenced by _stp_list_add_int64(), and _stp_list_add_str().

@@ -716,11 +721,11 @@ This sets the current element based on a key of two strings. If the keys are not

-Definition at line 218 of file map.c. +Definition at line 223 of file map.c.

-References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, dbug, map_root::hashes, map_root::key, map_node::key1, LONG, and key_data::val. +References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, map_root::hashes, map_root::key, map_node::key1, and key_data::val.

-Referenced by _stp_map_key_long(). +Referenced by _stp_map_key_long().

@@ -774,9 +779,9 @@ This sets the current element based on a key of a long and a string. If the keys

-Definition at line 358 of file map.c. +Definition at line 363 of file map.c.

-References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, dbug, map_root::hashes, map_root::key, map_node::key1, map_node::key2, LONG, STR, key_data::str, and key_data::val. +References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, map_root::hashes, map_root::key, map_node::key1, map_node::key2, key_data::str, and key_data::val.

@@ -823,9 +828,9 @@ This sets the current element based on a string key. If the key is not found, a

-Definition at line 399 of file map.c. +Definition at line 404 of file map.c.

-References _stp_map_key_str_str(), map_root::c_key2type, and NONE. +References _stp_map_key_str_str(), and map_root::c_key2type.

@@ -879,9 +884,9 @@ This sets the current element based on a key of a string and a long. If the keys

-Definition at line 310 of file map.c. +Definition at line 315 of file map.c.

-References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, dbug, map_root::hashes, map_root::key, map_node::key1, map_node::key2, LONG, STR, key_data::str, and key_data::val. +References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, map_root::hashes, map_root::key, map_node::key1, map_node::key2, key_data::str, and key_data::val.

@@ -935,11 +940,11 @@ This sets the current element based on a key of two strings. If the keys are not

-Definition at line 261 of file map.c. +Definition at line 266 of file map.c.

-References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, dbug, map_root::hashes, map_root::key, map_node::key1, map_node::key2, STR, and key_data::str. +References map_root::c_key1, map_root::c_key1type, map_root::c_key2, map_root::c_key2type, map_root::c_keyhead, map_root::create, map_root::hashes, map_root::key, map_node::key1, map_node::key2, and key_data::str.

-Referenced by _stp_map_key_str(). +Referenced by _stp_map_key_str().

@@ -956,7 +961,7 @@ Referenced by _stp_map_key_str()< - enum valtype  + enum valtype  type @@ -987,11 +992,11 @@ Maps must be created at module initialization time.

Parameter
Returns:
A MAP on success or NULL on failure.

-Definition at line 43 of file map.c. +Definition at line 47 of file map.c.

-References _stp_valloc(), dbug, END, map_root::head, map_root::maxnum, map_root::membuf, map_root::pool, and map_root::type. +References map_root::head, map_root::maxnum, map_root::membuf, map_root::pool, and map_root::type.

-Referenced by _stp_list_new(). +Referenced by _stp_list_new().

@@ -1037,11 +1042,12 @@ If the element doesn't exist, it is created. If no current element (key) is set val new value

+
See also:
_stp_map_add_int64

-Definition at line 525 of file map.c. +Definition at line 531 of file map.c.

-Referenced by _stp_list_add_int64(). +Referenced by _stp_list_add_int64().

@@ -1090,11 +1096,11 @@ If the element doesn't exist, it is created. If no current element (key) is set

Todo:
Histograms don't work yet.

-Definition at line 656 of file map.c. +Definition at line 663 of file map.c.

-References _stp_calloc(), _stp_map_key_del(), map_root::create, dbug, map_root::head, map_node::hnode, map_root::key, map_node::lnode, map_root::maxnum, map_node_stat::n, map_root::no_wrap, map_root::pool, and map_node_stat::stats. +References _stp_map_key_del(), map_root::create, map_root::head, map_root::key, map_root::maxnum, map_root::no_wrap, and map_root::pool.

-Referenced by _stp_map_stat_add(). +Referenced by _stp_map_stat_add().

@@ -1142,11 +1148,11 @@ If the element doesn't exist, it is created. If no current element (key) is set

-Definition at line 571 of file map.c. +Definition at line 578 of file map.c.

-References _stp_alloc(), _stp_calloc(), _stp_free(), _stp_map_key_del(), map_root::create, dbug, map_root::head, map_node::hnode, map_root::key, map_node::lnode, map_root::maxnum, map_node_str::n, map_root::no_wrap, map_root::pool, and map_node_str::str. +References _stp_map_key_del(), map_root::create, map_root::head, map_root::key, map_root::maxnum, map_root::no_wrap, and map_root::pool.

-Referenced by _stp_list_add_str(). +Referenced by _stp_list_add_str().

@@ -1185,9 +1191,9 @@ Get the first element in a map.

See also:
foreach

-Definition at line 149 of file map.c. +Definition at line 153 of file map.c.

-References dbug, and map_root::head. +References map_root::head.

@@ -1236,13 +1242,11 @@ If the element doesn't exist, it is created. If no current element (key) is set

Todo:
Histograms don't work yet.

-Definition at line 736 of file map.c. +Definition at line 743 of file map.c.

-References _stp_map_set_stat(), stat::count, map_root::create, dbug, map_root::key, stat::max, stat::min, map_node_stat::stats, and stat::sum. +References _stp_map_set_stat(), map_root::create, and map_root::key. -


Generated on Mon Mar 21 13:29:45 2005 for SystemTap by  - -doxygen 1.4.1
- +
+Generated on Tue Mar 22 00:32:02 2005 for SystemTap. -- cgit