]> sourceware.org Git - systemtap.git/commit
2007-09-12 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Wed, 12 Sep 2007 18:37:47 +0000 (18:37 +0000)
committerhunt <hunt>
Wed, 12 Sep 2007 18:37:47 +0000 (18:37 +0000)
commit3a18979dd18ba8cdd96367d2ad18c456f26c6f20
tree9b345453171b5a796ecf65c59f052f9e9373c87a
parent674f70a0371c1f97a83c66268d03332ebbf9e62f
2007-09-12  Martin Hunt  <hunt@redhat.com>

* map-stat.c (_stp_map_new_hstat_log): Set buckets to
HIST_LOG_BUCKETS.
(_stp_pmap_new_hstat_log): Ditto.
(_stp_map_new_hstat_linear): Call _stp_stat_calc_buckets().
(_stp_pmap_new_hstat_linear): Ditto.

* stat.h (STP_MAX_BUCKETS): Define..
(HIST_LOG_BUCKETS): Define.

* stat.c (_stp_stat_init): Call _stp_stat_calc_buckets().

* stat-common.c (_stp_stat_calc_buckets): New function. Common
bucket calculation and error reporting code.
(_stp_bucket_to_val): New function.
(_stp_val_to_bucket): Renamed and now handles negative numbers.
(_stp_stat_print_histogram): Handle negative values in log histograms.
(__stp_stat_add): Cleanup..

* map-gen.c (_stp_map_new): Remove buckets param for HIST_LOG.
* pmap-gen.c (_stp_pmap_new): Ditto.
runtime/ChangeLog
runtime/map-gen.c
runtime/map-stat.c
runtime/map.h
runtime/pmap-gen.c
runtime/stat-common.c
runtime/stat.c
runtime/stat.h
This page took 0.028348 seconds and 5 git commands to generate.