Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp768680ybv; Wed, 19 Feb 2020 08:52:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyej4V+KbeVnNMHZsOMBugvv1cLBj/bgjUkPVHFWyxpYbm1rhLv3cbJxqMo24Lb+C614ZTK X-Received: by 2002:aca:be57:: with SMTP id o84mr5256666oif.138.1582131179546; Wed, 19 Feb 2020 08:52:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582131179; cv=none; d=google.com; s=arc-20160816; b=P74j50QycI+Zwsf8XfdfBnhvBQ2uP7Bb18jYeY24lDoJqRLFZ2MKXMR8lBct7Knzsn EMhZVY6ITu1hxiZVcO63aHJLDSnhGU9Wi1F9AS92eCmYKdmXcXmExojzL20Ii9lgQPDX ESGIGXGuf9tz60lIDz2RIlhyymr+bBuBXzDRMyoRNKi/s9DSiv+8Mx68ZGP3gyJKQPfL d2NGv0/FJL/7aHEsyvXZd+kzD+GUXiXlT89F9DWrPB3tjiIOsbvq3wGSTBq6Rci8zWrz cTp72jF/X3nytWbuGLAbz3FmWefQ29GTMND8rupFW/NN9H54x+G5w+FDrnYYrvSyCwfY Op7g== 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; bh=Qijtuvr1+inH1zVxr0Y0NNvKqTlyVslV5LWjbkwdap4=; b=wvs9zzYTacz5OLiPblEHzNQqwl5tBJhf675uj8Pm6p4NKdKDa8w0dhL5/DcnedzaX6 vZdf+Jh1weDElvYVsVReDfpNFfilDjdiIpFSHg/kKf1T4/HFu6ST6FkLKpDgu8nlyaHv w+PDv3RD1fC/2/AOVDKkM7njCK+wc4ctAAZVmVuGraMdQJEMKDZ5/86KZXXJxXvNsFlg yAEmkJw/b+jgvXf2BnAy4GMv7dhX++TRdv9HjCG90uNDNp2e99Mgts22ucoRBkfeo2vI WRk4dlmmQzhFWyQhquWLg7jdeB6XddDsam9V7kXqkS828F2g9AAFVDgOLNC5H1SL4rjd doaA== 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 y186si9504913oig.241.2020.02.19.08.52.47; Wed, 19 Feb 2020 08:52:59 -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 S1726927AbgBSQw2 (ORCPT + 99 others); Wed, 19 Feb 2020 11:52:28 -0500 Received: from www62.your-server.de ([213.133.104.62]:40848 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726450AbgBSQw2 (ORCPT ); Wed, 19 Feb 2020 11:52:28 -0500 Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1j4SaG-0005EC-ES; Wed, 19 Feb 2020 17:52:24 +0100 Received: from [2001:1620:665:0:5795:5b0a:e5d5:5944] (helo=linux-3.fritz.box) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4SaF-000Jq9-VN; Wed, 19 Feb 2020 17:52:24 +0100 Subject: Re: [PATCH bpf-next 0/6] bpftool: Allow to select sections and filter probes To: Alexei Starovoitov , Michal Rostecki Cc: bpf , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Jakub Kicinski , Network Development , LKML , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" References: <20200218190224.22508-1-mrostecki@opensuse.org> <06ae3070-0d35-df49-9310-d1fb7bfb3e67@opensuse.org> From: Daniel Borkmann Message-ID: <498282f3-7e75-c24d-513d-be97b165b01f@iogearbox.net> Date: Wed, 19 Feb 2020 17:52:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.1/25728/Wed Feb 19 15:06:20 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/20 5:37 PM, Alexei Starovoitov wrote: > On Wed, Feb 19, 2020 at 4:33 AM Michal Rostecki wrote: >> >> On 2/19/20 4:02 AM, Alexei Starovoitov wrote: >>> The motivation is clear, but I think the users shouldn't be made >>> aware of such implementation details. I think instead of filter_in/out >>> it's better to do 'full or safe' mode of probing. >>> By default it can do all the probing that doesn't cause >>> extra dmesgs and in 'full' mode it can probe everything. >> >> Alright, then I will send later v2 where the "internal" implementation >> (filtering out based on regex) stays similar (filter_out will stay in >> the code without being exposed to users, filter_in will be removed). And >> the exposed option of "safe" probing will just apply the >> "(trace|write_user)" filter_out pattern. Does it sound good? > > yes. If implementation is doing filter_in and applying 'trace_printk|write_user' > strings hidden within bpftool than I think it should be good. > What do you think the default should be? > It feels to me that the default should not be causing dmesg prints. > So only addition flag for bpftool command line will be 'bpftool > feature probe full' Agree, that makes sense to me.