Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp757576ybv; Wed, 19 Feb 2020 08:38:20 -0800 (PST) X-Google-Smtp-Source: APXvYqx4xQmPVWpjPDTWigQrFwlDIEOvpxoEkkwi+eDibuB+P0Ph+pEBE1NVUZJKONdHvjtwA2Yk X-Received: by 2002:a9d:7509:: with SMTP id r9mr19350646otk.270.1582130300761; Wed, 19 Feb 2020 08:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582130300; cv=none; d=google.com; s=arc-20160816; b=gFPg04WC3MA8zgrZzcs6oRSo+bwfmuvT721vCO/2i1qHeXRl4KrPakfF/GFUK8XoOW kQVuz4Xnvy+s7c0l+SkN+f4witv3bOiSvGPUXtcVzCGb4RIng7SNXlNuvc7ZilFBt7Aq zKTcsCPuHRLIWGSngt/xVhx2mQJi31QwmtjT1GccjDHApqz7lHg/T1iFJ4L2dFSzFmxL +xGIyHOeKni+/rWejKL79zyV5cAEYymGG+pATTHjcfxGF/QSRImv2MBQxsuBuUkOXdjR iHMxmnBf5dIPT88MLooXf+fyMUAq7A/0MQiOYiDzxtEkoIyKUGfNehtcJzULCPyMaZCV Dkkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Iu8Su62Lx6G7NQ7VTXQB00i29wr5tuhT9NpagmWKkGs=; b=cPrU1VA5DQKatB7WHnSA5xfxBBoExqtWYemzlYrYadRsZXHP4a4kXihrzZqfk6H13h Y+8js/YjEYW5ya0pkOCAVM1cMa4IJ/I+V1VoccxWlZNivh4+RqlIqWxOLV6kf+u7r55p iPhnBOlWF+IjjQNI8KlRg4g+qcQNj9HFDoA91HDbAfmLjIt2IhUIwdlu/DUGabKUeDhh CXu8f3RFq3PuTpn7w/c7YcgUD/jhOTpy6dYvPHJhuhjw5Hx+w5HfGHUh0QlvzdaHqnXA 9EKX7ahouBhO4EVqP/LgUaLhmAypo9/i7IWjOvlgL3h23oCBUNnon0ZT4DLki7AnuokK uJyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rnCJByyi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si9235530oih.231.2020.02.19.08.38.08; Wed, 19 Feb 2020 08:38:20 -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=@gmail.com header.s=20161025 header.b=rnCJByyi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727298AbgBSQhk (ORCPT + 99 others); Wed, 19 Feb 2020 11:37:40 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:33055 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbgBSQhj (ORCPT ); Wed, 19 Feb 2020 11:37:39 -0500 Received: by mail-lf1-f66.google.com with SMTP id n25so652611lfl.0; Wed, 19 Feb 2020 08:37:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Iu8Su62Lx6G7NQ7VTXQB00i29wr5tuhT9NpagmWKkGs=; b=rnCJByyiPYNjDhjdfTZp5+OjAkMgvmj/vL+JE4lRnGBxTjAClFJyXErfVglS/EsHej Oqr/vzk62telFtUak6fnwIA0C7MrM0/M4ay8jT6k7KKJF5OGqUKaaxSKYG8JoJzaFygm xhX09nbLseabDhp7kDci5Nb5VXDi8MgKI4zQFsqGmCEyNnGVy8GY30xah450ETBlw16k ikX4kCQi7Fa8ZGHL9G1l7CnV6DfKtaF6Jil+wiG9udbu3zP6j3cZK908bgRkvQiKuisu UJL05LixhhyZBWzGptIP9iw7c8hU+XzPS+ZDXFXXaycvtMQlqwD7oJHh03eyl19WH555 pUUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Iu8Su62Lx6G7NQ7VTXQB00i29wr5tuhT9NpagmWKkGs=; b=YnxOX3zpluOnMh+8Ll44o1wwc6v3KX+eTlmfzLdnTKFmsc1yNZQEteXuB/vGTU5mwe aVNqWkSRVvvEfJR04fzbF3N94xVUMJHow+8KFtbs7yk9WgOmH+pzyFBEahfViEgxtlHO adeK0CP24ue1ZN54NZVhPUlLBCc1klsKTVTrOSO6hjGyUAO5/z/ac0kqMdg2YmXT4xAD JdUw5KdDKrvll2MCGpdb7sfzY+F1A6zhRQDWhHyEeNBGnOIGR+ozB46YzAGpjcHSHw4e mYi9nsHUwrR3ofTskdr7PhMrWMnCy/i6d5iQ5E58i1FC/QhI65n2rJCqzeb5/EVsZiik CZSA== X-Gm-Message-State: APjAAAXF5QhAdnWdEcBx6JL82KwsrwmizJQA4+AN2P+IdcRe0Tf8PAks Um9r/Pnqou/TDkoIduBejJPosVShVTSU46gM0l56cg== X-Received: by 2002:ac2:515b:: with SMTP id q27mr13400289lfd.119.1582130257014; Wed, 19 Feb 2020 08:37:37 -0800 (PST) MIME-Version: 1.0 References: <20200218190224.22508-1-mrostecki@opensuse.org> <06ae3070-0d35-df49-9310-d1fb7bfb3e67@opensuse.org> In-Reply-To: <06ae3070-0d35-df49-9310-d1fb7bfb3e67@opensuse.org> From: Alexei Starovoitov Date: Wed, 19 Feb 2020 08:37:25 -0800 Message-ID: Subject: Re: [PATCH bpf-next 0/6] bpftool: Allow to select sections and filter probes To: Michal Rostecki Cc: bpf , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Jakub Kicinski , Network Development , LKML , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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'