pwru icon indicating copy to clipboard operation
pwru copied to clipboard

Use multi-link kprobe attachment

Open brb opened this issue 1 year ago • 3 comments

Once https://github.com/cilium/ebpf/pull/716 has been merged, we can start using the multi-link kprobes. This should significantly reduce the startup time.

brb avatar Sep 06 '22 09:09 brb

I am interested in the multi-link kprobes, so good issue for me to learn, I will give it a try :)

vincentmli avatar Sep 21 '22 18:09 vincentmli

Hi @brb, I have questions, to update pwru to use cilium/ebpf v0.9.2 which has multi-link kprobes merged, is it just update the go.mod and go.sum enough? and how do you get the info like the <time-stamp> and <hash> in go.mod v0.9.2-0.<time-stamp>-<hash>

 github.com/cilium/ebpf v0.9.1-0.20220705115408-426053e5393e

also how do get the go.sum like

github.com/cilium/ebpf v0.9.1-0.20220705115408-426053e5393e h1:zqo4hqEMEsGMi6P6JVi2eQA90LyYMAlRWMfBmIWZ0bc=
github.com/cilium/ebpf v0.9.1-0.20220705115408-426053e5393e/go.mod h1:+OhNOIXx/Fnu1IE8bJz2dzOA+VSfyTfdNUVdlQnxUFY=

vincentmli avatar Sep 22 '22 00:09 vincentmli

@vincentmli Thanks for taking care of this.

is it just update the go.mod and go.sum enough

Please run go get github.com/cilium/[email protected] from the pwru dir - this should update go.{mod,sum} (don't forget to commit both).

brb avatar Sep 22 '22 07:09 brb