-
Notifications
You must be signed in to change notification settings - Fork 101
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
bpftool: Query only cgroup-related attach types #7160
Conversation
Upstream branch: f85af9d |
Upstream branch: f85af9d |
b85c205
to
3cbcd8d
Compare
2c69871
to
efc6995
Compare
Upstream branch: 2ebb87f |
3cbcd8d
to
20bd6c6
Compare
efc6995
to
2d4d540
Compare
Upstream branch: bb678f0 |
When CONFIG_NETKIT=y, bpftool-cgroup shows error even if the cgroup's path is correct: $ bpftool cgroup tree /sys/fs/cgroup CgroupPath ID AttachType AttachFlags Name Error: can't query bpf programs attached to /sys/fs/cgroup: No such device or address >From strace and kernel tracing, I found netkit returned ENXIO and this command failed. I think this AttachType(BPF_NETKIT_PRIMARY) is not relevant to cgroup. bpftool-cgroup should query just only cgroup-related attach types. v2->v3: - removed an unnecessary check v1->v2: - used an array of cgroup attach types Signed-off-by: Kenta Tada <tadakentaso@gmail.com> Reviewed-by: Quentin Monnet <qmo@kernel.org>
20bd6c6
to
7095a8b
Compare
2d4d540
to
6a90984
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=859906 irrelevant now. Closing PR. |
Pull request for series with
subject: bpftool: Query only cgroup-related attach types
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=859879