summaryrefslogtreecommitdiffstats
path: root/runtime/task_finder.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-03-17 13:50:33 +0100
committerMark Wielaard <mjw@redhat.com>2009-03-17 13:50:33 +0100
commit30cb532a560ed152b86506b80490e99195970271 (patch)
tree51f00bfa7fbef7b8bc41ab9c9576bda1faf21dc8 /runtime/task_finder.c
parentdcb8ea7a7d1461bef3ea56ebf65d07e8ff998a00 (diff)
downloadsystemtap-steved-30cb532a560ed152b86506b80490e99195970271.tar.gz
systemtap-steved-30cb532a560ed152b86506b80490e99195970271.tar.xz
systemtap-steved-30cb532a560ed152b86506b80490e99195970271.zip
Get the canonical path of the main file for comparison at runtime.
When given directly by the user through -d or in case of the kernel name and path might differ. path should be used for matching. * runtime/sym.h (_stp_module): Add path field. * runtime/task_finder.c (__stp_tf_vm_cb): Use module path to compare vm_path. * translate.cxx (dump_unwindsyms): Output canonical path.
Diffstat (limited to 'runtime/task_finder.c')
-rw-r--r--runtime/task_finder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/task_finder.c b/runtime/task_finder.c
index ae381a41..38f9145d 100644
--- a/runtime/task_finder.c
+++ b/runtime/task_finder.c
@@ -72,7 +72,7 @@ static int __stp_tf_vm_cb(struct stap_task_finder_target *tgt,
struct _stp_module *module = NULL;
if (vm_path != NULL)
for (i = 0; i < _stp_num_modules; i++)
- if (strcmp(vm_path, _stp_modules[i]->name) == 0)
+ if (strcmp(vm_path, _stp_modules[i]->path) == 0)
{
#ifdef DEBUG_TASK_FINDER_VMA
_stp_dbug(__FUNCTION__, __LINE__,