Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp114176ybv; Tue, 18 Feb 2020 19:03:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxd5uHyHzFabmbh9mshrpa9bWndf5N/YTNr8Q3l/YIdGcgvbI4p5QsWKGbiIvyIk53QuUCq X-Received: by 2002:a05:6830:1bda:: with SMTP id v26mr17434303ota.314.1582081406180; Tue, 18 Feb 2020 19:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582081406; cv=none; d=google.com; s=arc-20160816; b=yMoV/MZTzd3xSCh+JFsc6VUkA0GqEnk0bCO1Rl/3b220ddfPB8ZTKTf9lPlomRQ7VU Gz0IcuT4jZyHrfnFECnvrcHThqYCkRCl8DBZK5iVTAscN5B4LW6UCZmS/q/WVPHAWg8k zGfjQmjQ9rKKQ94IueXW4pbJA/NjodzDES5R+8IT4yP3rrTcmY87ExVNgSiqlE12h7OG pfAtOFTC/vcXfs1vtDz+q5bOfVFv0+qCUGah81O3+sQFA5S5nIAo4inYYPBVXV2WWS5r 7YRugi/6gaw2Zvdyp4yFBbvEx7ZS32YIAsEH3SNX2kMy56tRmBoNQC1qGg0+HXUd0AmQ V8og== 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=7wV059MxZJL/ceXzJdSzbWhMkKat8X1C7CgUxvhC/Fs=; b=i8cDcyYlXul6v5av3NGerTUhF/iOI0R0iHDvpxII8ENjyeaAG59aJyeL5cX8xFfIsl nbdKv2Ib2XHhDvYy26lRp2rfY5ge5AWbOja6/EMTLkgh7SIMAqjXbxkUU6ih6AzXaA1P GI47gcLe1tQC4Bs6pXmPnaBONEmoZD7PuvpXEP/Ln+66vtXOgcx4V88WD9lX0LX4nJtm pbaB3rc4X3iFkmF3rwAVaUYYJsOnQRvZHBlfJa3mQIT52fFpAvecgE9N6cRL6cURlKa7 +GT2f08ED4H9twgqst9/dluZa3xDII3fVKftqNwNp+PoeQNGp3UpPczvWcaft4LkUTUq 6Lpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PKNhjIBs; 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 b15si565563ots.99.2020.02.18.19.03.13; Tue, 18 Feb 2020 19:03:26 -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=PKNhjIBs; 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 S1728327AbgBSDDF (ORCPT + 99 others); Tue, 18 Feb 2020 22:03:05 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42100 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728202AbgBSDDF (ORCPT ); Tue, 18 Feb 2020 22:03:05 -0500 Received: by mail-lj1-f196.google.com with SMTP id d10so25405036ljl.9; Tue, 18 Feb 2020 19:03:03 -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=7wV059MxZJL/ceXzJdSzbWhMkKat8X1C7CgUxvhC/Fs=; b=PKNhjIBs6bvXetw2vIHXvTsf3L5yW59GXkcSVok4M/uU2jBYLgZexysQZkbBtOlWAn hkSwVsB6durXBAeziSw5lmgLLR12XHSqrfQ5TqvMS66rdkUxRz1T6eXc11RynMpCK59n cJkvJOoodL9Enc6a/92XE2LAG8Vwuwi2f/bkfGx0d7CSYsbRajkcxoqdWqw3YGxT6Xsy le4BR7c0aEHEYSl2xelPy2iRFBEHWwsg6Vg3CWX+QYRgNcQMkjPTpc31ZNl5N+iRoXDL CWioCtrHVMHt3S1sq2sCCLlDRKSRNMBTgRTcUUM39p4Cjc8dkI54ZClZtkbvFiSHcz3F a6VA== 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=7wV059MxZJL/ceXzJdSzbWhMkKat8X1C7CgUxvhC/Fs=; b=d+NFftlbFSCL5r2AE0Y0FUpoQl6agmUvnrdbIJsSP2eztrnN69LDlVw/QzdGwQpm27 OtWphXRAaj1Iwb66ZpJApW4/fED58wd4Xnh1XWzUDfvOrKxcNAhuW6weXl6LjZtepN/f gjYtDXi2qEpSnUXytBLIESGMshj1/BvWOsZBBQ0SERdhMaDB9W/ewupVFe0YflLIEHSA BBJMUFUpn/RIYuTAJzb0dK2wPmePCw6TrQjNgNszFSAmuFhrgoiNmZcwUjQ1zDmP4FLM BblM58igcW8RZyTqlKkhW2liVn6rzA4QUY8OSDj01ZlAHxeHlN/EvHimDDMP0OiOJCOb dBYg== X-Gm-Message-State: APjAAAUazwtX+BFY8dVyjXF3049zDqPF3QYkC6qYNkCI3UQYe8AnK5fH YsH4VuGVMbe5aM01VITM0cOHmHEKQTGagC0Ijk1YGA== X-Received: by 2002:a2e:a404:: with SMTP id p4mr15029723ljn.234.1582081382464; Tue, 18 Feb 2020 19:03:02 -0800 (PST) MIME-Version: 1.0 References: <20200218190224.22508-1-mrostecki@opensuse.org> In-Reply-To: <20200218190224.22508-1-mrostecki@opensuse.org> From: Alexei Starovoitov Date: Tue, 18 Feb 2020 19:02:49 -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 , Quentin Monnet , 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 Tue, Feb 18, 2020 at 11:02 AM Michal Rostecki wrote: > > This patch series extend the "bpftool feature" subcommand with the > new positional arguments: > > - "section", which allows to select a specific section of probes (i.e. > "system_config", "program_types", "map_types"); > - "filter_in", which allows to select only probes which matches the > given regex pattern; > - "filter_out", which allows to filter out probes which do not match the > given regex pattern. > > The main motivation behind those changes is ability the fact that some > probes (for example those related to "trace" or "write_user" helpers) > emit dmesg messages which might be confusing for people who are running > on production environments. For details see the Cilium issue[0]. > > [0] https://github.com/cilium/cilium/issues/10048 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.