[dpdk-dev] [PATCH v2 3/6] eal/arm: add 64-bit armv8 version of rte_cycles.h

2015-10-30 Thread Jan Viktorin
On Fri, 30 Oct 2015 11:51:23 + David Hunt wrote: > +static inline uint64_t > +rte_rdtsc(void) > +{ > + uint64_t tsc; > + > + asm volatile("mrs %0, CNTVCT_EL0" : "=r" (tsc)); > + > +#ifdef RTE_TIMER_MULTIPLIER > + return tsc * RTE_TIMER_MULTIPLIER; > +#else I think, this should be

[dpdk-dev] [PATCH v2 3/6] eal/arm: add 64-bit armv8 version of rte_cycles.h

2015-10-30 Thread Hunt, David
On 30/10/2015 12:44, Jan Viktorin wrote: > On Fri, 30 Oct 2015 11:51:23 + > David Hunt wrote: > >> +static inline uint64_t >> +rte_rdtsc(void) >> +{ >> +uint64_t tsc; >> + >> +asm volatile("mrs %0, CNTVCT_EL0" : "=r" (tsc)); >> + >> +#ifdef RTE_TIMER_MULTIPLIER >> +return tsc * RTE

[dpdk-dev] [PATCH v2 3/6] eal/arm: add 64-bit armv8 version of rte_cycles.h

2015-10-30 Thread David Hunt
Signed-off-by: David Hunt --- .../common/include/arch/arm/rte_cycles.h | 4 ++ .../common/include/arch/arm/rte_cycles_64.h| 77 ++ 2 files changed, 81 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_cycles_64.h diff --git a/lib/