From e94cb46c2219da504a559d49eeda3e4134b96453 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 22 Mar 2005 18:36:50 +0000 Subject: *** empty log message *** --- runtime/docs/html/map_8h.html | 69 ++++++++++++++++++++++++++++--------------- 1 file changed, 46 insertions(+), 23 deletions(-) (limited to 'runtime/docs/html/map_8h.html') diff --git a/runtime/docs/html/map_8h.html b/runtime/docs/html/map_8h.html index ae26cf69..849dfff4 100644 --- a/runtime/docs/html/map_8h.html +++ b/runtime/docs/html/map_8h.html @@ -14,25 +14,33 @@

Defines

-#define key1str(ptr)   (ptr->n.key1.str) +#define key1str(ptr)   (ptr->n.key1.str) + Extracts string from key1 union.
-#define key2str(ptr)   (ptr->n.key2.str) +#define key2str(ptr)   (ptr->n.key2.str) + Extracts string from key2 union.
-#define key1int(ptr)   (ptr->n.key1.val) +#define key1int(ptr)   (ptr->n.key1.val) + Extracts int from key1 union.
-#define key2int(ptr)   (ptr->n.key2.val) +#define key2int(ptr)   (ptr->n.key2.val) -#define _stp_map_key2(map, key1, key2) + Extracts int from key2 union.
+#define _stp_map_key2(map, key1, key2) -#define _stp_map_key(map, key) + Macro to call the proper _stp_map_key functions based on the types of the arguments.
+#define _stp_map_key(map, key) -#define _stp_map_set(map, val) + Macro to call the proper _stp_map_key function based on the type of the argument.
+#define _stp_map_set(map, val) -#define _stp_list_add(map, val) + Macro to call the proper _stp_map_set function based on the type of the argument.
+#define _stp_list_add(map, val) + Macro to call the proper _stp_list_add function based on the types of the argument.
#define foreach(map, ptr)  Loop through all elements of a map.
@@ -42,21 +50,24 @@ typedef map_root *  All maps are of this type.

Enumerations

-enum  keytype { NONE, +enum  keytype { NONE, LONG, STR } -enum  valtype { INT64, + keys can be longs or strings
+enum  valtype { INT64, STAT, STRING, END } + values can be either int64, stats or strings

Variables

-enum keytype packed +enum keytype packed + keys can be longs or strings

Detailed Description

Header file for maps and lists. @@ -98,9 +109,12 @@ Definition in file map.h.

Def else \ _stp_list_add_int64 (map, (int64_t)(val)); \ }) - +Macro to call the proper _stp_list_add function based on the types of the argument.

-Definition at line 132 of file map.h. +

Note:
May cause compiler warning on some GCCs
+ +

+Definition at line 159 of file map.h.

@@ -137,9 +151,12 @@ Definition at line 132 of fil else \ _stp_map_key_long (map, (long)(key)); \ }) - +Macro to call the proper _stp_map_key function based on the type of the argument. +

+

Note:
May cause compiler warning on some GCCs
+

-Definition at line 116 of file map.h. +Definition at line 135 of file map.h.

@@ -185,9 +202,12 @@ Definition at line 116 of fil else \ _stp_map_key_long_long (map, (long)(key1), (long)(key2)); \ }) - +Macro to call the proper _stp_map_key functions based on the types of the arguments.

-Definition at line 102 of file map.h. +

Note:
May cause compiler warning on some GCCs
+ +

+Definition at line 117 of file map.h.

@@ -224,9 +244,12 @@ Definition at line 102 of fil else \ _stp_map_set_int64 (map, (int64_t)(val)); \ }) - +Macro to call the proper _stp_map_set function based on the type of the argument. +

+

Note:
May cause compiler warning on some GCCs
+

-Definition at line 124 of file map.h. +Definition at line 147 of file map.h.

@@ -264,12 +287,12 @@ Definition at line 124 of fil

Parameters:
- +
map 
ptr pointer to a map_node_stat, map_node_int64 or map_node_str
ptr pointer to a map_node_stat, map_node_int64 or map_node_str
Example:
/* example showing how to print all the stats in a map using foreach() */
 
-struct map_node_stat *ptr;
+struct map_node_stat *ptr;
 
 foreach (map, ptr)
      printf ("map[%s,%ld] = [c=%lld s=%lld min=%lld max=%lld]\n", key1str(ptr), 
@@ -278,9 +301,9 @@ Definition at line 124 of fil
 
 

-Definition at line 149 of file map.h. +Definition at line 176 of file map.h.


-Generated on Tue Mar 22 00:32:02 2005 for SystemTap. +Generated on Tue Mar 22 10:27:36 2005 for SystemTap. -- cgit