DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.57k stars 551 forks source link

i#6726 replay cpuid: Sort as-traced outputs by cpuid #6729

Closed derekbruening closed 3 months ago

derekbruening commented 3 months ago

Currently, in as-traced mode the output streams are assigned to the cores in the as-traced schedule file in file order. But that order is essentially random, which scrambles key arrangements like which core is on which socket. Here we sort by the recorded cpuid to recreate the same cpuid order as before.

Adds a unit test. Also tested on larger cases with > 100 cores.

Issue: #6726