Skip to content
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

Merged
merged 5 commits into from
Feb 22, 2018

Conversation

derekbruening
Copy link
Contributor

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

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
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;
Copy link
Contributor

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?

Copy link
Contributor Author

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
@derekbruening
Copy link
Contributor Author

@Carrotman42, PTAL: tests should go green (took a bit of work; had to fix #2845 too).

@Carrotman42
Copy link
Contributor

LGTM

@derekbruening derekbruening merged commit ad2614d into master Feb 22, 2018
@derekbruening derekbruening deleted the i2820-thread-subset branch February 22, 2018 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants