git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3be840
)
app/test: replace x86 fence by multi arch function
author
Jerin Jacob
<jerin.jacob@caviumnetworks.com>
Sun, 30 Aug 2015 08:55:22 +0000
(14:25 +0530)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 8 Sep 2015 06:51:25 +0000
(08:51 +0200)
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
app/test/test_red.c
patch
|
blob
|
history
diff --git
a/app/test/test_red.c
b/app/test/test_red.c
index
262df72
..
37841b3
100644
(file)
--- a/
app/test/test_red.c
+++ b/
app/test/test_red.c
@@
-146,16
+146,7
@@
static void rdtsc_prof_init(struct rdtsc_prof *p, const char *name)
static inline void rdtsc_prof_start(struct rdtsc_prof *p)
{
-#ifdef __PIC__
- asm volatile (
- "mov %%ebx, %%edi\n"
- "cpuid\n"
- "xchgl %%ebx, %%edi;\n"
- : : : "%eax", "%edi", "%ecx", "%edx" );
-#else
- asm( "cpuid" : : : "%eax", "%ebx", "%ecx", "%edx" );
-#endif
- p->clk_start = rte_rdtsc();
+ p->clk_start = rte_rdtsc_precise();
}
static inline void rdtsc_prof_end(struct rdtsc_prof *p)