Build our benchmarks against glibc too.
Bug: 18556607 Change-Id: I455ac8b93c0835836180e549486bc52d393ee6a6
This commit is contained in:
@@ -41,6 +41,8 @@ static void BM_unistd_getpid_syscall(int iters) {
|
||||
}
|
||||
BENCHMARK(BM_unistd_getpid_syscall);
|
||||
|
||||
#if defined(__BIONIC__)
|
||||
|
||||
// Stop GCC optimizing out our pure function.
|
||||
/* Must not be static! */ pid_t (*gettid_fp)() = gettid;
|
||||
|
||||
@@ -55,6 +57,8 @@ static void BM_unistd_gettid(int iters) {
|
||||
}
|
||||
BENCHMARK(BM_unistd_gettid);
|
||||
|
||||
#endif
|
||||
|
||||
static void BM_unistd_gettid_syscall(int iters) {
|
||||
StartBenchmarkTiming();
|
||||
|
||||
|
Reference in New Issue
Block a user