summaryrefslogtreecommitdiff
path: root/simpleperf/dso.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-06-11 11:15:42 -0700
committerYabin Cui <yabinc@google.com>2015-06-11 12:11:23 -0700
commitb378355f34b2b585eaf2be262bcd9baae9f3d36a (patch)
treeed9d6fd03b3cee6c3b6f2476bbc4841280dfdb5c /simpleperf/dso.h
parent1dbbc5321bea27417221dc31edf0114bf26a3302 (diff)
downloadextras-b378355f34b2b585eaf2be262bcd9baae9f3d36a.tar.gz
Simpleperf: improve symbol parsing.
Support c++ symbol demangling, and add option to disable it. Add option to set symfs dir, so it can report on host. Add label symbols, add add symbol length fixing for it. Add two hacks about arm elf symbol parsing. Bug: 19483574 Change-Id: I300d6c007c8634db382d0a50627b9cde1502df89
Diffstat (limited to 'simpleperf/dso.h')
-rw-r--r--simpleperf/dso.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/simpleperf/dso.h b/simpleperf/dso.h
index f596cd54..2d79c92a 100644
--- a/simpleperf/dso.h
+++ b/simpleperf/dso.h
@@ -41,9 +41,15 @@ struct DsoEntry {
class DsoFactory {
public:
+ static void SetDemangle(bool demangle);
+ static bool SetSymFsDir(const std::string& symfs_dir);
static std::unique_ptr<DsoEntry> LoadKernel();
static std::unique_ptr<DsoEntry> LoadKernelModule(const std::string& dso_path);
static std::unique_ptr<DsoEntry> LoadDso(const std::string& dso_path);
+
+ private:
+ static bool demangle;
+ static std::string symfs_dir;
};
#endif // SIMPLE_PERF_DSO_H_