Does the -attach option available when using offline mode?

82 views
Skip to first unread message

zhangqi zhu

unread,
Dec 29, 2023, 4:05:29 AM12/29/23
to DynamoRIO Users
I want to record the instruction flow of the mysql service and do some analysis, but I find that the '/bin64/drrun -attach ${mysqld_pid} -t drcachesim --offline' does not work.
It seems the -attach cannot be used with --offline?

Derek Bruening

unread,
Dec 29, 2023, 5:59:02 PM12/29/23
to zhangqi zhu, DynamoRIO Users
It does work, but not with the -t launcher (which normally replaces drrun) as that launcher has no attach support.  You have to specify the client directly.  E.g.:

bin64/drrun -attach $(pgrep xcalc) -c tools/lib64/release/libdrmemtrace.so -offline

On Fri, Dec 29, 2023 at 4:05 AM zhangqi zhu <zhuzhan...@gmail.com> wrote:
I want to record the instruction flow of the mysql service and do some analysis, but I find that the '/bin64/drrun -attach ${mysqld_pid} -t drcachesim --offline' does not work.
It seems the -attach cannot be used with --offline?

--
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/d21bdc97-d1f8-4151-840f-8b7740307fc3n%40googlegroups.com.

zhangqi zhu

unread,
Jan 3, 2024, 1:10:55 AMJan 3
to DynamoRIO Users
Thank you for your reply, it does work!

Derek Bruening

unread,
Jan 10, 2024, 11:36:04 AMJan 10
to DynamoRIO Users
I filed https://github.com/DynamoRIO/dynamorio/issues/6550 on adding attach support to the drcachesim launcher, marked as help-wanted if someone is interested in working on that.
Reply all
Reply to author
Forward
0 new messages