Received: by 10.192.165.148 with SMTP id m20csp1186050imm; Wed, 25 Apr 2018 14:05:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/7aGWsuTfquz3iL3IHzqC8850ysmzvNBIu3w+ECIg0JsFASSY+bipL9KVGjPjvw+N2jDV/ X-Received: by 10.167.128.141 with SMTP id v13mr29107345pff.147.1524690356406; Wed, 25 Apr 2018 14:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524690356; cv=none; d=google.com; s=arc-20160816; b=LCLp+YzIAZt1TuiNVKf+Sp4JVn4Y7HSsHTT2MyBdnmkWa08ztmJQFKT0LMViMp1cyy 1iYdfosQHW01NaO+iab3RAKWHuO2Xr6coBn6KwWcvw4c0Meuk61/89SQBKnqtPyF0y4y f5Fk5fsgyB6NPC3Z/VrgZVDe6ojk52QoKFm5PprTBoe0R9xqI6/YhlB9v+emjnFID9nO aTOE47qSwBM65HDLmCD1A82ruTiLWQapztgih8EqacSc4PBBbk0I0fL9wCYf95DSoTIZ tOBTuZR3/qg7AJM6244cIsZhs3YQoNQ3PbWO0cJ0IZRPa10Q/Jjl55kFDerZOl1jY2c/ hjzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=EGyyPumyZlY9e/vanDNE4MSMjgLVds33gkHV+lctw7U=; b=y+TNfVUYhH06/RKFCWMlSRMMy00AI96uq6hxg4EiXRFP9EiPem9+/guGCWnMfc3Ewh kkkqFIX3HAXdpcpzuTnysKINYuVcKcLWNbJDJVq2YZxqHW1oDRHrh/i8PucxG2/qavU5 PIa6CdKdUFNtaPjTLxyn7b/oHV+nsHKjQGKY8PlqKJFksoD1t8GzsGX06PjhE8vJZ1xt XvZjouug4jXS0vSM1o6FgIfwWTZaXzPqCltamFsx/dL9HYm3lRu5RVMhoSaL0dZDFtPN FUlbtyANrDdlpRqfFBd/J2v0899QTXxZ37w5P/LjYB2MTmxJtYHiFe1U7Se6qJ3BXKKX Ybqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=idgSRaki; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si15604373pfm.18.2018.04.25.14.05.41; Wed, 25 Apr 2018 14:05:56 -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; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=idgSRaki; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752313AbeDYVEA (ORCPT + 99 others); Wed, 25 Apr 2018 17:04:00 -0400 Received: from mx3.wp.pl ([212.77.101.9]:48209 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbeDYVDz (ORCPT ); Wed, 25 Apr 2018 17:03:55 -0400 Received: (wp-smtpd smtp.wp.pl 9195 invoked from network); 25 Apr 2018 23:03:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1524690232; bh=EGyyPumyZlY9e/vanDNE4MSMjgLVds33gkHV+lctw7U=; h=From:To:Cc:Subject; b=idgSRaki9r24R7HfNF+A1VhfPOHnW2+ysiSyfSGNd8XpOcpRP4FC2khG6liEqDNtE AWiW2j13oB+ohsZZp74dxvLKYvaoqWoh54/PVMdrcR9FTuKWP74FQerFF5YQbjun9n j2uJWXpGz/DCzgCHavn2VryxEVfQzXx90KtTIuP0= Received: from unknown (HELO cakuba.netronome.com) (kubakici@wp.pl@[75.53.12.129]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 25 Apr 2018 23:03:52 +0200 Date: Wed, 25 Apr 2018 14:03:46 -0700 From: Jakub Kicinski To: Jiri Olsa Cc: 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: <20180425140346.3e0f3ba7@cakuba.netronome.com> In-Reply-To: <20180425174108.6586-4-jolsa@kernel.org> References: <20180425174108.6586-1-jolsa@kernel.org> <20180425174108.6586-4-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: 4fb8c18aa229017f40615e12af7c9dc1 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 000000A [QYME] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ^^ ^^ Could you also update the example outputs in the man page: tools/bpf/bpftool/Documentation/bpftool-prog.rst Sorry about the bike shedding but I would also vote for: "[not] GPL compatible" rather than "license GPL [NON] compatible" for brevity..