Metrics are complex enough that a new/free reduces the risk of memory leaks. Move static functions used in new. Acked-by: Andi Kleen<ak@xxxxxxxxxxxxxxx> Signed-off-by: Ian Rogers<irogers@xxxxxxxxxx>