From 204b456c7c08bc40ffe1f21575461d92a544e92b Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 9 Mar 2005 21:30:05 +0000 Subject: Initial runtime checkin. --- runtime/docs/html/map_8h.html | 535 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 535 insertions(+) create mode 100644 runtime/docs/html/map_8h.html (limited to 'runtime/docs/html/map_8h.html') diff --git a/runtime/docs/html/map_8h.html b/runtime/docs/html/map_8h.html new file mode 100644 index 00000000..def7be23 --- /dev/null +++ b/runtime/docs/html/map_8h.html @@ -0,0 +1,535 @@ + + +SystemTap: SystemTap Runtime Library + + +
Intro | Functions | Defines | Enumerations | Enumeration Values
+ + +

map.h File Reference

#include <linux/types.h>
+ +

+Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Data Structures

struct  stat
union  key_data
struct  map_node
struct  map_node_int64
struct  map_node_str
struct  map_node_stat
struct  map_root

Defines

#define key1str(ptr)   (ptr->n.key1.str)
#define key2str(ptr)   (ptr->n.key2.str)
#define key1int(ptr)   (ptr->n.key1.val)
#define key2int(ptr)   (ptr->n.key2.val)
#define _stp_map_key2(map, key1, key2)
#define _stp_map_key(map, key)
#define _stp_map_set(map, val)
#define _stp_list_add(map, val)
#define foreach(map, ptr)
 Loop through all elements of a map.

Typedefs

typedef map_rootMAP

Enumerations

enum  keytype { NONE, +LONG, +STR + }
enum  valtype { INT64, +STAT, +STRING, +END + }

Variables

enum keytype packed
+


Define Documentation

+

+ + + + +
+ + + + + + + + + + + + +
#define _stp_list_add map,
val   ) 
+
+ + + + + +
+   + + +

+Value:

({                                                              \
+    if (__builtin_types_compatible_p (typeof (val), char[]))    \
+      _stp_list_add_str (map, (char *)(val));                           \
+    else                                                        \
+      _stp_list_add_int64 (map, (int64_t)(val));                        \
+  })
+
+

+Definition at line 121 of file map.h.

+

+ + + + +
+ + + + + + + + + + + + +
#define _stp_map_key map,
key   ) 
+
+ + + + + +
+   + + +

+Value:

({                                                              \
+    if (__builtin_types_compatible_p (typeof (key), char[]))    \
+      _stp_map_key_str (map, (char *)(key));                            \
+    else                                                        \
+      _stp_map_key_long (map, (long)(key));                             \
+  })
+
+

+Definition at line 105 of file map.h.

+

+ + + + +
+ + + + + + + + + + + + + + + +
#define _stp_map_key2 map,
key1,
key2   ) 
+
+ + + + + +
+   + + +

+Value:

({                                                              \
+    if (__builtin_types_compatible_p (typeof (key1), char[]))   \
+      if (__builtin_types_compatible_p (typeof (key2), char[])) \
+        _stp_map_key_str_str (map, (char *)(key1), (char *)(key2));     \
+      else                                                      \
+        _stp_map_key_str_long (map, (char *)(key1), (long)(key2));      \
+    else                                                        \
+      if (__builtin_types_compatible_p (typeof (key2), char[])) \
+        _stp_map_key_long_str (map, (long)(key1), (char *)(key2));      \
+      else                                                      \
+        _stp_map_key_long_long (map, (long)(key1), (long)(key2));       \
+  })
+
+

+Definition at line 91 of file map.h.

+

+ + + + +
+ + + + + + + + + + + + +
#define _stp_map_set map,
val   ) 
+
+ + + + + +
+   + + +

+Value:

({                                                              \
+    if (__builtin_types_compatible_p (typeof (val), char[]))    \
+      _stp_map_set_str (map, (char *)(val));                            \
+    else                                                        \
+      _stp_map_set_int64 (map, (int64_t)(val));                 \
+  })
+
+

+Definition at line 113 of file map.h.

+

+ + + + +
+ + + + + + + + + + + + +
#define foreach map,
ptr   ) 
+
+ + + + + +
+   + + +

+Value:

for (ptr = (typeof(ptr))_stp_map_start(map); ptr; \
+       ptr = (typeof(ptr))_stp_map_iter (map, (struct map_node *)ptr))
+
Loop through all elements of a map. +

+

Parameters:
+ + + +
map 
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;
+
+foreach (map, ptr)
+     printf ("map[%s,%ld] = [c=%lld s=%lld min=%lld max=%lld]\n", key1str(ptr), 
+             key2int(ptr), ptr->stats.count, ptr->stats.sum, ptr->stats.min, 
+             ptr->stats.max);
+
+
+

+Definition at line 138 of file map.h.

+

+ + + + +
+ + + + + + + + + +
#define key1int ptr   )    (ptr->n.key1.val)
+
+ + + + + +
+   + + +

+ +

+Definition at line 88 of file map.h.

+

+ + + + +
+ + + + + + + + + +
#define key1str ptr   )    (ptr->n.key1.str)
+
+ + + + + +
+   + + +

+ +

+Definition at line 86 of file map.h.

+

+ + + + +
+ + + + + + + + + +
#define key2int ptr   )    (ptr->n.key2.val)
+
+ + + + + +
+   + + +

+ +

+Definition at line 89 of file map.h.

+

+ + + + +
+ + + + + + + + + +
#define key2str ptr   )    (ptr->n.key2.str)
+
+ + + + + +
+   + + +

+ +

+Definition at line 87 of file map.h.

+


Typedef Documentation

+

+ + + + +
+ + + + +
typedef struct map_root* MAP
+
+ + + + + +
+   + + +

+ +

+Definition at line 84 of file map.h. +

+Referenced by _stp_copy_argv_from_user(), _stp_list_add_int64(), _stp_list_add_str(), _stp_list_clear(), _stp_list_new(), _stp_list_size(), _stp_map_del(), _stp_map_get_int64(), _stp_map_get_stat(), _stp_map_get_str(), _stp_map_iter(), _stp_map_key_del(), _stp_map_key_long(), _stp_map_key_long_long(), _stp_map_key_long_str(), _stp_map_key_str(), _stp_map_key_str_long(), _stp_map_key_str_str(), _stp_map_new(), _stp_map_set_int64(), _stp_map_set_stat(), _stp_map_set_str(), _stp_map_start(), and _stp_map_stat_add().

+


Enumeration Type Documentation

+

+ + + + +
+ + + + +
enum keytype
+
+ + + + + +
+   + + +

+

Enumeration values:
+ + + + +
NONE  +
LONG  +
STR  +
+
+ +

+Definition at line 16 of file map.h.

+

+ + + + +
+ + + + +
enum valtype
+
+ + + + + +
+   + + +

+

Enumeration values:
+ + + + + +
INT64  +
STAT  +
STRING  +
END  +
+
+ +

+Definition at line 17 of file map.h.

+


Variable Documentation

+

+ + + + +
+ + + + +
enum keytype packed
+
+ + + + + +
+   + + +

+

+


Generated on Wed Mar 9 13:21:28 2005 for SystemTap by  + +doxygen 1.3.9.1
+ + -- cgit