[PATCH v6 0/8] latencystats: improvements to algorithm and test

Stephen Hemminger stephen at networkplumber.org
Thu May 30 00:54:37 CEST 2024


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.

v6 - rebase and combine updates to test

Stephen Hemminger (8):
  latencystats: replace use of VLA
  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 | 232 ++++++++++++++++------------
 2 files changed, 188 insertions(+), 128 deletions(-)

-- 
2.43.0



More information about the dev mailing list