diff options
author | Yabin Cui <yabinc@google.com> | 2016-07-14 13:26:19 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-07-14 14:31:39 -0700 |
commit | 15475e6ff1bc0273f666ef1bd6c2f7a50c4b948c (patch) | |
tree | c0ccbeef9d35efd4adc853ac973cdf2a6bc91b8d /simpleperf/cmd_report_test.cpp | |
parent | e5b5cf07c7c092a178f25dadff8842e9000d0e1f (diff) | |
download | extras-15475e6ff1bc0273f666ef1bd6c2f7a50c4b948c.tar.gz |
simpleperf: show dso[+vaddr_in_file] for unknown symbols.
It gives more information than just unknown symbols.
Add --no-show-ip option to disable this additional detail.
Bug: 29772268
Change-Id: Ie8067f95b5fdc65806044e229ee12095367d115a
Test: run simpleperf_unit_test.
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r-- | simpleperf/cmd_report_test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp index 12811376..d6231bf9 100644 --- a/simpleperf/cmd_report_test.cpp +++ b/simpleperf/cmd_report_test.cpp @@ -340,6 +340,15 @@ TEST_F(ReportCommandTest, check_build_id) { testing::ExitedWithCode(0), "build id.*mismatch"); } +TEST_F(ReportCommandTest, no_show_ip_option) { + Report(PERF_DATA); + ASSERT_TRUE(success); + ASSERT_EQ(content.find("unknown"), std::string::npos); + Report(PERF_DATA, {"--no-show-ip"}); + ASSERT_TRUE(success); + ASSERT_NE(content.find("unknown"), std::string::npos); +} + #if defined(__linux__) static std::unique_ptr<Command> RecordCmd() { |