Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Update to new version of datadog-agent/pkg/ebpf #5

Closed
drewrip opened this issue Jun 4, 2020 · 2 comments
Closed

Update to new version of datadog-agent/pkg/ebpf #5

drewrip opened this issue Jun 4, 2020 · 2 comments

Comments

@drewrip
Copy link
Contributor

drewrip commented Jun 4, 2020

kube-netc has been using a fork of datadog/datadog-agent's ebpf library because of some mismatched functions that hadn't been committed upstream to iovisor/gobpf. Their ebpf library does work with their fork datadog/gobpf. Some changes are now needed to fix a bug with ebpf:

2020/06/04 21:27:27 [2020-06-04 21:27:27.10331117 +0000 UTC m=+0.023524112] error: could not enable kprobe(kprobe/tcp_get_info) used for offset guessing: cannot write "p:ptcp_get_info tcp_get_info\n" to kprobe_events: write /sys/kernel/debug/tracing/kprobe_events: file exists

This issue is referenced. I need to bring my fork up to date to fix these changes until their gobpf fork is merged upstream.

@drewrip
Copy link
Contributor Author

drewrip commented Jun 5, 2020

Rather than using a replace to point iovisor/gobpf => DataDog/gobpf, it looks like datadog-agent is going to need to be forked again due to golang/go#26904, a pretty fundamental problem with Go dependency management that disallows aliasing with a fork.

@drewrip
Copy link
Contributor Author

drewrip commented Jun 6, 2020

With some replaces in our go.mod file we now use DataDog/datadog-agent rather than my fork that removed the uncommited code.

#6
8e48eb9

@drewrip drewrip closed this as completed Jun 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant