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