Skip to content

pkg/proc: fix ebpf uprobe placement to skip function prologue - #4249

Merged
aarzilli merged 1 commit into
go-delve:masterfrom
derekparker:wip/fix-uprobe-address
Jan 29, 2026
Merged

aarzilli merged 1 commit into
go-delve:masterfrom
derekparker:wip/fix-uprobe-address

Conversation

@derekparker

Copy link
Copy Markdown
Member

Use FirstPCAfterPrologue instead of fn.Entry when setting entry uprobes to avoid duplicate events when the runtime grows the stack.

No test is included because this actually fixes an intermittent failure in the existing tests.

Use FirstPCAfterPrologue instead of fn.Entry when setting entry
uprobes to avoid duplicate events when the runtime grows the stack.

@aarzilli aarzilli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aarzilli
aarzilli merged commit 4deebaf into go-delve:master Jan 29, 2026
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