diff options
| author | Quentin Monnet <[email protected]> | 2017-10-23 16:24:12 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-24 00:25:09 +0000 |
| commit | 3aaca6bf7a09150e4c87f2932dc8ebe82a586252 (patch) | |
| tree | 5f58efe61c9d6f20f79d34d75058fce3bd7e6a8f /tools/bpf/bpftool/prog.c | |
| parent | tools: bpftool: add JSON output for `bpftool map *` commands (diff) | |
| download | kernel-3aaca6bf7a09150e4c87f2932dc8ebe82a586252.tar.gz kernel-3aaca6bf7a09150e4c87f2932dc8ebe82a586252.zip | |
tools: bpftool: add JSON output for `bpftool batch file FILE` command
`bpftool batch file FILE` takes FILE as an argument and executes all the
bpftool commands it finds inside (or stops if an error occurs).
To obtain a consistent JSON output, create a root JSON array, then for
each command create a new object containing two fields: one with the
command arguments, the other with the output (which is the JSON object
that the command would have produced, if called on its own).
Signed-off-by: Quentin Monnet <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
