-
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#2039 trace trim, part 3: Add nop mode to drmemtrace (#5700)
Adds a new drbbdup mode to drmemtrace which performs zero instrumentation (except drwrap cleanup). This mode is used when attaching for the period prior to full control of all threads and when detaching prior to starting to let threads go native, to avoid uneven thread instrumentation during these incremental staggered processes. The mode is initially under an off-by-default new option -align_endpoints while drbbdup stability is being worked on (i#5686). Threads that did nothing during the trace-mode period are now omitted from the trace. Adds a test by adding 4 idle threads to burst_threads and ensuring they do not show up in the trace. Alignment itself was tested manually by running larger applications and analyzing the timestamp ranges in the trace. Fixes the burst_replace test to work properly with .zip output (the output regex still matched despite a printed error from raw2trace, it seems). Timestamps during detach require further work as they inaccurately imply executing after tracing mode was turned off. The next part will address this issue. Issue: #2039, #5686
- Loading branch information
1 parent
246ddb2
commit df5ab9f
Showing
12 changed files
with
238 additions
and
49 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
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
25 changes: 25 additions & 0 deletions
25
clients/drcachesim/tests/offline-burst_threads_counts.templatex
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
pre-DR init | ||
pre-DR start | ||
pre-DR detach | ||
pre-DR init | ||
pre-DR start | ||
pre-DR detach | ||
pre-DR init | ||
pre-DR start | ||
pre-DR detach | ||
pre-DR init | ||
pre-DR start | ||
pre-DR detach | ||
all done | ||
Basic counts tool results: | ||
Total counts: | ||
.* total \(fetched\) instructions | ||
.* total unique \(fetched\) instructions | ||
.* total non-fetched instructions | ||
.* total prefetches | ||
.* total data loads | ||
.* total data stores | ||
.* total icache flushes | ||
.* total dcache flushes | ||
[ 1][0-9] total threads | ||
.* |
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
Oops, something went wrong.