From: Dharmik Thakkar Date: Fri, 8 May 2020 22:38:29 +0000 (+0000) Subject: doc: add aarch64 generic counter in profiling guide X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=975a75c0575fadc1a4c0d8ddf24d9a16f4c04203;p=dpdk.git doc: add aarch64 generic counter in profiling guide Add a separate section for low-resolution generic counter for ARM64 profiling methods. Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Phil Yang Acked-by: Jerin Jacob --- diff --git a/doc/guides/prog_guide/profile_app.rst b/doc/guides/prog_guide/profile_app.rst index a36ebef4db..e5d0e9079e 100644 --- a/doc/guides/prog_guide/profile_app.rst +++ b/doc/guides/prog_guide/profile_app.rst @@ -57,11 +57,16 @@ For more derails refer to the `ARM64 specific PMU events enumeration `_. -High-resolution cycle counter -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Low-resolution generic counter +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The default ``cntvct_el0`` based ``rte_rdtsc()`` provides a portable means to -get a wall clock counter in user space. Typically it runs at <= 100MHz. +get a wall clock counter in user space. Typically it runs at a lower clock frequency than the CPU clock frequency. +Cycles counted using this method should be scaled to CPU clock frequency. + + +High-resolution cycle counter +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The alternative method to enable ``rte_rdtsc()`` for a high resolution wall clock counter is through the ARMv8 PMU subsystem. The PMU cycle counter runs