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

perf: fix a number of corner-cases for small traces #168

Merged
merged 5 commits into from
May 7, 2020
Merged

Conversation

jonhoo
Copy link
Owner

@jonhoo jonhoo commented Mar 29, 2020

This patch set includes three somewhat orthogonal fixes:

That last patch is a bit tricky, because upstream flamegraph does not do this, and so we now fail all of their perf collapse tests. I'll file an issue there and we can merge when that gets fixed upstream.

@jonhoo
Copy link
Owner Author

jonhoo commented Mar 29, 2020

Upstream issue: brendangregg/FlameGraph#230

jasonrhansen
jasonrhansen previously approved these changes Mar 31, 2020
@jonhoo
Copy link
Owner Author

jonhoo commented Apr 1, 2020

Upstream fix in brendangregg/FlameGraph#231

jonhoo added 4 commits May 7, 2020 15:44
It turns out that sometimes, `perf script` spits out event lines that
_also_ include stack information, like so:

    false 64414 20110.539243:       1893 cycles:u:      7fd5bd78f145 _dl_start+0x3c5 (/usr/lib/ld-2.31.so)

Which we would not handle correctly. This patch adds support for those
types of lines. I am not aware of anyone having run into this, but it
can happen if you do something like `perf record /bin/false`.
This fixes #167, but only the symptom, not the cause. The root cause of
issue #167 is that we do not process the very last sample before EOF
(patch coming soon), which means that a single-event trace is treated as
empty!
It turns out that upstream flamegraph does not do this, so we are now
failing a lot of the upstream tests, which isn't great. I'll file an
issue there, and we can wait to merge until that lands.
@jonhoo jonhoo merged commit f073806 into master May 7, 2020
@jonhoo jonhoo deleted the discrepancies branch May 7, 2020 20:29
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