diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2017-10-23 19:24:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-24 03:25:09 +0300 |
commit | 0641c3c890d480abeb237b92a5ee4b99a22319c6 (patch) | |
tree | fa110252dc155ff8a5f29fbd2d00d641aeef45ae /tools/bpf/bpftool/main.c | |
parent | 47ff7ac6d706c6f08153294c87287aeec183b211 (diff) | |
download | linux-0641c3c890d480abeb237b92a5ee4b99a22319c6.tar.xz |
tools: bpftool: update documentation for --json and --pretty usage
Update the documentation to provide help about JSON output generation,
and add an example in bpftool-prog manual page.
Also reintroduce an example that was left aside when the tool was moved
from GitHub to the kernel sources, in order to show how to mount the
bpffs file system (to pin programs) inside the bpftool-prog manual page.
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/bpf/bpftool/main.c')
-rw-r--r-- | tools/bpf/bpftool/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/main.c b/tools/bpf/bpftool/main.c index 55ba0a04c102..78d9afb74ef4 100644 --- a/tools/bpf/bpftool/main.c +++ b/tools/bpf/bpftool/main.c @@ -70,11 +70,13 @@ static int do_help(int argc, char **argv) } fprintf(stderr, - "Usage: %s OBJECT { COMMAND | help }\n" + "Usage: %s [OPTIONS] OBJECT { COMMAND | help }\n" " %s batch file FILE\n" " %s version\n" "\n" - " OBJECT := { prog | map }\n", + " OBJECT := { prog | map }\n" + " " HELP_SPEC_OPTIONS "\n" + "", bin_name, bin_name, bin_name); return 0; |