Go to file
Chengwen Feng 66542840df usertools/telemetry: add JSON pretty print
Currently, the dpdk-telemetry.py show JSON in raw format under
interactive mode, which is not good for human reading.

E.g. The command '/ethdev/xstats,0' will output:
{"/ethdev/xstats": {"rx_good_packets": 0, "tx_good_packets": 0,
"rx_good_bytes": 0, "tx_good_bytes": 0, "rx_missed_errors": 0,
"rx_errors": 0, "tx_errors": 0, "rx_mbuf_allocation_errors": 0,
"rx_q0_packets": 0,...}}

This patch supports JSON pretty print by adding extra indent=2
parameter under interactive mode, so the same command will output:
{
  "/ethdev/xstats": {
    "rx_good_packets": 0,
    "tx_good_packets": 0,
    "rx_good_bytes": 0,
    "tx_good_bytes": 0,
    "rx_missed_errors": 0,
    "rx_errors": 0,
    "rx_mbuf_allocation_errors": 0,
    "rx_q0_packets": 0,
    ...
  }
}

Note: the non-interactive mode is made machine-readable and remains the
original way (it means don't use indent to pretty print).

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ciara Power <ciara.power@intel.com>
Tested-by: Bruce Richardson <bruce.richardson@intel.com>
2022-10-31 16:13:55 +01:00
.ci ci: combine static and shared linking build tests 2022-10-27 13:20:12 +02:00
.github/workflows ci: combine static and shared linking build tests 2022-10-27 13:20:12 +02:00
app test/crypto: support UADK PMD 2022-10-29 13:01:41 +02:00
buildtools buildtools: fix NUMA nodes count 2022-10-11 02:13:52 +02:00
config examples/fips_validation: add asymmetric validation 2022-10-29 13:01:38 +02:00
devtools devtools: guess checkpatch.pl path 2022-10-11 02:18:48 +02:00
doc examples/distributor: update dynamic configuration 2022-10-31 15:54:21 +01:00
drivers net/idpf: support timestamp offload 2022-10-31 14:34:10 +01:00
examples examples/distributor: update dynamic configuration 2022-10-31 15:54:21 +01:00
kernel kni: use dedicated function to set MAC address 2022-06-08 19:17:21 +02:00
lib doc: include bbdev code snippet using literal include 2022-10-29 13:01:41 +02:00
license license: add MIT license exception for GVE driver 2022-10-27 12:36:22 +02:00
usertools usertools/telemetry: add JSON pretty print 2022-10-31 16:13:55 +01:00
.editorconfig devtools: clarify that lines up to 100 characters are ok 2021-11-25 11:51:24 +01:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add eventdev feature matrices 2021-11-26 16:29:25 +01:00
.travis.yml version: 22.11-rc0 2022-07-21 12:13:48 +02:00
ABI_VERSION version: 22.11-rc0 2022-07-21 12:13:48 +02:00
MAINTAINERS net/idpf: support device initialization 2022-10-31 14:29:55 +01:00
Makefile build: create dummy Makefile 2020-09-07 23:51:57 +02:00
meson_options.txt baseband/turbo_sw: remove Flexran SDK build option 2022-10-29 13:01:37 +02:00
meson.build build: export include directories list 2022-10-28 14:27:48 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 22.11-rc1 2022-10-11 02:39:28 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org