Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp963894ybv; Wed, 19 Feb 2020 12:57:34 -0800 (PST) X-Google-Smtp-Source: APXvYqx5wKyMaAnq2LAB3WHDCOQlYwMX6lVJJcwilzdK/PYRYbnPMqMJPINzhjch3VyEJ0spGBTz X-Received: by 2002:aca:1a06:: with SMTP id a6mr5634951oia.148.1582145854583; Wed, 19 Feb 2020 12:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582145854; cv=none; d=google.com; s=arc-20160816; b=RGoJaV70nWAka6d9ELdVd+3D41Qoit+R0cSSJwKDWQheAI05p16/juDNC6Aef6orzL jI9s05LBq4//RqOqQg1AFR1XC6pMD9wpEfDrqEKQ+vjmB0bxteJaO8+e8Ag/NF1dwkHx cAC8CLTQkT+tLvpMGKla2RQz+bK49XtTTdYgHi+KF894j8spMbcpQCuEraQFi7QdsHw9 EKXAP4KWo262M3xDBRBA0yP+3gcGiE/G9nkwhSoFoY5oHjeAoxISFXCxtczHOxtHu4eM vfzabTHsc7vZTb/46w2sytDsrLLDHy9HzM+wFMmZyI6vn2aKmvgzrum8Pv+nnLp1V/RF DXdQ== 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:autocrypt:from:references:cc:to:subject; bh=MdAX5buzOTK9op9dVnuEAC/DFpBvWGTBeBGcgVnmeLY=; b=OrkpAPlYZVPTMrAv2V8U7N0vvbxRBMc+UUxwWkq2AwWthLtOK24uXaCRAbXuMsBR4b GPywSFPIhbruI04YrTungnQtrQJilJMIayRlPWIDpQ67oUGC/EvU8Ks/Lv9VFqcOstBN akVuyoMDLwvvOmxAnSfu5IbtUL+QfT9IbVDrUmwHm8yBWwlUvOGdHjsz+nTmmJ44Bvsn JOUprTDl6XLVD9mlFHvoL9wcH7olvCVKVfXyquUhvRd1BlrHnXzejv0OGYQ1x9euGXqp zOPZqZnfbfvOiGqJSyoJw4l/mtAD8GfgVPoc7qtTwA+LFwGFmQfVdluTJXMsvZ3xWOUM VZaw== 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 w187si10388971oif.94.2020.02.19.12.57.23; Wed, 19 Feb 2020 12:57:34 -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 S1727794AbgBSU5F (ORCPT + 99 others); Wed, 19 Feb 2020 15:57:05 -0500 Received: from mx2.suse.de ([195.135.220.15]:43236 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgBSU5E (ORCPT ); Wed, 19 Feb 2020 15:57:04 -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 E16ABB26D; Wed, 19 Feb 2020 20:57:01 +0000 (UTC) Subject: Re: [PATCH bpf-next 0/6] bpftool: Allow to select sections and filter probes To: Daniel Borkmann , Alexei Starovoitov 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> <498282f3-7e75-c24d-513d-be97b165b01f@iogearbox.net> From: Michal Rostecki Autocrypt: addr=mrostecki@opensuse.org; keydata= mQINBF4whosBEADQd45MN9lBl17sx48EAAfyrc6sVtmf/qyqsQgpJnuLGQTbSdI2Nckz0w04 YbGCGI0giMkBgJTEDB8+Or+DZtaa4MmnqMuivI9wWMJzf3IidAZOe262/blNjsTqITzoCJ48 MLufgrv3XkEZPEaeOEEswZ/PaemQIgW3Jn1K6IYfg9mXA1+Sn42Ikj7c41r30pnCTVDlhcyS kMtt5Gs1u9yOkc8LFEo4w3F02SfFJ4t1ar04xY+znRwSDZh4xFVyradaP37mTDL/cAj94jEi 44YzL22x6fAVRwH3wYLw49YnBK3j1uvys+DPqaOFJnQwfH3AA++tmOFYnJkC1s+E4mpcSIsn H/jRznlv7SPttTRfsaJL0Gk9tHaIUI4o1kLkfMOV0QDJ4xBOCeOfjBQwcDAeiVQXtMnx4XkB tmifSwFGlOTsEa0Mti7TlWrAPWBF5xEnG5tCuKaaLnyb4vu+gbV3r0TgI+BNv3ii+2nMFYWd u49pV23pck61oJ43hR1WOZUWIyLvTTQveaYRzbfcG7wbR/C2NIuAtEf8wxBv1aRI/vDCZSjV TK8Zh1pBdk+UsgC310ny4hcVYR1uwapJts2A+Q/rUMlsC6CAJwD916zAIAhaeNLOPYmb46Mw 96AhRclvV5TW929X/vCe1iczDdfSyYkU41RJGTUSBfSQXMVomQARAQABtChNaWNoYWwgUm9z dGVja2kgPG1yb3N0ZWNraUBvcGVuc3VzZS5vcmc+iQJUBBMBCAA+FiEE/xPU917HlqMFVtFM 7/hds1JJaVUFAl4whosCGwMFCQHgwSUFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ7/hd s1JJaVWoyRAApCxV1shTrcIwO8ejZwr0NeZ2EBODcbJULgtjZCaCZp8ABzzUAB8uZCmxCDdL PEDlZgWW8Pm0SkS5jyJZ4AI1OQNtX6m/gy7fFCpr1MIZoHsVuzYHswxzZhcDGbTXrkcmLygD dTikyLEKAeCGMU6pbGrHfhzIRGasII1PqS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U3jEUuth5NiTm1qQBUqAHUAgZhGIqVWpECHFKaIMUxv Xj6bvOCrCR0PfWxalS3RJT7z4OsETAG7QT4yOlqOhP5uue3I6WnzaQPZU0Gp9+vyQpuCVPdl HbK2kx9hg5imRgmZLOKyjdhbABEBAAGJAjwEGAEIACYWIQT/E9T3XseWowVW0Uzv+F2zUklp VQUCXjCGiwIbDAUJAeDBJQAKCRDv+F2zUklpVaFiEACHVCJJPXenIc5C4zkuu1pn0dmouoZV LWEyk3zjcC7wVJ/RGr4apLKU0hAfp9O12/s4mxa3lzZ9EvaWUY7NwwYx4kCmVcsq2+a6NVNI nkKUqPvj8sXd9dHWk283hDwrQrL7QPysr767TrLcXQ2l8o19q02lN/D7Jte37td8JMrsErEF B0Q31D+HWnn1rFJCeCn5/vwHgDW8wWtYYisv/EmUf7ppP9teiNtrQinyljTUMsb1hiy2HkhL qEOR7Q/NVk1yDC+oyQ08Zvt9LkELo3fPoeXX8RlbCUA36zq+3HsHggI6XJNmYDSS+l7N5r9B GEGFgLvCFJMP6nNX16nkvpYflxIzlmAAWQUR8K/VGvW8YgfRJBVw7+AhCe7mXubIbTa9IrJs QR74gvfGuJWrWq0ZtOzS5cKxos0rF2VON2rig5+5lf9A1UP1ZH0nfVCx5iXuJ1O1ld6tXHpD qRunpTuuKg3wkHCAS4oC/ECFHV8JukpgEuR7CNvBbYyjc7BFImmOe0bGbbntFnU173ehj0A0 hjrs3VY5x7TDedJwEr5iMKzvI4NlXNQEjDEltBN88gMvtFo6w8W/bbe6OalIEfs42DS+5KIg X91a5VRZRQo853ef/YjTRCZkGhUJ9A5uCLodR14o+C2Lzc3EmJ89awrqiAirZWPuZHCfud+f ZURUUA== Message-ID: Date: Wed, 19 Feb 2020 21:57:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <498282f3-7e75-c24d-513d-be97b165b01f@iogearbox.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/20 5:52 PM, Daniel Borkmann wrote: > 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. Makes sense to me as well. I will do that in v2.