Skip to content

[Mono JIT] Extend Linux perf jitdump functionality #36774

Closed

Description

@fanyang-mono

mono/mono#17024 A similar improvement as coreclr is needed. The following is copied from #13540

Added basic support for generating the Linux perf jitdump format. The initial implementation did not include support for adding:

  • Debug info - JIT_CODE_DEBUG_INFO. Provide assembly the line number info to improve annotation.

  • Unwinding info - JIT_CODE_UNWINDING_INFO. Adds dwarf unwind info. This allows/improves recording with the --callgraph dwarf option.

Consider adding these records to improve value of perf jitdump support.

Implementation Notes:

JIT_CODE_DEBUG_INFO & JIT_CODE_UNWINDING_INFO each apply to the next JIT_CODE_LOAD record. This means to properly support multithreading, the information needs to be provide when generating the JIT_CODE_LOAD record

The FEATURE_GDBJIT probably already needs similar info to construct the elf files it passes to gdb. src/vm/gdbjit.cpp may be instructive.

Activity

  1. added
    enhancement
    on May 20, 2020
  2. self-assigned this
    on May 20, 2020
  3. added
    untriaged
    on May 20, 2020
  4. added this to the 6.0.0 milestone on Jun 22, 2020
  5. removed
    untriaged
    on Jun 22, 2020
  6. modified the milestones: 6.0.0, 7.0.0 on Jun 10, 2021
  7. SamMonoRT commented on Jun 10, 2021

    @SamMonoRT
    Member

    Low priority - Moving to 7.0.0

  8. SamMonoRT commented on May 9, 2022

    @SamMonoRT
    Member

    We'll not get to fixing this. Closing this issue for now.

  9. ghost locked as resolved and limited conversation to collaborators on Jun 9, 2022
  10. fanyang-mono commented on Jun 12, 2023

    @fanyang-mono
    MemberAuthor

    JIT_CODE_DEBUG_INFO was added by #85107. But JIT_CODE_UNWINDING_INFO hasn't been added yet.

  11. unlocked this conversation on Nov 24, 2023
  12. modified the milestones: 7.0.0, 9.0.0 on Dec 6, 2023
  13. steveisok commented on Jun 28, 2024

    @steveisok
    Member

    It's highly unlikely we will be able to get to this. Closing.

  14. locked and limited conversation to collaborators on Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Codegen-JIT-monoenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions