From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio Subject: Re: [PATCH iproute2 net-next 0/3] ss: Allow selection of columns to be displayed Date: Fri, 2 Nov 2018 10:58:18 +0100 Message-ID: <20181102105818.4eaed5dc@redhat.com> References: <7ffc00c8-bdf6-5c75-564e-2663494bda5d@gmail.com> <20181030183420.181b3d51@redhat.com> <20181101140623.4d6211a0@cakuba.netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David Ahern , "Yoann P." , Stephen Hemminger , netdev@vger.kernel.org To: Jakub Kicinski Return-path: Received: from mx1.redhat.com ([209.132.183.28]:37116 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbeKBTFA (ORCPT ); Fri, 2 Nov 2018 15:05:00 -0400 In-Reply-To: <20181101140623.4d6211a0@cakuba.netronome.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 1 Nov 2018 14:06:23 -0700 Jakub Kicinski wrote: > JSONification would probably be quite an undertaking for ss :( Probably not too much, and we would skip buffering for JSON as we don't need to print columns, so we don't have to care about buffering and rendering performance too much. All it takes is to extend a bit the out() function and pass the right arguments to it -- it looks way easier than implementing format strings, even though I'd like the latter more. -- Stefano