Received: by 10.192.165.148 with SMTP id m20csp1706303imm; Thu, 26 Apr 2018 00:41:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4++a3dA4Xv0lyWcWzuNo1ncrZcF3p9Re4b8Ur3pXx7z5ZWsa9UiMIYHpP64465IesOf6eBe X-Received: by 10.98.233.11 with SMTP id j11mr31123045pfh.205.1524728489741; Thu, 26 Apr 2018 00:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524728489; cv=none; d=google.com; s=arc-20160816; b=Q5E42o+LklE6ywCdo9IyAxFY7mfzjDJsULWcyI4+++tzDyWdR8sONNYBKmE5+tVP5X rRG+RrixHJPoxP9octpO0geQOTnp5BlRUTYh33VfPGycbTF7F50rrAjInQY2iDF9tCHa D/VsRBn1V8QII/T42YjYCrI3grxV79vDdbwxYGJj9Og+kmVVwqkURRDmeWosM/x8lXdK RAmZwoPYF1UAuacKqU0PZz/ha1wscBMOQGkB6SnMYRikMKhX4d9avl8PO00MszVS7qK1 cRUmii1pwcbRuZZsR/2F7XXAcBfbGjJe+yM5ymsIAi1ecxBUlAcZu4cakWQnYP7ugkdc clQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=wWxgnyjuMbLM6DO1bnFVFsktUsiBjzlSYZhbzZEmO0I=; b=ieuGOAp1bkvgNN4qe11n5lGBOuHGuZVQA0d+/BjutwDoyDOTmLdzbniCozlbAeMmAf 8KbxTyw17oksivj9c3Bv1uC7+C2sNZipGqChHpPXF7u0VlOCln3H7tkVCYOsRPfnmIqt 0Ah7cn69y85ZuYMKLCSebdGV+yEIyvhHIRHvooh/w52tEoTPdmtacB7C6D1dHQHmNUTB GUXGA78LM7Bd1DmzX6ihKNGRkseNyCFW6SfUkbfZrw+ldAPIsEz+wksddx1K721BXJvR hLd31dbvtE2i3ISUOKkK8fcQRqWwjKIN1nATkINGLigwB9TbkHuZoqUMeRy9hsk4tiuN NSnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d123si5390761pgc.445.2018.04.26.00.41.15; Thu, 26 Apr 2018 00:41:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753793AbeDZHjy (ORCPT + 99 others); Thu, 26 Apr 2018 03:39:54 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40774 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751508AbeDZHjt (ORCPT ); Thu, 26 Apr 2018 03:39:49 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06DCA40201A2; Thu, 26 Apr 2018 07:39:49 +0000 (UTC) Received: from krava (unknown [10.43.17.29]) by smtp.corp.redhat.com (Postfix) with SMTP id DE53D2166BAD; Thu, 26 Apr 2018 07:39:47 +0000 (UTC) Date: Thu, 26 Apr 2018 09:39:47 +0200 From: Jiri Olsa To: Jakub Kicinski Cc: Jiri Olsa , Alexei Starovoitov , Daniel Borkmann , lkml , netdev@vger.kernel.org, Quentin Monnet Subject: Re: [PATCH 3/3] tools bpftool: Display license GPL compatible in prog show/list Message-ID: <20180426073947.GJ3396@krava> References: <20180425174108.6586-1-jolsa@kernel.org> <20180425174108.6586-4-jolsa@kernel.org> <20180425140346.3e0f3ba7@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180425140346.3e0f3ba7@cakuba.netronome.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 26 Apr 2018 07:39:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 26 Apr 2018 07:39:49 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 02:03:46PM -0700, Jakub Kicinski wrote: > On Wed, 25 Apr 2018 19:41:08 +0200, Jiri Olsa wrote: > > @@ -295,6 +297,7 @@ static void print_prog_plain(struct bpf_prog_info *info, int fd) > > printf("tag "); > > fprint_hex(stdout, info->tag, BPF_TAG_SIZE, ""); > > print_dev_plain(info->ifindex, info->netns_dev, info->netns_ino); > > + printf(" license GPL %scompatible", info->gpl_compatible ? "" : "NON "); > > 3 nit picks: > > Other "fields" are separated by two spaces between each other: > > 4: kprobe name func_begin tag 57cd311f2e27366b license GPL compatible > ^^ ^^ X > loaded_at Apr 25/11:20 uid 0 > ^^ > xlated 16B not jited memlock 4096B > ^^ ^^ > will change > Could you also update the example outputs in the man page: > > tools/bpf/bpftool/Documentation/bpftool-prog.rst oops, I always forget that.. will do thanks, jirka