-
Notifications
You must be signed in to change notification settings - Fork 706
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
add support for kprobe session #1623
base: main
Are you sure you want to change the base?
Conversation
testdata/sh/update-kernel-deps.sh
Outdated
curl -fL "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/tools/lib/bpf/libbpf.c?h=v$KERNEL_VERSION" -o "$tmp/libbpf.c" | ||
if [ -d $KERNEL_VERSION ]; then | ||
# Copy libbpf/vmlinux/bpf_testmod from local directory | ||
cp $KERNEL_VERSION/libbpf.c $tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these paths correct? ie. libbpf typically sits in tools/lib/bpf/libbpf.c
. Do you copy it there manually?
Same for bpf_testmod.ko, isn't it somewhere in selftests?
Asking because I'd like to use it too, would be nice if this works on a default Linux tree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry I meant to create draft ;-) I'm including this branch in tetragon to enable and use kprobe.session programs
and then I wanted to do the official 6.11 interface update if you wouldn't beat me to it
I'm using the that KERNEL_VERSION change to use my kernel with changed interface for testing
and I usually do not have the kernel tree on the same machine so I just copy those files in the
directory and feed it to update-kernel-deps.sh script
I'm not clear on how you guys add the new ci kernel though.. but I can find out ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using the that KERNEL_VERSION change to use my kernel with changed interface for testing and I usually do not have the kernel tree on the same machine so I just copy those files in the directory and feed it to update-kernel-deps.sh script
I see. In that case, would you be willing to adjust your workflow to mount the tree locally, e.g. using sshfs and running the script against the mount? I think most folks would iterate using virtme locally, so this could still be useful for them.
I'm not clear on how you guys add the new ci kernel though.. but I can find out ;-)
Images are built and published by https://github.com/cilium/ci-kernels. rc's are pulled from Linus' tree, mainline is pulled from kernel.org (see https://github.com/cilium/ci-kernels/blob/main/download.sh). No bpf-next currently, maybe we can consider this at some point. (so you'll have to wait for an rc at least 😄)
2a2f948
to
d02c6b1
Compare
Signed-off-by: Jiri Olsa <[email protected]>
Adding support to attach kprobe multi link as session by adding Session bool to KprobeMultiOptions. When set true it attaches the link with BPF_TRACE_KPROBE_SESSION attach_type. Signed-off-by: Jiri Olsa <[email protected]>
kprobe session support plus 6.11 kernel update