Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp69594ybf; Wed, 26 Feb 2020 09:00:31 -0800 (PST) X-Google-Smtp-Source: APXvYqw1BodXBILuLe28l7M3YnU0My5hG3bgLXSSzBVFxyJ0mbJLwKbddl867IHe8hN4TlVL1jiM X-Received: by 2002:a9d:6181:: with SMTP id g1mr4027687otk.104.1582736430738; Wed, 26 Feb 2020 09:00:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582736430; cv=none; d=google.com; s=arc-20160816; b=00+U5DCw5bLcvc8UdyEijRmVqF273yJ7EJOSn1pxqLRWH+zwNbL1Cgd04LhEkT4ev9 CCB3KbqcQd7bX8X4gK0/TGYdLwY64w0di8SVBoy6KnPl9W7nP1zbK42w7P/liwbrBirB OfyDfG/iCqKxf94qTBW/lO7OxnRieCVZ2c2I26sVrMH5XYTelTrHCdavixwlKLFUy851 bNzQSU/Jkvh2dn0hpf90P3ftgJV9G9yQ1pKj2VOktXlhAwzZ4m0b9xj9dO3YEZXLXUDW FHrDJJ/pP1mp70mKHfqAh9yKvNTbI/igS8uo3YMwGSRqIyNssm1kippEopBYhwlcCDQb jPGA== 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:date:subject:cc:to:from; bh=A/8NdpqpRvP/31cjndJ5Q5Txjpt7kBadwiECv9BMuls=; b=MPcCaqU4/h3mLjKESBdvHclS+e1/w4JF9zzy4PL9Xgv+Z32ClRrXC271+KcYgj3w1G F6CezovMd224/r0D2Mn6WRGOUhi6/CLnXzNGjM8IedZX8JCTZMgDE1iCEU8OK/TlnpmU lcYQ8xmLjpR/rQ7vP/6p4Q8b83J79Q9NDWfAetAAejQSRC8YPs5yndIv2iL3J25M/5BW 95uemp2LvmlH1l1U78Wc0kxhf7wCcJyhZwhI2SPkMvFya1ze9NCs2tBX0CpNqltwt99T YQnVvl+sv4xG719asn6p7MTeoxyTeNFOGX/gYS+8mEmh7QlrQlJn2U9+1vB6pkvCtTxI At8g== 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 j9si71583otl.153.2020.02.26.09.00.18; Wed, 26 Feb 2020 09:00:30 -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 S1728086AbgBZQ7y (ORCPT + 99 others); Wed, 26 Feb 2020 11:59:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:36274 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727922AbgBZQ7x (ORCPT ); Wed, 26 Feb 2020 11:59:53 -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 D3A2BAE61; Wed, 26 Feb 2020 16:59:50 +0000 (UTC) From: Michal Rostecki To: 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 Subject: [PATCH bpf-next v4 3/5] bpftool: Update documentation of "bpftool feature" command Date: Wed, 26 Feb 2020 17:59:37 +0100 Message-Id: <20200226165941.6379-4-mrostecki@opensuse.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200226165941.6379-1-mrostecki@opensuse.org> References: <20200226165941.6379-1-mrostecki@opensuse.org> 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 Update documentation of "bpftool feature" command with information about new arguments: "full". Signed-off-by: Michal Rostecki --- .../bpftool/Documentation/bpftool-feature.rst | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tools/bpf/bpftool/Documentation/bpftool-feature.rst b/tools/bpf/bpftool/Documentation/bpftool-feature.rst index 4d08f35034a2..b04156cfd7a3 100644 --- a/tools/bpf/bpftool/Documentation/bpftool-feature.rst +++ b/tools/bpf/bpftool/Documentation/bpftool-feature.rst @@ -19,19 +19,24 @@ SYNOPSIS FEATURE COMMANDS ================ -| **bpftool** **feature probe** [*COMPONENT*] [**macros** [**prefix** *PREFIX*]] +| **bpftool** **feature probe** [*COMPONENT*] [**full**] [**macros** [**prefix** *PREFIX*]] | **bpftool** **feature help** | | *COMPONENT* := { **kernel** | **dev** *NAME* } DESCRIPTION =========== - **bpftool feature probe** [**kernel**] [**macros** [**prefix** *PREFIX*]] + **bpftool feature probe** [**kernel**] [**full**] [**macros** [**prefix** *PREFIX*]] Probe the running kernel and dump a number of eBPF-related parameters, such as availability of the **bpf()** system call, JIT status, eBPF program types availability, eBPF helper functions availability, and more. + By default, bpftool **does not run probes** for + **bpf_probe_write_user**\ () and **bpf_trace_printk**\() + helpers which print warnings to kernel logs. To enable them + and run all probes, the **full** keyword should be used. + If the **macros** keyword (but not the **-j** option) is passed, a subset of the output is dumped as a list of **#define** macros that are ready to be included in a C @@ -44,16 +49,12 @@ DESCRIPTION Keyword **kernel** can be omitted. If no probe target is specified, probing the kernel is the default behaviour. - Note that when probed, some eBPF helpers (e.g. - **bpf_trace_printk**\ () or **bpf_probe_write_user**\ ()) may - print warnings to kernel logs. - - **bpftool feature probe dev** *NAME* [**macros** [**prefix** *PREFIX*]] + **bpftool feature probe dev** *NAME* [**full**] [**macros** [**prefix** *PREFIX*]] Probe network device for supported eBPF features and dump results to the console. - The two keywords **macros** and **prefix** have the same - role as when probing the kernel. + The keywords **full**, **macros** and **prefix** have the + same role as when probing the kernel. **bpftool feature help** Print short help message. -- 2.25.1