Translate Google Workload Traces (V2) to XED

19 views
Skip to first unread message

Heiner Litz

unread,
Mar 25, 2025, 3:36:33 PMMar 25
to DynamoRIO Users
Hi,
my tool internally uses XED and so I want to translate Google workload traces into xed instructions.

I can approximate ICLASS based on dynamorio categories but do not know in what order to add operands. opnd_get_reg unfortunately only covers reg operands and not mem operands and hence I do not know in which order to add mem (which I get directly from the trace) and reg operands to generate the xed. Any ideas how I could do this?

Heiner

Enrico Deiana

unread,
Mar 25, 2025, 5:06:32 PMMar 25
to DynamoRIO Users
Hi Heiner,

Reconstructing exact memory operands and their order for instructions in Google workload traces is not really feasible, you can only infer the presence of memory operands from the read/write records that follow an instruction.
This was part of the filtering process we used on these traces to protect Google's IP.
You might be able to get an approximation for this missing info by manually creating a canonical template for each category + operand pattern encountered in a trace and make up missing operands like immediates.
As a suggestion, instead of trying to strictly satisfy XED, you might want to consider bypassing your tool's decoding layer and populate whatever internal IR your tool uses for instructions with the info you have from the trace (assuming your tool can take invalid-ISA patterns).

-Enrico

Heiner Litz

unread,
Mar 25, 2025, 5:23:27 PMMar 25
to Enrico Deiana, DynamoRIO Users
Hi Enrico,
Thanks, yes it seems like bypassing is the more feasible route here.
Best, Heiner 


--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dynamorio-users/bcb8d98a-113b-4422-aa2a-2b3de72e28d3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages