diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2023-01-27 11:12:37 +0000 |
---|---|---|
committer | Kamil Konieczny <kamil.konieczny@linux.intel.com> | 2023-01-30 17:39:26 +0100 |
commit | 1ee2f61fe7d6d8812f1d54b308f56f673202cfcf (patch) | |
tree | 97cbeac309ca39417e312d747b77b764038c3c4c /man | |
parent | fbe3c6d7c63f8e086f3218e2a926086a164f80dc (diff) |
intel_gpu_top: Automatically enclose JSON output into brackets
Parsers need the whole output enclosed into square brackets so every
period sample becomes an array element.
So far we have been suggesting this in the man page but we can trivially
make the tool output that itself.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Eero Tamminen <eero.t.tamminen@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/intel_gpu_top.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/intel_gpu_top.rst b/man/intel_gpu_top.rst index 1a218c80f..9970ed4c9 100644 --- a/man/intel_gpu_top.rst +++ b/man/intel_gpu_top.rst @@ -79,7 +79,7 @@ pci | ``pci:[vendor=%04x/name][,device=%04x][,card=%d]`` Select using JSON OUTPUT =========== -To parse the JSON as output by the tool the consumer should wrap its entirety into square brackets ([ ]). This will make each sample point a JSON array element and will avoid "Multiple root elements" JSON validation error. +JSON output will be correctly terminated when the tool cleanly exits, otherwise one square bracket needs to be added before parsing. LIMITATIONS =========== |