diff options
author | hunt <hunt> | 2007-01-29 20:42:16 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-01-29 20:42:16 +0000 |
commit | 4b670dde47e0899370182f85b909bcf1f242b722 (patch) | |
tree | a1e8e144641c70f62dc29e323addc391df94143e /runtime/stat.c | |
parent | 91025d70a6871856fe3fc6be9a0557a3ca2ccea8 (diff) | |
download | systemtap-steved-4b670dde47e0899370182f85b909bcf1f242b722.tar.gz systemtap-steved-4b670dde47e0899370182f85b909bcf1f242b722.tar.xz systemtap-steved-4b670dde47e0899370182f85b909bcf1f242b722.zip |
2007-01-29 Martin Hunt <hunt@redhat.com>
* alloc.c (_stp_kmalloc): New function. Call kmalloc
with the coirrect flags and track usage.
(_stp_kzalloc): Ditto.
* map.c: Use new alloc calls.
* print.c: Ditto.
* stat.c: Ditto.
* time.c: Ditto.
Diffstat (limited to 'runtime/stat.c')
-rw-r--r-- | runtime/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stat.c b/runtime/stat.c index c1bf07b1..e00b8220 100644 --- a/runtime/stat.c +++ b/runtime/stat.c @@ -96,7 +96,7 @@ Stat _stp_stat_init (int type, ...) } va_end (ap); } - st = (Stat) kmalloc (sizeof(struct _Stat), STP_ALLOC_FLAGS); + st = (Stat) _stp_kmalloc (sizeof(struct _Stat)); if (st == NULL) return NULL; @@ -115,7 +115,7 @@ Stat _stp_stat_init (int type, ...) } #endif - agg = (stat *)kmalloc (size, STP_ALLOC_FLAGS); + agg = (stat *)_stp_kmalloc(size); if (agg == NULL) goto exit2; |