On Thu, May 30, 2024 at 12:57 AM Stephen Hemminger <step...@networkplumber.org> wrote: > > 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(-) >
Please review. Thanks. -- David Marchand