-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i#2820 trace thread subset: reset callbacks at exit #2844
Conversation
Resets callback functions to empty at exit to better support re-attach. Unfortunately i#2175 still prevents extending the thread filter test to include re-attach. Issue: #2820
clients/drcachesim/tracer/tracer.cpp
Outdated
memset(&file_ops_func, 0, sizeof(file_ops_func)); | ||
if (!offline_instru_t::custom_module_data(nullptr, nullptr, nullptr)) | ||
DR_ASSERT(false && "failed to clear custom module callbacks"); | ||
should_trace_thread_cb = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about thread_filtering_enabled
, and trace_thread_cb_user_data
just in case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, this is a heavyweight client and a few stores won't matter. Done.
Instate 4 re-attach iters in the burst_threads and burst_thread*filter tests. Add "firstglob" support to runmulti to post-process only one of the 4 re-attach traces to keep the tests simpler and faster. Add testing of the thread filter callback being reset across re-attach by passing in a specific user param. Issue: #2175, #2820
@Carrotman42, PTAL: tests should go green (took a bit of work; had to fix #2845 too). |
LGTM |
Resets callback functions to empty at exit to better support re-attach.
Unfortunately i#2175 still prevents extending the thread filter test to
include re-attach.
Issue: #2820