Integrating Drcov data into Ghidra

30 views
Skip to first unread message

Tom Tailor

unread,
Jan 31, 2025, 12:47:15 PMJan 31
to DynamoRIO Users
 

Hi all,

 

I am new to DynamoRIO

 

I want to import drcov dfata into ghidra to color the executed code blocks. I stumbled upon https://github.com/reb311ion/emerald . The plugin has been build for drcov v2 . I changed the version checks in the script and the result looked good at a first glance.  Is this enough ?

what are the differences between v2 and v3 ?  

is there an alternative to emerald ?

 

Thanks Jannis

 

 

Abhinav Sharma

unread,
Jan 31, 2025, 2:05:13 PMJan 31
to DynamoRIO Users
> what are the differences between v2 and v3 ?  

V3 is DRCOV_VERSION_SEGMENT_OFFSETS (https://github.com/DynamoRIO/dynamorio/blob/f016b8fdf8206c44f795bd549127c234ef63eb3e/ext/drcovlib/drcovlib.h#L121) which added support for code in a non-initial module segment, and for gaps between segments (also see https://github.com/DynamoRIO/dynamorio/issues/2243 and https://github.com/DynamoRIO/dynamorio/pull/5094).

> The plugin has been build for drcov v2 . I changed the version checks in the script and the result looked good at a first glance.  Is this enough ?

I believe that's a question for the maintainers of https://github.com/reb311ion/emerald.


> is there an alternative to emerald ?

You mean for visualizing the coverage info? Did you try out the steps at https://dynamorio.org/page_drcov.html?

Abhinav

Reply all
Reply to author
Forward
0 new messages