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 AMAug 15
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 AMAug 15
to DynamoRIO Users
Please take a look at the function should_trace_thread_cb:

Songyan Tang CN

unread,
Aug 17, 2024, 10:24:41 AMAug 17
to DynamoRIO Users
Thanks, it is helpful!
Reply all
Reply to author
Forward
0 new messages