Code coverage of windows service

29 views
Skip to first unread message

PPI-POPS

unread,
Feb 11, 2026, 6:21:00 PM (2 days ago) Feb 11
to DynamoRIO Users
Hello everyone. How can i get a code coverage of windows service with drcov?
I have an exe file with the functionality of this service.

Enrico Deiana

unread,
Feb 11, 2026, 6:28:25 PM (2 days ago) Feb 11
to DynamoRIO Users
You can run drcov like any other client: `drrun -t drcov -- ${BINARY} ${ARGS}` (https://dynamorio.org/sec_drcachesim_run.html)
Then post-process the log file for your needs as documented: https://dynamorio.org/page_drcov.html .

PPI-POPS

unread,
Feb 12, 2026, 4:51:44 AM (2 days ago) Feb 12
to dynamor...@googlegroups.com
But it's not just an exe, it's a service. If you just run it with drrun, it will stop immediately.

---------- Пересылаемое сообщение ---------

Enrico Deiana

unread,
Feb 12, 2026, 9:11:18 PM (2 days ago) Feb 12
to DynamoRIO Users
I'm not sure I understand. Why would it stop immediately?

> I have an exe file with the functionality of this service.

Aren't you trying to run the executable that has "the functionality of this service"?

If you're trying to run an already executing process under DynamoRIO, you can try attaching to it:
`drrun -attach ${PID} - t drcov`
 but know that's an experimental feature (https://dynamorio.org/page_deploy.html).

Derek Bruening

unread,
Feb 13, 2026, 1:34:11 PM (16 hours ago) Feb 13
to Enrico Deiana, DynamoRIO Users
Systemwide injection is how people used to inject DR clients into Windows system services. This method is documented at https://dynamorio.org/page_deploy.html#win_deploy (search "-syswide_on").

--
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/558f1b41-868e-4ef7-93b2-c601445ba3e3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages