Closed vineelreddys closed 2 months ago
Please use the users list https://groups.google.com/forum/#!forum/DynamoRIO-Users for questions like this where you're not sure whether it is a bug, as it will reach a wider audience of people who might have an answer, and it will reach other users who may find the information beneficial. The data synthesis to augment the PT instruction-only trace (PT does not support data: only instructions) is not implemented yet: that is under #5505.
I tried the latest version of Dynamorio and generated an offline trace for simple helloworld program written in c/cpp. In addition, I tried to capture kernel trace using -enable_kernel_tracing flag.
The command I used to generate the trace was: sudo ./dynamorio/build/bin64/drrun -t drcachesim -offline -enable_kernel_tracing -- ./hellotest
When I tried to view the trace using view tool I see the kernel trace do not have read and write addresses. See the ret instruction with pc 0xffffffff9da753fb in the following trace snippet where we do not see a read address in the next line after the instruction. Where as we correctly capture read address for the same ret instruction with pc 0x00007f76f6faf1a8 in the user trace. This can either be a limitation of libipt tool or dynamorio is not properly processing kernel trace to generate drmemtrace.