summaryrefslogtreecommitdiffstats
path: root/runtime/print.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-01-29 20:42:16 +0000
committerhunt <hunt>2007-01-29 20:42:16 +0000
commit4b670dde47e0899370182f85b909bcf1f242b722 (patch)
treea1e8e144641c70f62dc29e323addc391df94143e /runtime/print.c
parent91025d70a6871856fe3fc6be9a0557a3ca2ccea8 (diff)
downloadsystemtap-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/print.c')
-rw-r--r--runtime/print.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/print.c b/runtime/print.c
index eaea688d..d305dee8 100644
--- a/runtime/print.c
+++ b/runtime/print.c
@@ -55,6 +55,7 @@ int _stp_print_init (void)
Stp_pbuf = alloc_percpu(_stp_pbuf);
if (unlikely(Stp_pbuf == 0))
return -1;
+ _stp_allocated_memory += sizeof(_stp_pbuf) * num_online_cpus();
return 0;
}