Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Storing value in offline traces

30 views
Skip to first unread message

Sai Aravind

unread,
Aug 25, 2024, 2:20:08 AM8/25/24
to DynamoRIO Users
Hello,
I want the value written by instructions (either to registers or memory) in the offline traces.
Is it possible to do?

Derek Bruening

unread,
Aug 25, 2024, 8:15:57 AM8/25/24
to Sai Aravind, DynamoRIO Users
The drmemtrace framework does not record values (partly because values in real workloads raise privacy issues).  The memval sample tracer does record values: 

--
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 on the web visit https://groups.google.com/d/msgid/dynamorio-users/3afaa62c-5d24-4ada-8543-398a5b064f42n%40googlegroups.com.

Sai Aravind

unread,
Aug 26, 2024, 11:47:22 AM8/26/24
to Derek Bruening, DynamoRIO Users

I took a look at it. It isn't exactly what I want. Can drmemtrace be added with an option to choose whether to include values or not in the trace?

Kai Luk

unread,
Aug 26, 2024, 7:21:11 PM8/26/24
to DynamoRIO Users
We do not have any plans to add this feature. We would likely accept a contribution adding values if it were clearly under a flag.

Sai Aravind

unread,
Aug 27, 2024, 12:54:18 PM8/27/24
to Kai Luk, DynamoRIO Users
Thank you for clarifying.
Thank you, Derek, for the suggestion.

I took a look at https://dynamorio.org/sec_drcachesim_tracer.html, I think it is possible to build a tool for my needs by using   drmemtrace_custom_module_data()  and raw2trace_t::handle_custom_data() .
Are there any example usages available for these functions?

Kai Luk

unread,
Aug 27, 2024, 1:46:23 PM8/27/24
to DynamoRIO Users
dynamorio/clients/drcachesim/tests/burst_replace.cpp

has examples of how these functions are used. 

Sai Aravind

unread,
Aug 28, 2024, 9:44:40 AM8/28/24
to Kai Luk, DynamoRIO Users
Reply all
Reply to author
Forward
0 new messages