-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Linux] Add initial perf jitdump support #13462
Comments
/cc @janvorli |
Is this going to help with https://github.com/dotnet/coreclr/issues/25965 ? /cc @damageboy |
@adamsitnik I definitely think so! @sdmaclea I noticed you self-asssigned this. |
I am debugging a draft patch to implement the The current patch allows annotating the disassembly of the JITted functions. I will start looking ar the ReadyToRun functions soon. I don't plan to add the JIT_DEBUG_INFO or JIT_CODE_UNWINDING_INFO records yet, so that would be "up for grabs". |
@sdmaclea Very cool! I'd love to test this out if you feel like sharing a branch at some point. I might also look into the JIT_DEBUG_INFO records, I've peeked around CoreCLR code previously around the internal representation, would be interesting to see if I could pull that off :) |
@damageboy Thanks for the offer to help. I uploaded dotnet/coreclr#26897, additional debugging would be helpful. |
@sdmaclea |
Linux uses the perf tools to profile application. The linux 4.10 kernel added support for a
perf
jitdump
format.It has allows better JIT support for perf. Specifically allowing adding:
perf
can show disassembly of JIT functions.I believe this will also allow us to properly support
ready to run
images.The app must
perf inject
of its presence by callingmmap
with the filename.JIT_CODE_LOAD
recordsJIT_DEBUG_INFO
recordsJIT_CODE_UNWINDING_INFO
recordsIt is used like this
/cc @dotnet/dotnet-diag
The text was updated successfully, but these errors were encountered: