[PATCH v8 0/7] latencystats: cleanup and floating point fixes

Stephen Hemminger stephen at networkplumber.org
Tue Jun 10 16:12:39 CEST 2025


Latencystats uses unnecessary floating point and is inaccurate if the number
of cycles per ns is not an integral value. Cleanup the code and add
more tests as well.

v8 - rebase to 25.07-rc1

Stephen Hemminger (7):
  latencystats: handle fractional cycles per ns
  latencystats: do not use floating point
  latencystats: fix log messages
  latencystats: update include files
  latencystats: enforce that unused callback function is NULL
  latencystats: add metric for number of samples
  test: update to latencystats tests

 app/test/test_latencystats.c        |  84 +++++++----
 lib/latencystats/rte_latencystats.c | 212 ++++++++++++++++------------
 2 files changed, 177 insertions(+), 119 deletions(-)

-- 
2.47.2



More information about the dev mailing list