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/foreach_8c-example.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 runtime/docs/html/foreach_8c-example.html (limited to 'runtime/docs/html/foreach_8c-example.html') diff --git a/runtime/docs/html/foreach_8c-example.html b/runtime/docs/html/foreach_8c-example.html new file mode 100644 index 00000000..ccafaeeb --- /dev/null +++ b/runtime/docs/html/foreach_8c-example.html @@ -0,0 +1,28 @@ + + +SystemTap: SystemTap Runtime Library + + +
Intro | Functions | Defines | Enumerations | Enumeration Values
+ + +

foreach.c

Parameters:
+ + + +
map 
ptr pointer to a map_node_stat, map_node_int64 or map_node_str
+
+
/* 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);
+
+

Generated on Wed Mar 9 12:24:52 2005 for SystemTap by  + +doxygen 1.3.9.1
+ + -- cgit