aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-02 17:48:36 -0500
committerDaniel Borkmann <daniel@iogearbox.net>2018-01-04 06:28:46 -0500
commit6ebe6dbd6886af07b102aca42e44edbee94a22d9 (patch)
treee4e10cfad444b366c3f06729f3ad44233babb89b /tools/bpf/bpftool/prog.c
parent65b875bcc816335be41c336a595adbc10bd885cb (diff)
tools: bpftool: alias show and list commands
iproute2 seems to accept show and list as aliases. Let's do the same thing, and by allowing both bring cgroup syntax back in line with maps and progs. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
-rw-r--r--tools/bpf/bpftool/prog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c
index 98f871ed53d6..5577960bffe4 100644
--- a/tools/bpf/bpftool/prog.c
+++ b/tools/bpf/bpftool/prog.c
@@ -836,7 +836,7 @@ static int do_help(int argc, char **argv)
836 } 836 }
837 837
838 fprintf(stderr, 838 fprintf(stderr,
839 "Usage: %s %s show [PROG]\n" 839 "Usage: %s %s { show | list } [PROG]\n"
840 " %s %s dump xlated PROG [{ file FILE | opcodes }]\n" 840 " %s %s dump xlated PROG [{ file FILE | opcodes }]\n"
841 " %s %s dump jited PROG [{ file FILE | opcodes }]\n" 841 " %s %s dump jited PROG [{ file FILE | opcodes }]\n"
842 " %s %s pin PROG FILE\n" 842 " %s %s pin PROG FILE\n"
@@ -854,6 +854,7 @@ static int do_help(int argc, char **argv)
854 854
855static const struct cmd cmds[] = { 855static const struct cmd cmds[] = {
856 { "show", do_show }, 856 { "show", do_show },
857 { "list", do_show },
857 { "help", do_help }, 858 { "help", do_help },
858 { "dump", do_dump }, 859 { "dump", do_dump },
859 { "pin", do_pin }, 860 { "pin", do_pin },