From 18dac8308022c057b08e8666fc7ce7f40e795646 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 4 Jun 2010 15:06:46 +0200 Subject: [PATCH] Rename __stp_tf_vma_initialize to stap_initialize_vma_map. Makes it clear this isn't one of the internal task_finder_vma functions. * runtime/sym.c (_stp_sym_init): Call stap_initialize_vma_map. * runtime/task_finder_vma.c (stap_initialize_vma_map): Renamed from __stp_tf_vma_initialize. --- runtime/sym.c | 2 +- runtime/task_finder_vma.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/runtime/sym.c b/runtime/sym.c index e1e6e2250..242f35022 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -501,7 +501,7 @@ static void _stp_sym_init(void) }; if (! initialized) { int rc; - __stp_tf_vma_initialize(); + stap_initialize_vma_map (); rc = stap_register_task_finder_target (& vmcb); #ifdef DEBUG_TASK_FINDER_VMA _stp_dbug(__FUNCTION__, __LINE__, "registered vmcb"); diff --git a/runtime/task_finder_vma.c b/runtime/task_finder_vma.c index 3388c0565..e5c30da6b 100644 --- a/runtime/task_finder_vma.c +++ b/runtime/task_finder_vma.c @@ -43,10 +43,11 @@ static struct hlist_head __stp_tf_vma_free_list[1]; static struct hlist_head __stp_tf_vma_map[__STP_TF_TABLE_SIZE]; -// __stp_tf_vma_initialize(): Initialize the free list. Grabs the -// spinlock. +// tap_initialize_vma_map): Initialize the free list. Grabs the +// spinlock. Should be called before any of the other stap_*_vma_map +// functions. static void -__stp_tf_vma_initialize(void) +stap_initialize_vma_map(void) { int i; struct hlist_head *head = &__stp_tf_vma_free_list[0]; -- 2.43.5