Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpif-netdev-perf: Fix millisecond stats precision with slower TSC.
Unlike x86 where TSC frequency usually matches with CPU frequency, another architectures could have much slower TSCs. For example, it's common for Arm SoCs to have 100 MHz TSC by default. In this case perf module will check for end of current millisecond each 10K cycles, i.e 10 times per millisecond. This could be not enough to collect precise statistics. Fix that by taking current TSC frequency into account instead of hardcoding the number of cycles. CC: Jan Scheurich <jan.scheurich@ericsson.com> Fixes: 79f3687 ("dpif-netdev: Detailed performance stats for PMDs") Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Acked-by: Jan Scheurich <jan.scheurich@ericsson.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
- Loading branch information