summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h18
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"