summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-09 22:41:51 +0000
committerhunt <hunt>2005-11-09 22:41:51 +0000
commit5ef629df9db2fbedb1413f9c12e412ebc7117730 (patch)
treee10d646c36b15dd36df200574452e76cedfb3897
parent9262e8147c5b217b177713cdf197990a09136c1f (diff)
downloadsystemtap-steved-5ef629df9db2fbedb1413f9c12e412ebc7117730.tar.gz
systemtap-steved-5ef629df9db2fbedb1413f9c12e412ebc7117730.tar.xz
systemtap-steved-5ef629df9db2fbedb1413f9c12e412ebc7117730.zip
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.
-rw-r--r--runtime/ChangeLog6
-rw-r--r--runtime/map-gen.c4
-rw-r--r--runtime/map.h5
-rw-r--r--runtime/pmap-gen.c4
4 files changed, 10 insertions, 9 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index d98ce50e..0c85f33a 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,4 +1,10 @@
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.
diff --git a/runtime/map-gen.c b/runtime/map-gen.c
index f3d65c4d..fccdecdc 100644
--- a/runtime/map-gen.c
+++ b/runtime/map-gen.c
@@ -345,8 +345,8 @@ MAP KEYSYM(_stp_map_new) (unsigned max_entries)
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, ...)
{
diff --git a/runtime/map.h b/runtime/map.h
index 83a65c1e..08c06a1e 100644
--- a/runtime/map.h
+++ b/runtime/map.h
@@ -47,11 +47,6 @@ amount of memory. Do not increase above 5. */
#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;
diff --git a/runtime/pmap-gen.c b/runtime/pmap-gen.c
index e5da6a3d..cb203a88 100644
--- a/runtime/pmap-gen.c
+++ b/runtime/pmap-gen.c
@@ -421,8 +421,8 @@ MAP KEYSYM(_stp_pmap_new) (unsigned max_entries)
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, ...)
{