summaryrefslogtreecommitdiffstats
path: root/runtime/sym.h
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/sym.h
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/sym.h')
-rw-r--r--runtime/sym.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/sym.h b/runtime/sym.h
index e642cab4..586b10ca 100644
--- a/runtime/sym.h
+++ b/runtime/sym.h
@@ -25,6 +25,7 @@ struct _stp_section {
struct _stp_module {
const char* name;
+ const char* path; /* canonical path used for runtime matching. */
struct _stp_section *sections;
unsigned num_sections;