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

UprobeOptions.Offset has renamed to UprobeOptions.Address #12

Open
asdfsx opened this issue May 24, 2024 · 0 comments
Open

UprobeOptions.Offset has renamed to UprobeOptions.Address #12

asdfsx opened this issue May 24, 2024 · 0 comments

Comments

@asdfsx
Copy link

asdfsx commented May 24, 2024

I cannot start the example, after I upgrade the cilium/ebpf to the latest version. I got the following error

2024/05/24 14:51:23 open usdt: create uprobe (ref_ctr_offset): symbol usdt_python_function__entry: not found

After lots of research I found the UprobeOptions.Offset has renamed to UprobeOptions.Address.

cilium/ebpf@5713a12

I think the following code should update

usdt/usdt.go

Lines 65 to 70 in 99369c8

opts := &link.UprobeOptions{
PID: pid,
Offset: note.locationOffset,
// Kernel 4.20+.
RefCtrOffset: note.semaphoreOffsetKernel,
}

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

No branches or pull requests

1 participant