From 68c2e2a316c7a22d058041dcba205b1e3309477d Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 15 Jan 2008 16:57:20 +0000 Subject: Add support for memory allocation tracking. --- runtime/stat.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'runtime/stat.c') diff --git a/runtime/stat.c b/runtime/stat.c index 3df1d063..298a6653 100644 --- a/runtime/stat.c +++ b/runtime/stat.c @@ -52,7 +52,7 @@ /** Stat struct for stat.c. Maps do not need this */ struct _Stat { struct _Hist hist; - /* per-cpu data. allocated with alloc_percpu() */ + /* per-cpu data. allocated with _stp_alloc_percpu() */ stat *sd; /* aggregated data */ stat *agg; @@ -130,9 +130,9 @@ Stat _stp_stat_init (int type, ...) return st; exit2: - kfree (sd); + _stp_kfree (sd); exit1: - kfree (st); + _stp_kfree (st); return NULL; } @@ -144,9 +144,9 @@ exit1: void _stp_stat_del (Stat st) { if (st) { - free_percpu (st->sd); - kfree (st->agg); - kfree (st); + _stp_free_percpu (st->sd); + _stp_kfree (st->agg); + _stp_kfree (st); } } -- cgit