diff options
author | Yabin Cui <yabinc@google.com> | 2016-07-11 17:04:54 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-07-11 17:25:24 -0700 |
commit | c855ecc6becfe5d1c2445094aa525856e4538f7c (patch) | |
tree | e8497f73c5541ba6cf04a230b99b915a1c29bc0f /simpleperf/cmd_report_test.cpp | |
parent | 2d6e0d6511db416b116ec46f747a84f29489fbec (diff) | |
download | extras-c855ecc6becfe5d1c2445094aa525856e4538f7c.tar.gz |
simpleperf: add min_vaddr in DsoRecord.
Min virtual address of a shared library is needed when mapping ip
addresses to function symbols. So we should dump it in DsoRecord.
Bug: 28114205
Test: run simpleperf_unit_test.
Change-Id: Ib986ee598281cf60caa3a2c5408100b9e7678143
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r-- | simpleperf/cmd_report_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp index e6c152e9..12811376 100644 --- a/simpleperf/cmd_report_test.cpp +++ b/simpleperf/cmd_report_test.cpp @@ -309,6 +309,9 @@ TEST_F(ReportCommandTest, report_dumped_symbols) { Report(PERF_DATA_WITH_SYMBOLS); ASSERT_TRUE(success); ASSERT_NE(content.find("main"), std::string::npos); + Report(PERF_DATA_WITH_SYMBOLS_FOR_NONZERO_MINVADDR_DSO); + ASSERT_TRUE(success); + ASSERT_NE(content.find("main"), std::string::npos); } TEST_F(ReportCommandTest, report_sort_vaddr_in_file) { |