OSDN Git Service

Merge "Minor changes to netlink code."
[android-x86/system-extras.git] / simpleperf / dso.h
index b9553f3..a140e5e 100644 (file)
@@ -60,11 +60,20 @@ struct Dso {
   static std::unique_ptr<Dso> CreateDso(DsoType dso_type, const std::string& dso_path = "");
 
   ~Dso();
+
+  // Return the path recorded in perf.data.
   const std::string& Path() const {
     return path_;
   }
 
-  const Symbol* FindSymbol(uint64_t offset_in_dso);
+  // Return the accessible path. It may be the same as Path(), or
+  // return the path with prefix set by SetSymFsDir().
+  std::string GetAccessiblePath() const;
+
+  // Return the minimum virtual address in program header.
+  uint64_t MinVirtualAddress();
+
+  const Symbol* FindSymbol(uint64_t vaddr_in_dso);
 
  private:
   static BuildId GetExpectedBuildId(const std::string& filename);
@@ -89,6 +98,7 @@ struct Dso {
 
   const DsoType type_;
   const std::string path_;
+  uint64_t min_vaddr_;
   std::vector<Symbol> symbols_;
   bool is_loaded_;
 };