Signed-off-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
---
app/test/test_red.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/app/test/test_red.c b/app/test/test_red.c
index 262df72..813c508 100644
--- a/app/test/test_red.c
+++ b/app/test/test_red.c
@@ -146,6 +146,7 @@ static void rdtsc_prof_init(struct rdtsc_prof *p, const
char *name)
static inline void rdtsc_prof_start(struct rdtsc_prof *p)
{
+#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) ||
defined(RTE_ARCH_X86_X32)
#ifdef __PIC__
asm volatile (
"mov %%ebx, %%edi\n"
@@ -155,6 +156,7 @@ static inline void rdtsc_prof_start(struct rdtsc_prof *p)
#else
asm( "cpuid" : : : "%eax", "%ebx", "%ecx", "%edx" );
#endif
+#endif
p->clk_start = rte_rdtsc();
}
--
2.1.0