Skip to content
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

link/uprobe: support ref_ctr_offset #463

Merged
merged 2 commits into from
Nov 2, 2021
Merged

Conversation

mmat11
Copy link
Collaborator

@mmat11 mmat11 commented Oct 26, 2021

This option should simplify implementing USDT probes on top of link.Uprobe

link/uprobe_test.go Outdated Show resolved Hide resolved
link/kprobe.go Outdated Show resolved Hide resolved
link/uprobe.go Show resolved Hide resolved
link/uprobe.go Outdated Show resolved Hide resolved
@mmat11 mmat11 force-pushed the matt/ref-ctr-offset branch 3 times, most recently from a0ec51a to e5a36a2 Compare October 27, 2021 16:50
link/uprobe.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@ti-mo ti-mo left a comment

Choose a reason for hiding this comment

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

Clean! Missing commit messages, though, please include those too. 😉

link/uprobe.go Show resolved Hide resolved
link/uprobe.go Outdated Show resolved Hide resolved
This commit adds a new Uprobe option: RefCtrOffset.
This option will let the kernel manage automatically SDT notes reference
counts (semaphores). Both the tracefs API and the perf API supports it,
but it is available starting from kernel version 4.20+.

Signed-off-by: Mattia Meleleo <melmat@tuta.io>
This commit refactors [k,u]probe arguments into a struct improving the
readability of function signatures.

Signed-off-by: Mattia Meleleo <melmat@tuta.io>
@ti-mo ti-mo merged commit e4205a7 into cilium:master Nov 2, 2021
@mmat11 mmat11 deleted the matt/ref-ctr-offset branch November 1, 2022 15:51
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.

None yet

3 participants