summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_report.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-01-12 18:10:45 -0800
committerYabin Cui <yabinc@google.com>2016-01-12 18:10:45 -0800
commit4a6c58dba06a907c2d687ff0983469c6abe640a7 (patch)
tree3567f07216af43de92e455c1612cddf48ac12766 /simpleperf/cmd_report.cpp
parent4913c12f341bc4319d243af24fa2ee1a6618eb34 (diff)
downloadextras-4a6c58dba06a907c2d687ff0983469c6abe640a7.tar.gz
Simpleperf: fix --comms option for report cmd.
Add corresponding runtest. Adjust limitation in runtest.conf to pass tests on device. Change-Id: Ie56dc6dc4dade3c13aaaa7022b871b5d8bfd69dc
Diffstat (limited to 'simpleperf/cmd_report.cpp')
-rw-r--r--simpleperf/cmd_report.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_report.cpp b/simpleperf/cmd_report.cpp
index 8254c2ac..54ec0ee3 100644
--- a/simpleperf/cmd_report.cpp
+++ b/simpleperf/cmd_report.cpp
@@ -353,11 +353,11 @@ bool ReportCommand::ParseOptions(const std::vector<std::string>& args) {
} else if (args[i] == "--children") {
accumulate_callchain_ = true;
} else if (args[i] == "--comms" || args[i] == "--dsos") {
+ std::unordered_set<std::string>& filter = (args[i] == "--comms" ? comm_filter : dso_filter);
if (!NextArgumentOrError(args, &i)) {
return false;
}
std::vector<std::string> strs = android::base::Split(args[i], ",");
- std::unordered_set<std::string>& filter = (args[i] == "--comms" ? comm_filter : dso_filter);
filter.insert(strs.begin(), strs.end());
} else if (args[i] == "-g") {