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

Message ID 20240529225732.442539-1-stephen@networkplumber.org (mailing list archive)
Headers
Series latencystats: improvements to algorithm and test |

Message

Stephen Hemminger May 29, 2024, 10:54 p.m. UTC
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(-)