summaryrefslogtreecommitdiffstats
path: root/runtime/stat-common.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-12-01 15:14:02 -0500
committerDave Brolley <brolley@redhat.com>2009-12-01 15:14:02 -0500
commitb25765bd1c90bbbca20c36a25c51fff5e7db0884 (patch)
treed5a3384b89a055360e8f8ebc479727bef36cf34f /runtime/stat-common.c
parent8c859ce37271f35d0b93cd40f121af7b04621238 (diff)
parent89a75eb6a5a6dc345a718ffbd119651222686026 (diff)
downloadsystemtap-steved-b25765bd1c90bbbca20c36a25c51fff5e7db0884.tar.gz
systemtap-steved-b25765bd1c90bbbca20c36a25c51fff5e7db0884.tar.xz
systemtap-steved-b25765bd1c90bbbca20c36a25c51fff5e7db0884.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/stat-common.c')
-rw-r--r--runtime/stat-common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/stat-common.c b/runtime/stat-common.c
index 7123dc8e..f9703049 100644
--- a/runtime/stat-common.c
+++ b/runtime/stat-common.c
@@ -34,7 +34,7 @@ static int _stp_stat_calc_buckets(int stop, int start, int interval)
return buckets;
}
-static int needed_space(int64_t v)
+static int needed_space(uint64_t v)
{
int space = 0;
@@ -134,7 +134,7 @@ static void _stp_stat_print_histogram_buf(char *buf, size_t size, Hist st, stat
{
int scale, i, j, val_space, cnt_space;
int low_bucket = -1, high_bucket = 0, over = 0, under = 0;
- int64_t val, v, valmax = 0;
+ uint64_t val, v, valmax = 0;
int eliding = 0;
char *cur_buf = buf, *fake = buf;
char **bufptr = (buf == NULL ? &fake : &cur_buf);
@@ -186,7 +186,7 @@ static void _stp_stat_print_histogram_buf(char *buf, size_t size, Hist st, stat
if (valmax <= HIST_WIDTH)
scale = 1;
else {
- int64_t tmp = valmax;
+ uint64_t tmp = valmax;
int rem = do_div(tmp, HIST_WIDTH);
scale = tmp;
if (rem) scale++;
@@ -282,7 +282,7 @@ static void _stp_stat_print_histogram(Hist st, stat *sd)
_stp_print_flush();
}
-static void __stp_stat_add (Hist st, stat *sd, int64_t val)
+static void __stp_stat_add (Hist st, stat *sd, uint64_t val)
{
int n;
if (sd->count == 0) {