summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-09 22:46:49 +0000
committerhunt <hunt>2005-11-09 22:46:49 +0000
commitb0c33276ce05ca0e4989725dadd5fabefedabbfd (patch)
tree66f9f6983c2819ec05e4da6a0551aab6e0e29dda
parent5ef629df9db2fbedb1413f9c12e412ebc7117730 (diff)
downloadsystemtap-steved-b0c33276ce05ca0e4989725dadd5fabefedabbfd.tar.gz
systemtap-steved-b0c33276ce05ca0e4989725dadd5fabefedabbfd.tar.xz
systemtap-steved-b0c33276ce05ca0e4989725dadd5fabefedabbfd.zip
2005-11-09 Martin Hunt <hunt@redhat.com>
* translate.cxx: New API uses HIST_LOG and HIST_LINEAR instead of HSTAT_LOG and HSTAT_LINEAR.
-rw-r--r--ChangeLog5
-rw-r--r--translate.cxx4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5cf483cc..e2830351 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-09 Martin Hunt <hunt@redhat.com>
+
+ * translate.cxx: New API uses HIST_LOG and HIST_LINEAR
+ instead of HSTAT_LOG and HSTAT_LINEAR.
+
2005-11-09 Frank Ch. Eigler <fche@elastic.org>
Reported by Guang Lei Li <liguangl@cn.ibm.com>:
diff --git a/translate.cxx b/translate.cxx
index 799cf8d8..70abbc51 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -523,7 +523,7 @@ struct mapvar
case statistic_decl::linear:
// FIXME: check for "reasonable" values in linear stats
return (prefix
- + ", HSTAT_LINEAR"
+ + ", HIST_LINEAR"
+ ", " + stringify(sdecl().linear_low)
+ ", " + stringify(sdecl().linear_high)
+ ", " + stringify(sdecl().linear_step)
@@ -534,7 +534,7 @@ struct mapvar
if (sdecl().logarithmic_buckets > 64)
throw semantic_error("Cannot support > 64 logarithmic buckets");
return (prefix
- + ", HSTAT_LOG"
+ + ", HIST_LOG"
+ ", " + stringify(sdecl().logarithmic_buckets)
+ ");");
break;