Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1786227ybv; Fri, 21 Feb 2020 03:29:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyEYAOgH7YIU8JEkVK+eiD/lf2hcY3fHYbW77s9r+tQaSA27ycfEwmrtdCJ69OfbVXDjG2v X-Received: by 2002:aca:815:: with SMTP id 21mr1633212oii.52.1582284550593; Fri, 21 Feb 2020 03:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582284550; cv=none; d=google.com; s=arc-20160816; b=NGF/L8+4awx0TrxMi/8xrkjzRU4NcgzUY8b39kYhcv0dnJa2xJOdqW7bWanAz6ndBG k6GUb9NP6vlEnvmxxnd3S6a/TwKPC3SLp8P4cat15wVCTToMhMgq3q/KYfoFIioTzAIE MNYEW1fkKIblxg3DjfG47T5jVbmoT1jA62C98BdOGjNL54tSQEyv24TvwuNv6atSwvDy pnw9qSDEQrcgB+BOHoGSiqLfZgzM581N4O3AUQ/ANxuCkFKQt+Lx7AWRudqKpcQ5eLFk i3Elx8zjFSnQ8r3nnNjlB1XgKpoztD2jsY0hy586ocnGLbmj/7Fll7Uy3obxK7Lh0hOv Li0g== 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=MmlIuWAhG574pRgwa2zTd9boc50vLeKyqoHfRi2itEU=; b=ZJIG92+JpHmLD0r0CgvWR/oIEF3QbIdoXpKSzzwrecE0dqQvc4p3J3NpdK+j/oYsvx 0gsZ44qr/MByldOpuA+qIv1vgEmjwYgPIiu0q9j+2abUtBGaEaF1E/pD0cGReSfCh6Cp MGsdBUwjWV3Dq3WpcRztsD2MkudbZec5WdTEt7jKUzWLYXvZTMi+mfpO5YoYUa4cgOml f1pu9ptTFTmphMT4+lSh4+P0rsfOrFyPa4C5NE8YFMGJTFCMbrLJWBG/JiqgZ22dF/k7 7oouRnClWTdWyDPeZKtLE9mUEo4RbPzp9kcYqjcgqB+P/eFCrZPjXdSNeu+0cGh+L+5q zi9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent-com.20150623.gappssmtp.com header.s=20150623 header.b=YKUQdaBb; 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 l4si640497oib.170.2020.02.21.03.28.58; Fri, 21 Feb 2020 03:29:10 -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=YKUQdaBb; 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 S1727686AbgBUL2Z (ORCPT + 99 others); Fri, 21 Feb 2020 06:28:25 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37598 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbgBUL2Y (ORCPT ); Fri, 21 Feb 2020 06:28:24 -0500 Received: by mail-wr1-f66.google.com with SMTP id w15so1630900wru.4 for ; Fri, 21 Feb 2020 03:28:23 -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=MmlIuWAhG574pRgwa2zTd9boc50vLeKyqoHfRi2itEU=; b=YKUQdaBbggWW6llIQTJxlrtrnqsyXplrQDdDUNJHbpsAcIB2ml073JtDPuknhQ25To X0b0jh80UPZ/YXbi4B9Z6xzv5bBYVs7tD7nmc21q7a3Qx4I7xvpCaImxvIJTVXVRUpAq MVS+AHVq75/Ph0hOQn/jL6c1nIqYtCerq5Vsa+etZY0Dz5ALh1MjY4u90FvIyG95n4xv uPD+hTWmiMAdgIOgGxjRP7fLYcHQ5IbxY+zYZkYRrAm1+4cYzHKA9ZPodJthRM5Am/H2 T8HXJVqxfhVAU4kPyU1/hCmw5fFW2vHAG5vhUoG1QNoHN6meJjBBPC8c0DJXPQNDzwrj uiNg== 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=MmlIuWAhG574pRgwa2zTd9boc50vLeKyqoHfRi2itEU=; b=rEx5/RDSBfVz3GjXowtyo6tEegUVbpuMwydJZodViG2PRIm4BE8Tw+qBMEk0P8LI3n HJX88C6Tq+5qB+OCm5Gg3BKIOtmgXnZe32cD0akvCjRyTJVwO/T4LI2ko/SigscyHhLl 7hlSK6x4eY4Lu0/hBLgQheHiru3o8fm8prGV1YOzkCYwRcHi3FsOcogBC64cJoq15PtE f6wIlEvt3rD27kBHwbFAI86xRx7ekC+bsvSn6NAmiSh9TC4/sIJk+tJ00Bl76CilS0XW ig+n6D9M3vXdCcqLx/p6U/5okPBojad2Ub/kn4C+DVrTnlZojxG9TTKhyIsSaTFaFv1Y /kGA== X-Gm-Message-State: APjAAAXggfHPM225r0dpG/HQom1dhGAEDapDTiueXD2TV5c1mLCbczIg 3KCCF9OHU4qOhOSgc3iHvJjXew== X-Received: by 2002:a05:6000:1206:: with SMTP id e6mr21158926wrx.410.1582284502523; Fri, 21 Feb 2020 03:28:22 -0800 (PST) Received: from [192.168.1.23] ([91.143.66.155]) by smtp.gmail.com with ESMTPSA id a13sm3591825wrp.93.2020.02.21.03.28.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Feb 2020 03:28:22 -0800 (PST) Subject: Re: [PATCH bpf-next v2 3/5] bpftool: Update documentation of "bpftool feature" command 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 , "open list:KERNEL SELFTEST FRAMEWORK" References: <20200221031702.25292-1-mrostecki@opensuse.org> <20200221031702.25292-4-mrostecki@opensuse.org> From: Quentin Monnet Message-ID: <85e7fcf3-0ad3-28e3-ef6f-a19669fd6c7f@isovalent.com> Date: Fri, 21 Feb 2020 11:28: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: <20200221031702.25292-4-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-21 04:16 UTC+0100 ~ Michal Rostecki > 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 Please use formatting on helper function names, for readability and consistency. I would even be tempted to highlight part or all of the sentence, with caps or bold, as some users may be surprised not to see those helpers in the list of available helpers on their system. > + 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. This should maybe be moved upwards and combined with your new paragraph? > > - **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. >