From mboxrd@z Thu Jan 1 00:00:00 1970 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 0B3B0C4332F for ; Thu, 9 Nov 2023 16:11:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232267AbjKIQLF (ORCPT ); Thu, 9 Nov 2023 11:11:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjKIQLE (ORCPT ); Thu, 9 Nov 2023 11:11:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AA0730F9 for ; Thu, 9 Nov 2023 08:11:02 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA071C433C7; Thu, 9 Nov 2023 16:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699546261; bh=C7jR2LQ8Z/vOJmqohoUAFoWt6yaYYGfydMvsWCPU5Xc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DroV/pppoEy9af18cjZfiWHM5mA82YjI/c8VWbbVOrCvkb1pUPQqxzUpFTVbxPDj5 WMvVyGBbHB2E8u4q6tZRslFV1677Q8B7+Gp3bTDeX++w8xCBiI/cCM/Mr9D5KVqgNz vsJ4/k7xBZx2Sr4CZXDMaPEvQNW3e5LJkWluClpd0k/5zSaZuIjbRIhdinOU9lvjP+ wWtS/03iQNjKPOpkFjPYrUhebm7vnyVI3EbcNVvzA63Fv3c/Z9ozvOHRlCleBJckwm 4gV+lZEDID3DIRLqFssfWI6ffhsVvm4BTGaEcQI/Fot4m7rQ0luQPnAk/20/uUQ8fI Xxcq+sRbD7sqA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 0BECC40094; Thu, 9 Nov 2023 13:10:59 -0300 (-03) Date: Thu, 9 Nov 2023 13:10:58 -0300 From: Arnaldo Carvalho de Melo To: Song Liu Cc: Ian Rogers , Song Liu , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , Vincent Whitchurch , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , liuwenyu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v4 12/53] perf bpf: Don't synthesize BPF events when disabled Message-ID: References: <20231102175735.2272696-1-irogers@google.com> <20231102175735.2272696-13-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Nov 08, 2023 at 03:03:15PM -0800, Song Liu escreveu: > On Wed, Nov 8, 2023 at 8:15 AM Arnaldo Carvalho de Melo wrote: > > > > Em Thu, Nov 02, 2023 at 10:56:54AM -0700, Ian Rogers escreveu: > > > If BPF sideband events are disabled on the command line, don't > > > synthesize BPF events too. > > > > > > Interesting, in 71184c6ab7e60fd5 ("perf record: Replace option > > --bpf-event with --no-bpf-event") we checked that, but only down at > > perf_event__synthesize_one_bpf_prog(), where we have: > > > > if (!opts->no_bpf_event) { > > /* Synthesize PERF_RECORD_BPF_EVENT */ > > *bpf_event = (struct perf_record_bpf_event) > > > > > > So we better remove that, now redundant check? I'll apply your patch as > > is and then we can remove that other check. > > > > Song, can I have your Acked-by or Reviewed-by, please? > > > > - Arnaldo > > > > > Signed-off-by: Ian Rogers > > Good catch! > > Acked-by: Song Liu Thanks, applied the patch with your Acked-by, will revisit this after this gets published. - Arnaldo