Mah
unread,Jun 14, 2023, 10:20:33 AM6/14/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DynamoRIO Users
Hi, I am trying to inline instrumentation before and after every application function call (whether direct or indirect) that basically saves certain registers before the function call (by pushing it on the stack or saving through dr_insert_write_tls_filed) and restores them after the function call . As far as I know, dr_insert_clean_call is inserted before the instruction. Similarly, instrlist_meta_postinsert does not work for control transfer instruction such as calls? Also, drwrap_wrap requires a function address, whereas I want to wrap every function call, whether direct or indirect. For me, the most desirable way is to insert meta instructions inlined, as I do not want to touch any other registers than the ones I specifically intend to. Is there a way to do this?