Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1166262ybh; Tue, 10 Mar 2020 16:18:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vunXiUZVVNZorwIt0/cdlVlCo+NbAmOaxBHEpVP9pC+F24o2y7q9/RXjioftbvntJDi7Jao X-Received: by 2002:aca:1a05:: with SMTP id a5mr31373oia.113.1583882287487; Tue, 10 Mar 2020 16:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583882287; cv=none; d=google.com; s=arc-20160816; b=xA66WkztP0HtkjFO52EcizUiEahuEPLp7udvAHDL5enzxC4TDpGmbYPyYLeiNlk4NI wyLfstG4/ua7mVvOihvwGRAwab7szGHbmNDVpsDiYoy2nQktq3KQWeNnvyBaYGTlY9A7 1lv3YDTYqTWsYvsbnwaLStRX7GqYQP2vwp/RLBUpMy7H4ysjR2H3I+B8zVVJyADHfAKY lXv7XYx4L+BUaVHQUDIiXuIZS65b/oqMbGl42BpLSKoq6NcaaTu3cbv7l/o8uMBGcfVG xfM3Glhi0dK1T70ogdsDwI+ghg883R07/Mbq0lcYrLBdZ7cEX5fW3SCX+kmN07U5YPwz 1h7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=zl/lWHWv6tbLxgwL8UouBpVse0Ty59JHde61w10tgZY=; b=soqsg12dCdJJ1l6BbxfV/8cELKKnym0DkAWcGTGPysE1nnQJcnKcz3KGmVeqOJHBd/ Dh5ieNGW7JVrhcVyyLf8H4RfYPRdRYPc+CimwkFk2rwBP+MU3L6kLrYMcT/eggVIAlm5 pZwMh6bYZK/l4xi9mv7VJkhQ2ujQKnjPQj0D+kO+57qvPVMkF8lS87uehnkoAZ9hFs4W 271Xc9qe+WmfugbPy6N7AM0WxLri+lqRv7pUCTAouIgt8qVIWa+vRF00qNDE+jejT+Ca c0zQq+fHO4OdVlY5MQHE8pZ7KNh4en8FCF1viglqiQUU9txoQC5M9umL336wDeiNX2Ao 5DvQ== 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 l11si84089otk.207.2020.03.10.16.17.55; Tue, 10 Mar 2020 16:18:07 -0700 (PDT) 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 S1727770AbgCJXQy (ORCPT + 99 others); Tue, 10 Mar 2020 19:16:54 -0400 Received: from 17.mo5.mail-out.ovh.net ([46.105.56.132]:33569 "EHLO 17.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727752AbgCJXQy (ORCPT ); Tue, 10 Mar 2020 19:16:54 -0400 Received: from player759.ha.ovh.net (unknown [10.110.208.202]) by mo5.mail-out.ovh.net (Postfix) with ESMTP id A0BAF270FEE for ; Tue, 10 Mar 2020 22:57:18 +0100 (CET) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player759.ha.ovh.net (Postfix) with ESMTPSA id 5878B104D32F2; Tue, 10 Mar 2020 21:57:05 +0000 (UTC) Date: Tue, 10 Mar 2020 22:57:02 +0100 From: Stephen Kitt To: Alexei Starovoitov Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , bpf , "open list:DOCUMENTATION" , LKML Subject: Re: [PATCH v2] docs: sysctl/kernel: document BPF entries Message-ID: <20200310225702.2da4519c@heffalump.sk2.org> In-Reply-To: References: <20200309180350.21075-1-steve@sk2.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/O4H7GWQKOH1ilLfxU.Pj.YK"; protocol="application/pgp-signature" X-Ovh-Tracer-Id: 954200173656165741 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddvtddgudegiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkjghfofggtgesghdtreerredtvdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejheelrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/O4H7GWQKOH1ilLfxU.Pj.YK Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 10 Mar 2020 10:47:15 -0700, Alexei Starovoitov wrote: > On Mon, Mar 9, 2020 at 11:05 AM Stephen Kitt wrote: > > > > Based on the implementation in kernel/bpf/syscall.c, > > kernel/bpf/trampoline.c, include/linux/filter.h, and the documentation > > in bpftool-prog.rst. > > > > The section style doesn't match the surrounding sections; it matches > > the style of the reworked kernel.rst queued up in docs-next. > > > > Signed-off-by: Stephen Kitt > > --- > > > > Notes: > > Changes since v1: > > - rebased on bpf-next instead of docs-next. > > > > Documentation/admin-guide/sysctl/kernel.rst | 24 +++++++++++++++++++++ > > 1 file changed, 24 insertions(+) > > > > diff --git a/Documentation/admin-guide/sysctl/kernel.rst > > b/Documentation/admin-guide/sysctl/kernel.rst index > > def074807cee..eea7afd509ac 100644 --- > > a/Documentation/admin-guide/sysctl/kernel.rst +++ > > b/Documentation/admin-guide/sysctl/kernel.rst @@ -174,6 +174,20 @@ See > > the type_of_loader and ext_loader_ver fields in > > Documentation/x86/boot.rst for additional information. > > > > > > +bpf_stats_enabled > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +Controls whether the kernel should collect statistics on BPF programs > > +(total time spent running, number of times run...). Enabling > > +statistics causes a slight reduction in performance on each program > > +run. The statistics can be seen using ``bpftool``. > > + > > +=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > +0 Don't collect statistics (default). > > +1 Collect statistics. > > +=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > + > > cap_last_cap: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > @@ -1123,6 +1137,16 @@ NMI switch that most IA32 servers have fires > > unknown NMI up, for example. If a system hangs up, try pressing the NMI > > switch. > > > > > > +unprivileged_bpf_disabled > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > > + > > +Writing 1 to this entry will disabled unprivileged calls to ``bpf()``;= =20 >=20 > same typo as was pointed out earlier. Oh dear, sorry about that, v3 is on its way :-(. Regards, Stephen --Sig_/O4H7GWQKOH1ilLfxU.Pj.YK Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAl5oDS4ACgkQgNMC9Yht g5wY9hAAk12F/rXYyveXRZ0+57xIPIGL2rBRZOEF8WxN8lEbpREk35+vufvy4p0l cxnAPh/aIcZA9dkxZOA1prAK+B6Q2tIvCKXLWOhr5WW3C31hEDfPfbqr9PvPp9DJ m1JorpMHFdiwYOymrTBg+Xgm8I/4F6InRlnHchNAMw/kronscoCFC7sh6yJiXRrr gyEV7tA5IQm4rGzCwxOIyU3IqeKvNOyeh41aor4YcjL7Y3l+WB7XV2XieVP7zX1Z OwvrFGWKJGz+rj3A4i5JLZchFfnwuA3jVS80QbyfpMNuS/ICWGoDCYw3K5mqvwce 00Ur1+UCAH41PIT8If0yF7/hDzyr/X8ZHcdvjoObOqTJ33rjxJWEnezzlXqNUwiz qhmVNaJ3TUmSkGpMlu0ATEzoj0yvgeuXtoq9DjrXaZ+BKWsMgnUaE3+7jMlbuUIJ hMD/0Fk+d8x4dTUUIyIkHvSFrJq5TEtWYsTlIWpP0KvLLf3Uf+11/Ve4vtPsHsVC qyOMa9arCvV82yjRzvR2m74+ld1zBk7lH0r+X6mLnX4iJd6MNLY79UCUZ0ACTWME xQQ7kENBvARy+UHwkwNpv4ybd1P+1I6hZu+NKvV+ZWkXvqGsr71v0N1nEgbd+ZSV kadnjSZlyoMP546no7de7kvl2iAqB1UDeD2L26W5zHCRjprStlA= =6Whk -----END PGP SIGNATURE----- --Sig_/O4H7GWQKOH1ilLfxU.Pj.YK--