summaryrefslogtreecommitdiff
path: root/simpleperf/dso.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-10-24 14:09:26 -0700
committerYabin Cui <yabinc@google.com>2016-10-25 09:38:29 -0700
commit78fddd140931adf704061f82e3c9fcb03362f8d0 (patch)
treeb5656178816562662904139a43d80a64e0dd5f39 /simpleperf/dso.cpp
parent58117c6714dcc329811c8ad97e54492422a7900c (diff)
downloadextras-78fddd140931adf704061f82e3c9fcb03362f8d0.tar.gz
simpleperf: use Dso::IsHit() to mark hit binaries.
Bug: http://b/32340274 Test: simpleperf_unit_test. Change-Id: I074973cdc0420d28c7dfcaca80e477234bceec95
Diffstat (limited to 'simpleperf/dso.cpp')
-rw-r--r--simpleperf/dso.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/dso.cpp b/simpleperf/dso.cpp
index 17a38a6f..b22ebbf2 100644
--- a/simpleperf/dso.cpp
+++ b/simpleperf/dso.cpp
@@ -138,7 +138,8 @@ Dso::Dso(DsoType type, uint64_t id, const std::string& path)
debug_file_path_(path),
min_vaddr_(std::numeric_limits<uint64_t>::max()),
is_loaded_(false),
- has_dumped_(false) {
+ has_dumped_(false),
+ hit_flag_(false) {
// Check if file matching path_ exists in symfs directory before using it as
// debug_file_path_.
if (!symfs_dir_.empty()) {