perf tools: Handle relocatable kernels
[safe/jmp/linux-2.6] / tools / perf / util / session.h
index 8db37bb..d4a9d20 100644 (file)
@@ -24,6 +24,10 @@ struct perf_session {
        unsigned long           unknown_events;
        struct rb_root          hists;
        u64                     sample_type;
+       struct {
+               const char      *name;
+               u64             addr;
+       }                       ref_reloc_sym;
        int                     fd;
        int                     cwdlen;
        char                    *cwd;
@@ -59,4 +63,10 @@ bool perf_session__has_traces(struct perf_session *self, const char *msg);
 
 int perf_header__read_build_ids(int input, u64 offset, u64 file_size);
 
+int perf_session__set_kallsyms_ref_reloc_sym(struct perf_session *self,
+                                            const char *symbol_name,
+                                            u64 addr);
+void perf_session__reloc_vmlinux_maps(struct perf_session *self,
+                                     u64 unrelocated_addr);
+
 #endif /* __PERF_SESSION_H */