We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ bpftool cgroup list /sys/fs/cgroup/init.scope/ (list of progs or empty list
$ bpftool cgroup list /sys/fs/cgroup/init.scope/ Error: can't query bpf programs attached to /sys/fs/cgroup/init.scope/: No such device or address
kernel 6.9.3-1-default, openSUSE Tumbleweed bpftool-7.4.0-2.2.x86_64
It looks like bpftool probes for various programs and cannot recover from ENXIO:
strace bpftool cgroup list /sys/fs/cgroup/init.scope/ execve("/sbin/bpftool", ["bpftool", "cgroup", "list", "/sys/fs/cgroup/init.scope/"], 0x7ffc2d9602e8 /* 56 vars */) = 0 ... bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_TCX_EGRESS, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}, ...}, 64) = 0 bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_TRACE_UPROBE_MULTI, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}}, 64) = -1 EINVAL (Invalid argument) bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_CGROUP_UNIX_CONNECT, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}}, 64) = 0 bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_CGROUP_UNIX_SENDMSG, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}}, 64) = 0 bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_CGROUP_UNIX_RECVMSG, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}}, 64) = 0 bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_CGROUP_UNIX_GETPEERNAME, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}}, 64) = 0 bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_CGROUP_UNIX_GETSOCKNAME, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}}, 64) = 0 bpf(BPF_PROG_QUERY, {query={target_fd=3, attach_type=BPF_NETKIT_PRIMARY, query_flags=0, attach_flags=0, prog_ids=NULL, prog_cnt=0}}, 64) = -1 ENXIO (No such device or address) write(2, "Error: ", 7Error: ) = 7 write(2, "can't query bpf programs attache"..., 90can't query bpf programs attached to /sys/fs/cgroup/init.scope/: No such device or address) = 90
The text was updated successfully, but these errors were encountered:
Thanks for the report!
This should be fixed with https://patchwork.kernel.org/project/netdevbpf/patch/20240607111704.6716-1-tadakentaso@gmail.com/, not merged yet
Sorry, something went wrong.
Alexei just merged it, it will land in this repo at the next sync.
bpftool cgroup tree
Successfully merging a pull request may close this issue.
Expected beheavior
Actual behavior
Info
kernel 6.9.3-1-default, openSUSE Tumbleweed
bpftool-7.4.0-2.2.x86_64
It looks like bpftool probes for various programs and cannot recover from ENXIO:
The text was updated successfully, but these errors were encountered: