aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorKenta Tada <[email protected]>2024-06-07 20:17:04 +0900
committerAlexei Starovoitov <[email protected]>2024-06-11 11:39:09 -0700
commit98b303c9bf05dae932efbd71e18d81f6c64f20d8 (patch)
treee5214d06ca6fc657db34bbc70c0675aa6660dbab /tools/perf/scripts/python/mem-phys-addr.py
parentbb678f01804ccaa861b012b2b9426d69673d8a84 (diff)
bpftool: Query only cgroup-related attach types
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 <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions