From e5d2abb56ca57a613e4ef9398a6499190b2265be Mon Sep 17 00:00:00 2001 From: hunt Date: Sat, 18 Jun 2005 07:24:42 +0000 Subject: 2005-06-18 Martin Hunt * counter.c: New file. Counter aggregations. * stat.c: New file. Stat aggregations. * stat.h: Header file for stats. * map-int.c: New file. Support for int64 values. * map-stat.c: New file. Support for stat values. * map-str.c: New file. Support for string values. * map-values.c: Now just includes the necessary map-*.c files. * stat-common.c: New file. Stats stuff common to Stats and maps containing stats. * Doxyfile: Bumped version to 0.6. * README: Renamed README.doc and reorganized. --- runtime/map-keys.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/map-keys.c') diff --git a/runtime/map-keys.c b/runtime/map-keys.c index 894d79f5..1dd78f30 100644 --- a/runtime/map-keys.c +++ b/runtime/map-keys.c @@ -1,4 +1,9 @@ /* -*- linux-c -*- */ +/** @file map-keys.c + * @brief Map functions to set and get keys + * This file is a template designed to be included as many times as + * needed to generate the necessary functions to set map keys. + */ #include "map.h" @@ -302,6 +307,7 @@ MAP KEYSYM(_stp_map_new) (unsigned max_entries, int valtype, ...) m = _stp_map_new (max_entries, valtype & 0x0f, sizeof(struct KEYSYM(map_node)), 0); break; +#ifdef NEED_STAT_VALS case HIST_LOG: m = _stp_map_new_hstat_log (max_entries, sizeof(struct KEYSYM(map_node)), buckets); @@ -310,6 +316,7 @@ MAP KEYSYM(_stp_map_new) (unsigned max_entries, int valtype, ...) m = _stp_map_new_hstat_linear (max_entries, sizeof(struct KEYSYM(map_node)), start, stop, interval); break; +#endif default: dbug ("ERROR: unknown histogram type %d\n", htype); m = NULL; @@ -409,3 +416,5 @@ void KEYSYM(_stp_map_key) (MAP map, ALLKEYSD(key)) #undef KEYSYM #undef ALLKEYS #undef ALLKEYSD + +#include "map-values.c" -- cgit