summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorHechao Li <hechaol@fb.com>2019-12-23 17:17:42 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-12-26 10:35:54 +0100
commit1162f844030ac1ac7321b5e8f6c9badc7a11428f (patch)
treebf84a24566a166a5c26ebc952a28ec0be6c87f4c /drivers/net/ethernet
parent8ab9da573dad95536d8a92f19d7967e8142cd827 (diff)
bpf: Print error message for bpftool cgroup show
Currently, when bpftool cgroup show <path> has an error, no error message is printed. This is confusing because the user may think the result is empty. Before the change: $ bpftool cgroup show /sys/fs/cgroup ID AttachType AttachFlags Name $ echo $? 255 After the change: $ ./bpftool cgroup show /sys/fs/cgroup Error: can't query bpf programs attached to /sys/fs/cgroup: Operation not permitted v2: Rename check_query_cgroup_progs to cgroup_has_attached_progs Signed-off-by: Hechao Li <hechaol@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20191224011742.3714301-1-hechaol@fb.com
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions