From 4b670dde47e0899370182f85b909bcf1f242b722 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 29 Jan 2007 20:42:16 +0000 Subject: 2007-01-29 Martin Hunt * 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. --- runtime/time.c | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/time.c') 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); -- cgit