From 4cdbcfa7fe4a934dc0aabcdd5355d2dbd46821f7 Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 21 Jul 2008 10:17:19 -0500 Subject: No longer allocates structure used to save vma information. 2008-07-21 David Smith * task_finder_vma.c (__stp_tf_vma_initialize): New function to initialize the free list. (__stp_tf_vma_put_free_entry): Puts a vma entry back on the free list. (__stp_tf_add_vma): Instead of allocating a vma entry, grab one from the free list by calling __stp_tf_vma_put_free_entry(). (__stp_tf_remove_vma_entry): Instead of freeing a vma entry, call __stp_tf_vma_put_free_entry() to put it on the free list instead. * task_finder.c (stap_start_task_finder): Calls __stp_tf_vma_initialize(). --- runtime/task_finder.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/task_finder.c') diff --git a/runtime/task_finder.c b/runtime/task_finder.c index fc573eb6..b22a60a8 100644 --- a/runtime/task_finder.c +++ b/runtime/task_finder.c @@ -921,6 +921,8 @@ stap_start_task_finder(void) return ENOMEM; } + __stp_tf_vma_initialize(); + atomic_set(&__stp_task_finder_state, __STP_TF_RUNNING); rcu_read_lock(); -- cgit