diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-02-20 14:56:38 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-02-20 14:56:38 +0100 |
commit | 02615365a92ca2570c1f96abc8a97674aa2ccae1 (patch) | |
tree | ebedfd91a0f6d299b39e84295e091e12c0767dc8 /runtime/stat.c | |
parent | c3bad3042df505a3470f1e20b09822a9df1d4761 (diff) | |
parent | adc67597f327cd43d58b1d0cb740dab14a75a058 (diff) | |
download | systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.gz systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.xz systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.zip |
Merge branch 'master' into pr6866
Conflicts:
ChangeLog: Removed
runtime/ChangeLog: Removed
runtime/sym.c: Merged
runtime/task_finder.c: Merged
tapset/ChangeLog: Removed
testsuite/ChangeLog: Removed
Diffstat (limited to 'runtime/stat.c')
-rw-r--r-- | runtime/stat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/stat.c b/runtime/stat.c index e40a4f2d..689a84fe 100644 --- a/runtime/stat.c +++ b/runtime/stat.c @@ -74,7 +74,7 @@ typedef struct _Stat *Stat; * @param stop - An integer. The stopping value. Should be > start. * @param interval - An integer. The interval. */ -Stat _stp_stat_init (int type, ...) +static Stat _stp_stat_init (int type, ...) { int size, buckets=0, start=0, stop=0, interval=0; stat *sd, *agg; @@ -141,7 +141,7 @@ exit1: * * @param st Stat */ -void _stp_stat_del (Stat st) +static void _stp_stat_del (Stat st) { if (st) { _stp_free_percpu (st->sd); @@ -156,7 +156,7 @@ void _stp_stat_del (Stat st) * @param st Stat * @param val Value to add */ -void _stp_stat_add (Stat st, int64_t val) +static void _stp_stat_add (Stat st, int64_t val) { stat *sd = per_cpu_ptr (st->sd, get_cpu()); STAT_LOCK(sd); @@ -175,7 +175,7 @@ void _stp_stat_add (Stat st, int64_t val) * @param cpu CPU number * @returns A pointer to a stat. */ -stat *_stp_stat_get_cpu (Stat st, int cpu) +static stat *_stp_stat_get_cpu (Stat st, int cpu) { stat *sd = per_cpu_ptr (st->sd, cpu); STAT_LOCK(sd); @@ -203,7 +203,7 @@ static void _stp_stat_clear_data (Stat st, stat *sd) * for polling. * @returns A pointer to a stat. */ -stat *_stp_stat_get (Stat st, int clear) +static stat *_stp_stat_get (Stat st, int clear) { int i, j; stat *agg = st->agg; @@ -242,7 +242,7 @@ stat *_stp_stat_get (Stat st, int clear) * * @param st Stat */ -void _stp_stat_clear (Stat st) +static void _stp_stat_clear (Stat st) { int i; stp_for_each_cpu(i) { |