Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23263C678D5 for ; Tue, 7 Mar 2023 23:07:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbjCGXHC (ORCPT ); Tue, 7 Mar 2023 18:07:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjCGXG6 (ORCPT ); Tue, 7 Mar 2023 18:06:58 -0500 Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A417D8F72D; Tue, 7 Mar 2023 15:06:57 -0800 (PST) Received: by mail-yb1-f178.google.com with SMTP id i6so13020133ybu.8; Tue, 07 Mar 2023 15:06:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678230417; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Yfbgy4/53TVUheE3EKP7pKuvoMRFVrai8Lon5jzydys=; b=Eta0EtyF4eLVdLYsQxi7EBrC8gUdjrUAi3l6gHl3GgEsXS1sf1CCojuy3J1xPoXkNO iYYvLbbw4/su+2Vcg39RveNpkyN5evgT2wR3bieG3MpnMmQpt9EEIYFCr6tgGPrssXrl /lPRZaCGA/vYalTDKMS8AAD9q5E8Nz+cwXFbjUZ/3QwhXywKDukiaPbCLv3pdqMuUOoz UVPkZe7itm/aggrxxdn8BdgpXjbx+WvQM2Tf54AXzJeEpXPagCHq0AiNeEfIoYhMHV6c O580yNB4FYd4kIuyNyDlbG3NkBzPLkdubnB3fHSrHcELddwCMb4PXr+5a8WLjCu1I4tD mjXQ== X-Gm-Message-State: AO0yUKWaLuq9RSjHkaLB1+5OYBCApiB93dqaC2E2hnHkArgEQR9rCNqu rgHDIu2kzbZZcgaLy0sW96x/0AEPBSnnugXhTY4= X-Google-Smtp-Source: AK7set/y7HOGFf/imfe+d3JadToLv4g54mK9yDdHOSmuyKTaoW74P82ryDmTF9K3ZaAooAg406WVX0dFlpb32HDUcXI= X-Received: by 2002:a5b:647:0:b0:932:8dcd:3a13 with SMTP id o7-20020a5b0647000000b009328dcd3a13mr9729297ybq.5.1678230416706; Tue, 07 Mar 2023 15:06:56 -0800 (PST) MIME-Version: 1.0 References: <20230222230141.1729048-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Tue, 7 Mar 2023 15:06:45 -0800 Message-ID: Subject: Re: [RFC/PATCHSET 0/8] perf record: Implement BPF sample filter (v3) To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Ian Rogers , Adrian Hunter , Andi Kleen , Kan Liang , Song Liu , Stephane Eranian , Ravi Bangoria , Leo Yan , James Clark , Hao Luo , LKML , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiri, On Tue, Mar 7, 2023 at 2:34 PM Jiri Olsa wrote: > > On Wed, Feb 22, 2023 at 03:01:33PM -0800, Namhyung Kim wrote: > > Hello, > > > > There have been requests for more sophisticated perf event sample > > filtering based on the sample data. Recently the kernel added BPF > > programs can access perf sample data and this is the userspace part > > to enable such a filtering. > > > > This still has some rough edges and needs more improvements. But > > I'd like to share the current work and get some feedback for the > > directions and idea for further improvements. > > > > v3 changes) > > * fix build error on old kernels/vmlinux (Arnaldo) > > * move the logic to evlist__apply_filters (Jiri) > > * improve error message for bad input > > had same issue to compile it without BUILD_BPF_SKEL=1 as Adrian > reported, but with that fixed it looks good > > Acked-by: Jiri Olsa Great! Thanks for your review! Namhyung