Skip to content

PT_REGS_IP Determinism #95

Closed
Closed
@holmanb

Description

@holmanb

From your README:

ksym

KSym decoder takes kernel address and converts that to the function name.

Note that sometimes you can observe PT_REGS_IP being off by one. You can subtract 1 in your code to make it point to the right instruction that can be found /proc/kallsyms.

This documents behavior that I believe is a bug.

I recognize that this is not behavior defined in ebpf_exporter, but is there a way to deterministically know whether this off-by-one behavior will occur?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions