-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#4857: Add instr count to drmemtrace filtered traces (#4864)
Adds tracking of the dynamic (pre-filtered) instruction count for each thread. Stores the count in a marker at thread exit (storing prior to each miss entry might be useful but in experiments it adds too much overhead to include without a clear mandate and possibly under an off-by-default runtime option). Adds a check to the filter tests confirming that the instruction count marker is present at thread exit for filtered traces. This is done by invoked test_mode for these traces. To simplify testing for online and offline, the trace type marker is added to online traces. Adds a new tool.drcachesim.filter-asm test which ensures the instr count is the precise count expected for that fully-deterministic tiny static binary. A larger-than-static-asm application was manually tested, confirming the need for the rep string expansion special case in the code to limit to 1 instruction for that block. Fixes #4857
- Loading branch information
1 parent
221d581
commit c530f52
Showing
15 changed files
with
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
Hello world! | ||
---- <application exited with code 0> ---- | ||
Cache simulation results: | ||
Core #0 \(1 thread\(s\)\) | ||
L1I stats: | ||
Hits: 0 | ||
Misses: .* | ||
Invalidations: 0 | ||
Miss rate: 100.00% | ||
L1D stats: | ||
Hits: 0 | ||
Misses: 0 | ||
Invalidations: 0 | ||
Core #1 \(0 thread\(s\)\) | ||
Core #2 \(0 thread\(s\)\) | ||
Core #3 \(0 thread\(s\)\) | ||
LL stats: | ||
Hits: 0 | ||
Misses: .* | ||
Invalidations: 0 | ||
Miss rate: 100.00% | ||
|
||
=========================================================================== | ||
Trace invariant checks passed |
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
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.