perf tools: Use asprintf() for simple string formatting/allocation