On 7/7/2020 12:32 AM, Honnappa Nagarahalli wrote: > The throughput calculation requires a counter that measures > passing of time. However, the kernel saves and restores the PMU > state when a thread is unscheduled and scheduled. This ensures > that the PMU cycles are not counted towards a thread that is > not scheduled. Hence, when RTE_ARM_EAL_RDTSC_USE_PMU is enabled, > the PMU cycles do not represent the passing of time. > This results in incorrect calculation of throughput numbers. > Use clock_gettime system call to calculate the time passed since > last call. > > Bugzilla ID: 450 > Fixes: 0e106980301d ("app/testpmd: show throughput in port stats") > Cc: zhihong.w...@intel.com > Cc: sta...@dpdk.org > > Signed-off-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > Reviewed-by: Phil Yang <phil.y...@arm.com> > Reviewed-by: Ruifeng Wang <ruifeng.w...@arm.com> > Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com> > Tested-by: Phil Yang <phil.y...@arm.com> > Tested-by: Ali Alnubani <alia...@mellanox.com>
Series applied to dpdk-next-net/master, thanks.