Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp537023ybv; Wed, 19 Feb 2020 04:33:24 -0800 (PST) X-Google-Smtp-Source: APXvYqy/8R03Zy3qEd30yDVyfTC1olKESa7MGYHxC9fUjr7svDKfTkUeHkeOTU11ruXpiMzPdl2C X-Received: by 2002:a54:4707:: with SMTP id k7mr4208580oik.153.1582115604405; Wed, 19 Feb 2020 04:33:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582115604; cv=none; d=google.com; s=arc-20160816; b=OXE4weu8GHVr/3El0CMgtXXVQuJsfBcE4i8Sab/vGH1HxTsrCQxgRgGhhh3uo4ayU8 m4YlwIWyyN5vWksYUcx5HnB/VAdjRBc0Ai6HWC1dIY/tsV1jsns1lRqmbMq9a21PjwqZ E2Q1zrotNiuoQPCDaEKgK4aOF8MxBYr1vW8gCoScb5MmWkaQa4NA6ZngdiojIbxdxeKH LwQfBiWHf3EdJIwtmXKuglmcCccy/gNU/FCHZqLTuiYVwFy+iexWU/7ry3cxgpHoSTKj 2HetEZi373i9oSSFbGczWbg6t4NRJtFC8VcD9BkUPGJWs94k5lhNdp0yvnhP9IVtqLdh a57g== 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=a6PBqWje/GmbnRfV41hPKmzlIm8J6z2/ceCJPzrV6Es=; b=JmdV/bPlZEhw64WR11Mw71V2wq1uZ2/AqPknhSSsPLc3JjRvlJsy30ZWufgu1l+EET b15cYeqlas4zm4recSqWzcRhZwNCPJOqo+zT/aqQmQiCJ7hnqB/x2Y7YdKj3wAsgJyE9 VNRBJKjcWqPFBKtX5HjVJ7LNH0enFXyxlJsgTD7D83B95o4i4Sk88K+WXPTUe5ySrMbe W7DaFmGWs0dJqNlLvAzpvPRuTWzJA6YYTevgV2+oJm8AviZ/w65cQNcfeRQD5z91jg80 A9oVfmpKurWZCrd0MgWWgeH2KDPDmUXNvrmqEha25dmmrClgCjzC5KeMtvPN/xg7yRxf 8IGg== 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 g25si1021425otp.20.2020.02.19.04.33.11; Wed, 19 Feb 2020 04:33:24 -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 S1727103AbgBSMdG (ORCPT + 99 others); Wed, 19 Feb 2020 07:33:06 -0500 Received: from mx2.suse.de ([195.135.220.15]:47544 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbgBSMdF (ORCPT ); Wed, 19 Feb 2020 07:33:05 -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 347DFC08C; Wed, 19 Feb 2020 12:33:02 +0000 (UTC) Subject: Re: [PATCH bpf-next 0/6] bpftool: Allow to select sections and filter probes To: Alexei Starovoitov Cc: bpf , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Quentin Monnet , Jakub Kicinski , Network Development , LKML , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" References: <20200218190224.22508-1-mrostecki@opensuse.org> From: Michal Rostecki Autocrypt: addr=mrostecki@opensuse.org; keydata= mQINBF4whosBEADQd45MN9l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xalS3RJT7z4OsETAG7QT4yOlqOhP5uue3I6WnzaQPZU0Gp9+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: <06ae3070-0d35-df49-9310-d1fb7bfb3e67@opensuse.org> Date: Wed, 19 Feb 2020 13:33:01 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?