Return-Path: References: <20210331091241.2566311-1-tvrtko.ursulin@linux.intel.com> From: Tvrtko Ursulin Message-ID: Date: Thu, 1 Apr 2021 15:58:09 +0100 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [igt-dev] [PATCH i-g-t] intel_gpu_top: Document how to use JSON output List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Matthew Auld Cc: igt-dev@lists.freedesktop.org, Intel Graphics Development , Tvrtko Ursulin List-ID: On 01/04/2021 15:49, Matthew Auld wrote: > On Wed, 31 Mar 2021 at 10:12, Tvrtko Ursulin > wrote: >> >> From: Tvrtko Ursulin >> >> Put a note on how to use JSON output into the man page. >> >> Signed-off-by: Tvrtko Ursulin >> References: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/100 >> --- >> man/intel_gpu_top.rst | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/man/intel_gpu_top.rst b/man/intel_gpu_top.rst >> index f6d74852558b..94fdc6520fd3 100644 >> --- a/man/intel_gpu_top.rst >> +++ b/man/intel_gpu_top.rst >> @@ -81,6 +81,11 @@ Filter types: :: >> pci pci:[vendor=%04x/name][,device=%04x][,card=%d] >> vendor is hex number or vendor name >> >> +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 an JSON array element and will avoid "Multiple root elements" JSON validation error. >> + > > a JSON array element > > It could be argued that this should go into LIMITATIONS? Hm yes, 50-50 or you lean more towards limitations? Otherwise inertia says it can also stay as is. Regards, Tvrtko > Acked-by: Matthew Auld > >> LIMITATIONS >> =========== >> >> -- >> 2.27.0 >> >> _______________________________________________ >> igt-dev mailing list >> igt-dev@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/igt-dev _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev