Thread (8 messages) 8 messages, 5 authors, 2016-10-04

Re: [PATCH] eal/armv8: high-resolution cycle counter

flat view

From: Thomas Monjalon <hidden>
Date: 2016-10-04 08:46:57

quoted
Existing cntvct_el0 based rte_rdtsc() provides portable means to get wall clock
counter at user space. Typically it runs at <= 100MHz.

The alternative method to enable rte_rdtsc() for high resolution wall clock
counter is through armv8 PMU subsystem.
The PMU cycle counter runs at CPU frequency, However, access to PMU cycle
counter from user space is not enabled by default in the arm64 linux kernel.
It is possible to enable cycle counter at user space access by configuring the
PMU from the privileged mode (kernel space).

by default rte_rdtsc() implementation uses portable
cntvct_el0 scheme. Application can choose the PMU based implementation with
CONFIG_RTE_ARM_EAL_RDTSC_USE_PMU

Signed-off-by: Jerin Jacob <redacted>
Acked-by: Hemant Agrawal <redacted>
Applied, thanks

Please do not forget documentation and upstreaming efforts.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help