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#5538 memtrace seek, part 9: Add accurate record count #5737

Merged
merged 4 commits into from
Nov 16, 2022

Conversation

derekbruening
Copy link
Contributor

Adds a reader subclass to raw2trace for computing the memref_t record count for each chunk. A new marker is inserted in the chunk header which the zipfile skip code uses to obtain the correct ref count when skipping over chunks.

Adds a count suppression feature where the view tool prints 0 for the record count for the synthetic timestamp+cpu added after a seek.

Updates the seek test with a new trace and new expected output.

Issue: #5538

Adds a reader subclass to raw2trace for computing the memref_t record
count for each chunk.  A new marker is inserted in the chunk header
which the zipfile skip code uses to obtain the correct ref count when
skipping over chunks.

Adds a count suppression feature where the view tool prints 0 for the
record count for the synthetic timestamp+cpu added after a seek.

Updates the seek test with a new trace and new expected output.

Issue: #5538
@derekbruening
Copy link
Contributor Author

I keep hitting discrepancies between clang-format and clang-format-diff. Both are 14 so I don't think it's a version issue. We've seen this many times in the past as well. Not sure there is a good solution -- other than changing our clang-format check to run on the full file somehow.

clients/drcachesim/reader/zipfile_file_reader.cpp Outdated Show resolved Hide resolved
clients/drcachesim/reader/reader.cpp Show resolved Hide resolved
clients/drcachesim/common/trace_entry.h Show resolved Hide resolved
clients/drcachesim/tracer/raw2trace.h Outdated Show resolved Hide resolved
clients/drcachesim/tracer/raw2trace.h Show resolved Hide resolved
clients/drcachesim/tracer/raw2trace.h Show resolved Hide resolved
clients/drcachesim/reader/zipfile_file_reader.cpp Outdated Show resolved Hide resolved
…to look at trace_entry_t, which overall is simpler; update test trace for this
@derekbruening derekbruening merged commit 619c963 into master Nov 16, 2022
@derekbruening derekbruening deleted the i5538-record-count branch November 16, 2022 01:32
derekbruening added a commit that referenced this pull request Nov 17, 2022
Adds a reader subclass to raw2trace for computing the memref_t record
count for each chunk.  A new marker is inserted in the chunk header
which the zipfile skip code uses to obtain the correct ref count when
skipping over chunks.

Adds a count suppression feature where the view tool prints 0 for the
record count for the synthetic timestamp+cpu added after a seek.

Updates the seek test with a new trace and new expected output.

Issue: #5538
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