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

TracyProfiler: Use rr-safe nopl; rdtsc sequence #7225

Merged
merged 1 commit into from
Aug 20, 2023
Merged

Conversation

Keno
Copy link
Contributor

@Keno Keno commented Aug 19, 2023

Several users have reported masssive slowdowns to rr record/replay in packages that have the tracy client loaded. The issue turns out to be an unlucky false positive in an rr heuristic that determines the patchability of rdtsc. In rr master, it is possible to guarantee patchability by using a specific nopl; rdtsc sequence. Add a patch to tracy to do just that.

See also
rr-debugger/rr#3580
JuliaLang/julia#50975

Several users have reported masssive slowdowns to rr record/replay
in packages that have the tracy client loaded. The issue turns out
to be an unlucky false positive in an rr heuristic that determines
the patchability of `rdtsc`. In rr master, it is possible to guarantee
patchability by using a specific `nopl; rdtsc` sequence. Add a patch
to tracy to do just that.

See also
rr-debugger/rr#3580
JuliaLang/julia#50975
@Keno Keno force-pushed the kf/tracynoplseq branch from ba12dbf to 77c4fc6 Compare August 19, 2023 23:51
@Keno Keno merged commit b9a9274 into master Aug 20, 2023
@Keno Keno deleted the kf/tracynoplseq branch August 20, 2023 01:37
Keno added a commit that referenced this pull request Aug 21, 2023
Like #7225, but for the *other* copy of tracy in yggdrasil (sigh).
Keno added a commit that referenced this pull request Aug 21, 2023
Like #7225, but for the *other* copy of tracy in yggdrasil (sigh).
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