perf tools: Handle both versions of ftrace output