perf trace: Use new machine method to loop over threads