summaryrefslogtreecommitdiff
path: root/simpleperf/cpu_hotplug_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2019-02-07 11:06:16 -0800
committerYabin Cui <yabinc@google.com>2019-02-14 11:09:33 -0800
commitd9121cec265ca1ecaea7fcf415ea5a0ddd39530e (patch)
tree005fc82eca26da3b3ac3d60f07f5b3c4f9e2f395 /simpleperf/cpu_hotplug_test.cpp
parented1f0357906b3b92bc180b28a6c2fd1f9082fb67 (diff)
downloadextras-d9121cec265ca1ecaea7fcf415ea5a0ddd39530e.tar.gz
simpleperf: prepare for adding user api.
In record cmd, add --stdio-controls-profiling option to pause/resume profiling. It reads cmds from stdin, and writes replies to stdout. Add --log-to-android-buffer option to show simpleperf logs in logcat. Bug: 123717243 Test: run simpleperf through user api manually. Test: run simpleperf_unit_test. Change-Id: I6c32c669d003cbd670a45e6fd31f764656837111
Diffstat (limited to 'simpleperf/cpu_hotplug_test.cpp')
-rw-r--r--simpleperf/cpu_hotplug_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cpu_hotplug_test.cpp b/simpleperf/cpu_hotplug_test.cpp
index 82277614..fe9c54d3 100644
--- a/simpleperf/cpu_hotplug_test.cpp
+++ b/simpleperf/cpu_hotplug_test.cpp
@@ -320,7 +320,7 @@ TEST(cpu_offline, offline_while_ioctl_enable) {
}
// Wait a little for the event to be installed on test_cpu's perf context.
std::this_thread::sleep_for(std::chrono::milliseconds(1));
- ASSERT_TRUE(event_fd->EnableEvent());
+ ASSERT_TRUE(event_fd->SetEnableEvent(true));
iterations++;
if (verbose_mode) {
GTEST_LOG_(INFO) << "Test offline while ioctl(PERF_EVENT_IOC_ENABLE) for " << iterations << " times.";