Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1385225ybv; Thu, 20 Feb 2020 19:17:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw1fvdlDWkOMj659uwOXZfJjrPYDMm7/xK6x3o/7+EDBdhyP916YBTd809w06TIHbD+7ehF X-Received: by 2002:a9d:138:: with SMTP id 53mr27126243otu.334.1582255025062; Thu, 20 Feb 2020 19:17:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582255025; cv=none; d=google.com; s=arc-20160816; b=AOu3kjAK3f2K22YGyu4GsL4iqsF5xqyCrg4u8by39nSm0KuX8ewluxKDjOpXWXz0yh 6wGqZnwFteRC5O+jlC3+gH5HYc7h51wZM/WtepoKaatFIShj58RT+8jfDuo/sKjG1jMB GrFUEIqm0YVTduGK0m5CAnyfSzYgwR8sBcDVv2H5D6c0dwEpbgFVDVhrwW5/oET/KRJZ NHcVTIZnzQmv7tnOBWBVInpdq+m9r2mSLFTvt75atcZWxHZIqauQMY72u5Ey+vejNBWt hfi0u1aBzaEq88OyVlUJ7+SM1Ii/TpbuyIGcmfenH35P3i5yzN6pMwV+eAdWF7uba98N z90A== 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=cUycWCIn4SEOMFdWf9yL0EHwrNurIAgjjttFDASfUD4=; b=ko584VF4Hs/Ahl7/+bT3cQFaTKlDR2LfgR0zEuPC+h2CnEumjexw57eukQBLSdaGQr TNPT/F64QNV9EP1IXdq/qO7fWrAuJe6DsQhrhXYMjxlFFje/dnM0nR23jm0K3Fmnppdb Ge3drxbyfhFh+PoMXqwYXo4kNurMmSTRAGsmoyyONAZ+s6TsHFFxJkkkDu5HsyNmtEfN 6DoYCQSneCflteIhBwzbCRaqohCb4QKe2IrxuPcklW2Qx3f9GdQs95y+X4XLYsqdGI6x nXPegYmXvIRG1lwGVLMA5ZlWTXr9qwf4GO4M1tUiuUIFbG0qiId9CO6cDlAF1pjVX3/o 3yNg== 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 f5si757414otp.129.2020.02.20.19.16.53; Thu, 20 Feb 2020 19:17:05 -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 S1729696AbgBUDQc (ORCPT + 99 others); Thu, 20 Feb 2020 22:16:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:59596 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729683AbgBUDQa (ORCPT ); Thu, 20 Feb 2020 22:16:30 -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 22257ADA3; Fri, 21 Feb 2020 03:16:28 +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 3/5] bpftool: Update documentation of "bpftool feature" command Date: Fri, 21 Feb 2020 04:16:58 +0100 Message-Id: <20200221031702.25292-4-mrostecki@opensuse.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200221031702.25292-1-mrostecki@opensuse.org> References: <20200221031702.25292-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 --- .../bpf/bpftool/Documentation/bpftool-feature.rst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tools/bpf/bpftool/Documentation/bpftool-feature.rst b/tools/bpf/bpftool/Documentation/bpftool-feature.rst index 4d08f35034a2..2e8f66ee1e77 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 emit + dmesg warnings. 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 @@ -48,12 +53,12 @@ DESCRIPTION **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.0