Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1384868ybv; Thu, 20 Feb 2020 19:16:37 -0800 (PST) X-Google-Smtp-Source: APXvYqz2dYAhygieT6whl8sTCzE0c01SJchJDqGwBkrZWvlcszSxSG0jqM6O1ButnEGBWbulBUXf X-Received: by 2002:a05:6830:18d4:: with SMTP id v20mr26696401ote.29.1582254997189; Thu, 20 Feb 2020 19:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582254997; cv=none; d=google.com; s=arc-20160816; b=egXPV9lLr6QJfICvmrOr80bzcOmt3PBMiSkzybHInoYLGUnbLVbi+dLHGv3u1XOqC1 f+28QAL/KIc221LZiIIaCLQjTIp35J6e9XzHidxOVa3kZUGz4o4V24LAz0YQGGArvJGx dx27TkSyNRL/WFORK0YcQWCIh+e/5n9K3C08NnOQ1KuM9BTLxt/clXjCu/wBQtYujB6p LTJh5uyyoKvuATG1x7yWyUvwXXurR4o8KgUcu3VkVb9aizCVchGDaD05nSFjLkfIAK4s wbLFrTOinT0ravhh/iiRp+UWTVPsR19mw4i0oQvcnjqCioCJgKOMb+YnxR33D+xT+6Me YCOg== 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 :message-id:date:subject:cc:to:from; bh=puk0vF05n0cu5rnh4C3mhNn+a553OUAYWXx6yX8dWfQ=; b=ycfnoxNdK2GHsIYeOF8maZwFAZBcvpQHjwPpGPnxNHk1vrnhcM8ViSp1h4cy6egt5Y ORzF1JaWwEBPdx37HCwAGH3k61496RxmegKAOFXsiSZrOgJGo2GxhhitCDyl8xkQcUMj TLNuHvAnxkMZV2ULos/viSsNMblsPCQJO7GVDr/N4fExOmjWtVgCYo+QQJQkQiIil5p5 8assqaxCmQWbtBOsweI8uxgx9Vj+DzehHcsFnZGa2G6e5nw6Xe9LobrcRl73ilwhCvT8 UtUb2Av1m9qisMarZE9axsWJmiE7+mw8q9jDr5vU4O+5IA3AP+S1elHGjv/0GVa+pYXr c+TA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si162067oiq.104.2020.02.20.19.16.22; Thu, 20 Feb 2020 19:16:37 -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; 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 S1729608AbgBUDQS (ORCPT + 99 others); Thu, 20 Feb 2020 22:16:18 -0500 Received: from mx2.suse.de ([195.135.220.15]:59472 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729268AbgBUDQR (ORCPT ); Thu, 20 Feb 2020 22:16:17 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4AFD9ADA3; Fri, 21 Feb 2020 03:16:15 +0000 (UTC) From: Michal Rostecki To: bpf@vger.kernel.org Cc: Michal Rostecki , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Quentin Monnet , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) Subject: [PATCH bpf-next v2 0/5] bpftool: Make probes which emit dmesg warnings optional Date: Fri, 21 Feb 2020 04:16:55 +0100 Message-Id: <20200221031702.25292-1-mrostecki@opensuse.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: https://lore.kernel.org/bpf/20200218190224.22508-1-mrostecki@opensuse.org/T/ 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. [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 | 15 +- tools/bpf/bpftool/bash-completion/bpftool | 27 +- tools/bpf/bpftool/feature.c | 291 ++++++++++++------ tools/testing/selftests/.gitignore | 5 +- tools/testing/selftests/bpf/Makefile | 3 +- tools/testing/selftests/bpf/test_bpftool.py | 228 ++++++++++++++ tools/testing/selftests/bpf/test_bpftool.sh | 5 + 7 files changed, 463 insertions(+), 111 deletions(-) create mode 100644 tools/testing/selftests/bpf/test_bpftool.py create mode 100755 tools/testing/selftests/bpf/test_bpftool.sh -- 2.25.0