diff options
author | David Smith <dsmith@redhat.com> | 2008-07-21 10:17:19 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-07-21 10:17:19 -0500 |
commit | 4cdbcfa7fe4a934dc0aabcdd5355d2dbd46821f7 (patch) | |
tree | e4d8f035cc3c74f99fd9d5129128fb1ba49fa2ec /runtime/task_finder.c | |
parent | e4cb375f44950de40384e970865f74fb3d5dec2c (diff) | |
download | systemtap-steved-4cdbcfa7fe4a934dc0aabcdd5355d2dbd46821f7.tar.gz systemtap-steved-4cdbcfa7fe4a934dc0aabcdd5355d2dbd46821f7.tar.xz systemtap-steved-4cdbcfa7fe4a934dc0aabcdd5355d2dbd46821f7.zip |
No longer allocates structure used to save vma information.
2008-07-21 David Smith <dsmith@redhat.com>
* 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().
Diffstat (limited to 'runtime/task_finder.c')
-rw-r--r-- | runtime/task_finder.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |