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(-) -- 2.43.0