From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07033208BC for ; Thu, 9 Nov 2023 16:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DroV/ppp" 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> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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