Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4798101ybv; Wed, 26 Feb 2020 03:18:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzI49QtRs9HAutbDmg9IJBTaoQz9iSm9B/BxA4ai40L2mQnLryTcqpvDlDUqNx+Bu8kw6Wi X-Received: by 2002:a9d:4c06:: with SMTP id l6mr2652739otf.161.1582715881728; Wed, 26 Feb 2020 03:18:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582715881; cv=none; d=google.com; s=arc-20160816; b=ES70zwrdqTaxAVXVgStNDkIJJQ4VrdkX1lDg0orp3JxpE1nhGoQ3aAgOXwRjUuEZ5b m1i4zceotHEQom9dFRzOGORU3Ko7HDCz2kWHYtPF7iGVkI6VDv8zV7XVm06YW5UdhKw1 6uRitOSjGGLNP2s9Eg+gysjGO5D7wBKTM5Jet81T56mjmewHq07Zelzq26a7xKKq8/an ouCIdFRQKRpKRqJpOMJJmVENmGqHTm3mkQfw/YklO6aNpBEvF5y9S7G3RzmEYV4C5sH4 UESxxV3LNoEVBeAkxZ9y6oTre3Wet2QGaJ6bVRz/c/tu4ewX27CkLomyROI4hJtTMdSQ 1RsQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+aewCnTNGy8KuaeqGtx90I+oSQVy+5V29tI+27/JzTo=; b=U5RprIxt4S5C2JMtdOR3pEhP3qMuaRGkAopgDDJZf7S0b6g0yCQUspiifLJQ7Mq202 F2bth0gO28HRpiErOm1FAaM8ueYW+XU4TANp1QdklkuNQb7dWKkUBSlI/YGyEtuH0Dn5 BpjoTZO026FbwWiJmTQnZoLA8FLkWyZLur7Q18/ryV4OBVpgmnc2+NPI29vFKwB5FOEr BqmM0LaXnPie70ffZwV0zSxdC/R7RU8AU0ei4SPLH3Wqzxazhu2/O7p+3RAisTfV75qS y2x3wOa4awXL81PXkHIiYtDDkmpLAF7XsofoCP+6pQFxX2ilzbMwt5NIc9aweB5sTGvh yAWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent-com.20150623.gappssmtp.com header.s=20150623 header.b=D5KgMuEP; 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 t11si1069213otm.47.2020.02.26.03.17.49; Wed, 26 Feb 2020 03:18:01 -0800 (PST) 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 header.i=@isovalent-com.20150623.gappssmtp.com header.s=20150623 header.b=D5KgMuEP; 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 S1728259AbgBZLRZ (ORCPT + 99 others); Wed, 26 Feb 2020 06:17:25 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34076 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728164AbgBZLRZ (ORCPT ); Wed, 26 Feb 2020 06:17:25 -0500 Received: by mail-wm1-f65.google.com with SMTP id i10so3216177wmd.1 for ; Wed, 26 Feb 2020 03:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+aewCnTNGy8KuaeqGtx90I+oSQVy+5V29tI+27/JzTo=; b=D5KgMuEPCN514AD3a5eUqIdkkIe9aHOLwMX6eisi+8vWMQ0Q9l1ABDAfIarIU4NYB6 eXITWDgzdZfGC3ZR0IQEPGVoxAnxUz1vT/7GOL15j+LoJ35Q2LEN71Ur1L7YFU27N7j6 EJPAYGERRcDA5KwHBW6XyhINrXF065mGb1Cr/AQ5TyqasNZ2cn/QcWAVikJ376p31Ics k38acqY8gYslHMQQGC8Wi76z0cPYrTllrdyNy+yYlHweSdTSZm/MOOh67ABJxyqn94M3 YHZh+GwcuETQL9VvFi877MPKW77tiCglJqe7F9BP0oo4F/Nq+6AKpBaHxmWiCHXArTjU 0K4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+aewCnTNGy8KuaeqGtx90I+oSQVy+5V29tI+27/JzTo=; b=l2QgtshBMCmDrhWpBurKRlfJrc6TRb/Esm1Zr3duQNfHRpLkcFmGYErVU6qEV0hC8v qnXerUCF59RmEOjk/l+59o1rZD6FQ5wlRA9Kxk7pQ9Mgn+C7aAtnP+ZqTREYDck83SoT 2m8Ri42hLEPXQVzexaA/w70nIfRFNh0CX5cilyZj6McoeMer2vIv7zcAkADHM5miBB1Z H3+P40cnbUX+5PGbCyhFbZxPDKcuQKK2KxxA9baIzOK5d6ePiPh8N12l4cX90JBA2rX1 7VbUf4Xg4wv3t6FtYo6qD/+fCUsu8vBCW47XjM2bKGzMFWQ+NzNG2LHKgJvmngozuBz7 Y1vQ== X-Gm-Message-State: APjAAAXMJClRCdUfdRFZrtB3LUh9iJXEPoJVfRkPXgyrvc9H+tl0bGGN B8Q7QaVsOA65vooZ8pwR3CC0+g== X-Received: by 2002:a1c:6308:: with SMTP id x8mr5118270wmb.80.1582715843459; Wed, 26 Feb 2020 03:17:23 -0800 (PST) Received: from [192.168.1.10] ([194.35.116.65]) by smtp.gmail.com with ESMTPSA id o27sm2828658wro.27.2020.02.26.03.17.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Feb 2020 03:17:22 -0800 (PST) Subject: Re: [PATCH bpf-next v3 0/5] bpftool: Make probes which emit dmesg warnings optional To: Michal Rostecki , bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org References: <20200225194446.20651-1-mrostecki@opensuse.org> From: Quentin Monnet Message-ID: Date: Wed, 26 Feb 2020 11:17:21 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200225194446.20651-1-mrostecki@opensuse.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020-02-25 20:44 UTC+0100 ~ Michal Rostecki > Feature probes in bpftool related to bpf_probe_write_user and > bpf_trace_printk helpers emit dmesg warnings which might be confusing > for people running bpftool on production environments. This patch series > addresses that by filtering them out by default and introducing the new > positional argument "full" which enables all available probes. > > The main motivation behind those changes is ability the fact that some > probes (for example those related to "trace" or "write_user" helpers) > emit dmesg messages which might be confusing for people who are running > on production environments. For details see the Cilium issue[0]. > > v1 -> v2: > - Do not expose regex filters to users, keep filtering logic internal, > expose only the "full" option for including probes which emit dmesg > warnings. > > v2 -> v3: > - Do not use regex for filtering out probes, use function IDs directly. > - Fix bash completion - in v2 only "prefix" was proposed after "macros", > "dev" and "kernel" were not. > - Rephrase the man page paragraph, highlight helper function names. > - Remove tests which parse the plain output of bpftool (except the > header/macros test), focus on testing JSON output instead. > - Add test which compares the output with and without "full" option. > > [0] https://github.com/cilium/cilium/issues/10048 > > Michal Rostecki (5): > bpftool: Move out sections to separate functions > bpftool: Make probes which emit dmesg warnings optional > bpftool: Update documentation of "bpftool feature" command > bpftool: Update bash completion for "bpftool feature" command > selftests/bpf: Add test for "bpftool feature" command > > .../bpftool/Documentation/bpftool-feature.rst | 19 +- > tools/bpf/bpftool/bash-completion/bpftool | 3 +- > tools/bpf/bpftool/feature.c | 283 +++++++++++------- > tools/testing/selftests/.gitignore | 5 +- > tools/testing/selftests/bpf/Makefile | 3 +- > tools/testing/selftests/bpf/test_bpftool.py | 179 +++++++++++ > tools/testing/selftests/bpf/test_bpftool.sh | 5 + > 7 files changed, 374 insertions(+), 123 deletions(-) > create mode 100644 tools/testing/selftests/bpf/test_bpftool.py > create mode 100755 tools/testing/selftests/bpf/test_bpftool.sh > This version looks good to me, thanks! Reviewed-by: Quentin Monnet (Please keep Acked-by/Reviewed-by tags between versions if there are no significant changes, here for patch 1.) That's a lot of tests now that we don't have the regex and filtering is very straightforward, but it does not hurt. I checked and they all pass on my system. Thanks, Quentin