[gem5-scripts] Stats selection by reg pattern.