summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2018-01-22 12:19:50 -0800
committerYabin Cui <yabinc@google.com>2018-01-22 16:38:53 -0800
commit8ee3452a514396d651e9e3edbab2324b5d93289b (patch)
tree574c3d236753333da20632211dedaa0982de5483
parent02ca18a389e74c379dbc3925984a74f074a3efe1 (diff)
downloadextras-8ee3452a514396d651e9e3edbab2324b5d93289b.tar.gz
simpleperf: temporarily disable handling cpu hotplug in record cmd.
mmap() can fail in cpu hotplug handling code, So disable it temporarily to pass cts test. Bug: http://b/65528673 Test: run CtsSimpleperfTestCases. Change-Id: I4dd4958d802310dfaf6881ad1c438b4e130205c6 (cherry picked from commit 7245e69be5bb511e6691b5b94e6b5a40f6872620)
-rw-r--r--simpleperf/cmd_record.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/simpleperf/cmd_record.cpp b/simpleperf/cmd_record.cpp
index 1cbb86cd..ce3576d7 100644
--- a/simpleperf/cmd_record.cpp
+++ b/simpleperf/cmd_record.cpp
@@ -295,9 +295,6 @@ bool RecordCommand::Run(const std::vector<std::string>& args) {
if (!event_selection_set_.PrepareToReadMmapEventData(callback)) {
return false;
}
- if (!event_selection_set_.HandleCpuHotplugEvents(cpus_)) {
- return false;
- }
if (need_to_check_targets && !event_selection_set_.StopWhenNoMoreTargets()) {
return false;
}