From d164ec151877445138ec47cc746e90c43a87a806 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 20 Aug 2015 17:18:48 -0400 Subject: [PATCH] perf_serialize: fix i386 build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit test/perf_local.cc: In function ‘double perf_serialize()’: error: test/perf_local.cc:683:20: inconsistent operand constraints in an ‘asm’ : "a" (1U)); ^ on ubuntu 14.04. Signed-off-by: Sage Weil --- src/test/perf_local.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/perf_local.cc b/src/test/perf_local.cc index 7dc8e8e28ef..9672be2553b 100644 --- a/src/test/perf_local.cc +++ b/src/test/perf_local.cc @@ -666,7 +666,7 @@ double perf_prefetch() #endif } -#if defined(__i386__) || defined(__x86_64__) +#if defined(__x86_64__) /** * This function is used to seralize machine instructions so that no * instructions that appear after it in the current thread can run before any @@ -686,7 +686,7 @@ static inline void serialize() { // Measure the cost of cpuid double perf_serialize() { -#if defined(__i386__) || defined(__x86_64__) +#if defined(__x86_64__) int count = 1000000; uint64_t start = Cycles::rdtsc(); for (int i = 0; i < count; i++) { -- 2.47.3