diff options
author | Mark Wielaard <mjw@redhat.com> | 2008-12-10 20:39:45 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2008-12-10 20:39:45 +0100 |
commit | d2f4d7286629da6e9f1b844beefb141a4d3ef2c3 (patch) | |
tree | ffcff9ea678de1196ad1d95a3ee6880eaf39e3df /runtime/runtime.h | |
parent | e8318a92c7b07579b89da5ff6fef782ce5d2b58c (diff) | |
download | systemtap-steved-d2f4d7286629da6e9f1b844beefb141a4d3ef2c3.tar.gz systemtap-steved-d2f4d7286629da6e9f1b844beefb141a4d3ef2c3.tar.xz systemtap-steved-d2f4d7286629da6e9f1b844beefb141a4d3ef2c3.zip |
PR6866: First pass at translating addresses to symbol names through vma.
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 3b3e117d..055d3f27 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -86,6 +86,24 @@ static struct #include "io.c" #include "arith.c" #include "copy.c" + +/* Lifted task_finder, internal details used in sym.c - XXX */ +struct __stp_tf_vma_entry { + struct hlist_node hlist; + + pid_t pid; + unsigned long addr; + unsigned long vm_start; + unsigned long vm_end; + unsigned long vm_pgoff; + // Is that enough? Should we store a dcookie for vm_file? + + // Module that this vma entry is mapped from, if any. + struct _stp_module *module; +}; +static struct __stp_tf_vma_entry * +__stp_tf_get_vma_entry_addr(struct task_struct *, unsigned long); + #include "sym.c" #ifdef STP_PERFMON #include "perf.c" |