Groups
Sign in
Groups
DynamoRIO Users
Conversations
About
Send feedback
Help
Is there any way that I could ignore some threads created by my application?
16 views
Skip to first unread message
Songyan Tang CN
unread,
Aug 15, 2024, 3:16:45 AM
Aug 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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 all,
I static link
DynamoRIO
and use like this:
dr_client_main(...) {
...
}
my_app_main() {
dr_app_setup();
// fork some threads here
// what I want is:
// for (auto thread : threads) {
// dr_ignore_thread(
thread.id
);
// }
// then when I call
dr_app_start, these threads will not be captured by DynamoRIO
dr_app_start();
dr_app_stop();
dr_app_cleanup();
}
Kai Luk
unread,
Aug 15, 2024, 11:35:43 AM
Aug 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
Please take a look at the function should_trace_thread_cb:
https://github.com/DynamoRIO/dynamorio/blob/0481c488b6adfe00307a12e71d59cf555a491dcb/clients/drcachesim/tests/burst_threadfilter.cpp#L112
If you know the thread IDs you want to ignore, you could use dr_get_thread_id.
Here's a related discussion:
https://groups.google.com/g/dynamorio-users/c/sVgkrahodxs/m/-pTVu6LwAwAJ
Kai
Songyan Tang CN
unread,
Aug 17, 2024, 10:24:41 AM
Aug 17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
Thanks, it is helpful!
Reply all
Reply to author
Forward
0 new messages