aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/dim/dim_kunit.c
AgeCommit message (Collapse)AuthorFilesLines
2026-10-02lib/dim: add KUnit test for dim_calc_stats()Shashank Mohan Jain1-0/+126
Add a KUnit suite for the DIM library that checks the packet, byte, event and completion rates computed by dim_calc_stats(), including counter wraparound and windows whose byte or packet count times USEC_PER_MSEC does not fit in 32 bits. The latter cases fail on 32-bit architectures without the previous commit. Assisted-by: LLM Signed-off-by: Shashank Mohan Jain <jain.sm@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>