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#1729 offline traces: fix initial tid entry errors #2461

Merged
merged 4 commits into from
Jun 2, 2017

Conversation

derekbruening
Copy link
Contributor

Fixes two issues with offline traces (#1729): first, changes the reader to
not assume a separate tid header right after the initial tid,pid header, as
offline traces (as opposed to online) do not contain it. Second, changes
raw2trace to not emit a superfluous tid entry of 0 just prior to the real
initial tid entry for each thread.

Adds asserts to catch related errors in the future in the test suite.

Fixes two issues with offline traces (#1729): first, changes the reader to
not assume a separate tid header right after the initial tid,pid header, as
offline traces (as opposed to online) do not contain it.  Second, changes
raw2trace to not emit a superfluous tid entry of 0 just prior to the real
initial tid entry for each thread.

Adds asserts to catch related errors in the future in the test suite.
The extra checks fail on the multiproc test so we fix that here for online
by adding a fork event handler that sends a new header to the simulator.
We partially solve #2384 by creating a new offline dir and files but more
work is needed to merge the final traces in the added test here: that's
left for #2384.
@derekbruening derekbruening merged commit e5dee0d into master Jun 2, 2017
@derekbruening derekbruening deleted the i1729-initial-tid branch June 2, 2017 03:28
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.

1 participant