perf_counter tools: move remaining code into kerneltop.c