Skip to content

Identification of JIT generated functions by their address #105712

Description

@yegor-pelykh

I use the Profiler API to get a mixed mode call stack.
The problem is that for some of the native frames of the resulting stack (related to the managed -> unmanaged transition, hidden behind the DllImport) are completely unknown - it is impossible to get symbolic information for them, even just the module to which the return address belongs.

GetFunctionFromIP for the address of this frame returns E_FAIL, which means that the function is unmanaged.

As I understand, this is a JIT generated piece of code.
But how can I know this for sure, to determine this for any other such piece of code from any call stack?
And I'd like to get the module to which this piece of code belongs, as well as some text description (let's say the "name" of the function).

Please, could you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions