All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 00/12] tools: bpftool: Add JSON output to bpftool
@ 2017-10-23 16:24 Jakub Kicinski
  2017-10-23 16:24 ` [PATCH net-next 01/12] tools: bpftool: copy JSON writer from iproute2 repository Jakub Kicinski
                   ` (13 more replies)
  0 siblings, 14 replies; 30+ messages in thread
From: Jakub Kicinski @ 2017-10-23 16:24 UTC (permalink / raw)
  To: netdev; +Cc: oss-drivers, alexei.starovoitov, daniel, Jakub Kicinski

Quentin says:

This series introduces support for JSON output to all bpftool commands. It
adds option parsing, and several options are created:

  * -j, --json     Switch to JSON output.
  * -p, --pretty   Switch to JSON and print it in a human-friendly fashion.
  * -h, --help     Print generic help message.
  * -V, --version  Print version number.

This code uses a "json_writer", which is a copy of the one written by
Stephen Hemminger in iproute2.
---
I don't know if there is an easy way to share the code for json_write
without copying the file, so I am very open to suggestions on this matter.


Quentin Monnet (12):
  tools: bpftool: copy JSON writer from iproute2 repository
  tools: bpftool: add option parsing to bpftool, --help and --version
  tools: bpftool: introduce --json and --pretty options
  tools: bpftool: add JSON output for `bpftool prog show *` command
  tools: bpftool: add JSON output for `bpftool prog dump jited *`
    command
  tools: bpftool: add JSON output for `bpftool prog dump xlated *`
    command
  tools: bpftool: add JSON output for `bpftool map *` commands
  tools: bpftool: add JSON output for `bpftool batch file FILE` command
  tools: bpftool: turn err() and info() macros into functions
  tools: bpftool: provide JSON output for all possible commands
  tools: bpftool: add cosmetic changes for the manual pages
  tools: bpftool: update documentation for --json and --pretty usage

 tools/bpf/bpftool/Documentation/bpftool-map.rst  |  44 ++-
 tools/bpf/bpftool/Documentation/bpftool-prog.rst |  81 +++++-
 tools/bpf/bpftool/Documentation/bpftool.rst      |  30 +-
 tools/bpf/bpftool/common.c                       |  36 ++-
 tools/bpf/bpftool/jit_disasm.c                   |  86 +++++-
 tools/bpf/bpftool/json_writer.c                  | 356 +++++++++++++++++++++++
 tools/bpf/bpftool/json_writer.h                  |  72 +++++
 tools/bpf/bpftool/main.c                         | 121 +++++++-
 tools/bpf/bpftool/main.h                         |  43 ++-
 tools/bpf/bpftool/map.c                          | 253 ++++++++++++----
 tools/bpf/bpftool/prog.c                         | 271 +++++++++++++----
 11 files changed, 1209 insertions(+), 184 deletions(-)
 create mode 100644 tools/bpf/bpftool/json_writer.c
 create mode 100644 tools/bpf/bpftool/json_writer.h

-- 
2.14.1

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2017-11-03 21:26 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-23 16:24 [PATCH net-next 00/12] tools: bpftool: Add JSON output to bpftool Jakub Kicinski
2017-10-23 16:24 ` [PATCH net-next 01/12] tools: bpftool: copy JSON writer from iproute2 repository Jakub Kicinski
2017-10-23 20:29   ` Daniel Borkmann
2017-10-24  8:23   ` Stephen Hemminger
2017-10-23 16:24 ` [PATCH net-next 02/12] tools: bpftool: add option parsing to bpftool, --help and --version Jakub Kicinski
2017-10-23 20:30   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 03/12] tools: bpftool: introduce --json and --pretty options Jakub Kicinski
2017-10-23 20:30   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 04/12] tools: bpftool: add JSON output for `bpftool prog show *` command Jakub Kicinski
2017-10-23 20:30   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 05/12] tools: bpftool: add JSON output for `bpftool prog dump jited " Jakub Kicinski
2017-10-23 20:31   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 06/12] tools: bpftool: add JSON output for `bpftool prog dump xlated " Jakub Kicinski
2017-10-23 20:32   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 07/12] tools: bpftool: add JSON output for `bpftool map *` commands Jakub Kicinski
2017-10-23 20:32   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 08/12] tools: bpftool: add JSON output for `bpftool batch file FILE` command Jakub Kicinski
2017-10-23 20:32   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 09/12] tools: bpftool: turn err() and info() macros into functions Jakub Kicinski
2017-10-23 20:33   ` Daniel Borkmann
2017-11-03  0:59   ` Joe Perches
2017-11-03 21:26     ` Quentin Monnet
2017-10-23 16:24 ` [PATCH net-next 10/12] tools: bpftool: provide JSON output for all possible commands Jakub Kicinski
2017-10-23 20:33   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 11/12] tools: bpftool: add cosmetic changes for the manual pages Jakub Kicinski
2017-10-23 20:33   ` Daniel Borkmann
2017-10-23 16:24 ` [PATCH net-next 12/12] tools: bpftool: update documentation for --json and --pretty usage Jakub Kicinski
2017-10-23 20:34   ` Daniel Borkmann
2017-10-23 17:44 ` [PATCH net-next 00/12] tools: bpftool: Add JSON output to bpftool Alexei Starovoitov
2017-10-24  0:25 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.