[dpdk-stable] [PATCH 1/5] app/testpmd: clock gettime call in throughput calculation

Phil Yang Phil.Yang at arm.com
Thu Jun 18 17:08:56 CEST 2020


> -----Original Message-----
> From: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Sent: Wednesday, June 17, 2020 10:43 PM
> To: dev at dpdk.org; Honnappa Nagarahalli
> <Honnappa.Nagarahalli at arm.com>; alialnu at mellanox.com;
> orgerlitz at mellanox.com; wenzhuo.lu at intel.com; beilei.xing at intel.com;
> bernard.iremonger at intel.com
> Cc: hemant.agrawal at nxp.com; jerinj at marvell.com;
> viacheslavo at mellanox.com; thomas at monjalon.net; Ruifeng Wang
> <Ruifeng.Wang at arm.com>; Phil Yang <Phil.Yang at arm.com>; nd
> <nd at arm.com>; zhihong.wang at intel.com; stable at dpdk.org
> Subject: [PATCH 1/5] app/testpmd: clock gettime call in throughput
> calculation
> 
> The throughput calculation requires a counter that measures
> passing of time. The PMU cycle counter does not do that. This
> results in incorrect throughput numbers when
> RTE_ARM_EAL_RDTSC_USE_PMU is enabled. 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.wang at intel.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Reviewed-by: Phil Yang <phil.yang at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> ---

Tested-by: Phil Yang <phil.yang at arm.com> 


More information about the stable mailing list