summaryrefslogtreecommitdiff
path: root/simpleperf/cpu_hotplug_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2017-02-23 23:50:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-23 23:50:33 +0000
commitd9d23181768df567d166b79a89cfc0408e086509 (patch)
treed46ce900882e33843a1dfd9bed44c4f1701052a6 /simpleperf/cpu_hotplug_test.cpp
parent7e5199f5dd8c3b74c4e7c5f22b2a24f4f6924bcf (diff)
parentb92bae84b27889b548214bee8d0730ef10da0c6d (diff)
downloadextras-d9d23181768df567d166b79a89cfc0408e086509.tar.gz
Merge "simpleperf: build libsimpleperf_inplace_sampler library."
Diffstat (limited to 'simpleperf/cpu_hotplug_test.cpp')
-rw-r--r--simpleperf/cpu_hotplug_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/simpleperf/cpu_hotplug_test.cpp b/simpleperf/cpu_hotplug_test.cpp
index c30ca67d..16e0e5ce 100644
--- a/simpleperf/cpu_hotplug_test.cpp
+++ b/simpleperf/cpu_hotplug_test.cpp
@@ -17,7 +17,6 @@
#include <gtest/gtest.h>
#include <sys/stat.h>
-#include <sys/syscall.h>
#include <unistd.h>
#if defined(__BIONIC__)
#include <sys/system_properties.h>
@@ -32,6 +31,7 @@
#include <android-base/logging.h>
#include <android-base/stringprintf.h>
+#include "environment.h"
#include "event_attr.h"
#include "event_fd.h"
#include "event_type.h"
@@ -330,7 +330,7 @@ struct CpuSpinThreadArg {
};
static void CpuSpinThread(CpuSpinThreadArg* arg) {
- arg->tid = syscall(__NR_gettid);
+ arg->tid = gettid();
while (!arg->end_flag) {
cpu_set_t mask;
CPU_ZERO(&mask);