Re: [PATCH 04/10] dmapool: improve accuracy of debug statistics

2022-05-31 Thread Robin Murphy
On 2022-05-31 20:52, Tony Battersby wrote: On 5/31/22 15:48, Robin Murphy wrote: On 2022-05-31 19:17, Tony Battersby wrote: pool->name, blocks, -(size_t) pages * -(pool->allocation / pool->size), +

Re: [PATCH 04/10] dmapool: improve accuracy of debug statistics

2022-05-31 Thread Tony Battersby
On 5/31/22 15:48, Robin Murphy wrote: > On 2022-05-31 19:17, Tony Battersby wrote: > >> pool->name, blocks, >> - (size_t) pages * >> - (pool->allocation / pool->size), >> + (size_t) pag

Re: [PATCH 04/10] dmapool: improve accuracy of debug statistics

2022-05-31 Thread Robin Murphy
On 2022-05-31 19:17, Tony Battersby wrote: The "total number of blocks in pool" debug statistic currently does not take the boundary value into account, so it diverges from the "total number of blocks in use" statistic when a boundary is in effect. Add a calculation for the number of blocks per