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/time.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/time.c')
-rw-r--r-- | runtime/time.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/time.c b/runtime/time.c index a6b33aa8..7f9b5ffa 100644 --- a/runtime/time.c +++ b/runtime/time.c @@ -187,6 +187,7 @@ _stp_init_time(void) stp_time = alloc_percpu(stp_time_t); if (unlikely(stp_time == 0)) return -1; + _stp_allocated_memory += sizeof(stp_time_t) * num_online_cpus(); stp_timer_reregister = 1; ret = on_each_cpu(__stp_init_time, NULL, 0, 1); |