* map.h: Remove HSTAT_LOG and HSTAT_LINEAR.
* map-gen.c: Fix comment.
* pmap-gen.c: Ditto.
2005-11-09 Martin Hunt <hunt@redhat.com>
+
+ * map.h: Remove HSTAT_LOG and HSTAT_LINEAR.
+ * map-gen.c: Fix comment.
+ * pmap-gen.c: Ditto.
+
+2005-11-09 Martin Hunt <hunt@redhat.com>
* map.c (_stp_cmp): Patch to sort on stats.
(_stp_map_sort): Ditto.
(_stp_map_sortn): Ditto.
return m;
}
#else
-/* _stp_map_new_key1_key2...val (num, HSTAT_LINEAR, start, end, interval) */
-/* _stp_map_new_key1_key2...val (num, HSTAT_LOG, buckets) */
+/* _stp_map_new_key1_key2...val (num, HIST_LINEAR, start, end, interval) */
+/* _stp_map_new_key1_key2...val (num, HIST_LOG, buckets) */
MAP KEYSYM(_stp_map_new) (unsigned max_entries, int htype, ...)
{
#include "stat.h"
-/* Histogram is log 2 */
-#define HSTAT_LOG (STAT | (HIST_LOG << 8))
-/* Histogram is linear */
-#define HSTAT_LINEAR (STAT | (HIST_LINEAR << 8))
-
/* Keys are either int64 or strings */
typedef union {
int64_t val;
return map;
}
#else
-/* _stp_pmap_new_key1_key2...val (num, HSTAT_LINEAR, start, end, interval) */
-/* _stp_pmap_new_key1_key2...val (num, HSTAT_LOG, buckets) */
+/* _stp_pmap_new_key1_key2...val (num, HIST_LINEAR, start, end, interval) */
+/* _stp_pmap_new_key1_key2...val (num, HIST_LOG, buckets) */
MAP KEYSYM(_stp_pmap_new) (unsigned max_entries, int htype, ...)
{