[v5,0/9] latencystats: improve algorithms and tests

Message ID 20240422152336.147553-1-stephen@networkplumber.org (mailing list archive)
Headers
Series latencystats: improve algorithms and tests |

Message

Stephen Hemminger April 22, 2024, 3:21 p.m. UTC
  Latencystats uses variable length array and floating point when they
are not necessary to acheive the same result. While testing also noticed
that the code was computing wrong values on my test system, and that
include files were missing.

v5 - use scaled values for latency and jitter
   - add more test cases
   - review feedback

Stephen Hemminger (9):
  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: use initialization in latencystats test
  test: add more latencystats tests

 app/test/test_latencystats.c        |  84 ++++++----
 lib/latencystats/rte_latencystats.c | 232 ++++++++++++++++------------
 2 files changed, 188 insertions(+), 128 deletions(-)