-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#4139: Add method to clear droption values for static re-attach (#5335)
The values of droption accumulated options are not reset on detach, causing them to accumulate in a statically-linked client. There is no control point for droption to do this automatically, so we add droption_parser_t::clear_values() that a client can call. Adds a call to clear_values() in drmemtrace. Augments the drmemtrace burst_malloc test to fail when the options are not reset (i.e., fail without this fix). This serves as a test of the new feature, as the existing droption tests do not have static clients nor simple ways to add re-attaches. Adds a section to the droption documentation explaining the new feature. Fixes #4139
- Loading branch information
1 parent
cc8bd67
commit 4570a68
Showing
7 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
pre-DR init | ||
Warning: duplicated function name .* | ||
.* | ||
pre-DR start | ||
pre-DR detach | ||
.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters