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 CC5A1C25B0E for ; Mon, 15 Aug 2022 15:44:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231329AbiHOPox (ORCPT ); Mon, 15 Aug 2022 11:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbiHOPow (ORCPT ); Mon, 15 Aug 2022 11:44:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82C1A11C35; Mon, 15 Aug 2022 08:44:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3D744B80F2B; Mon, 15 Aug 2022 15:44:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BB5FC433D6; Mon, 15 Aug 2022 15:44:46 +0000 (UTC) Date: Mon, 15 Aug 2022 11:44:53 -0400 From: Steven Rostedt To: Alexei Starovoitov Cc: Peter Zijlstra , Jiri Olsa , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Ingo Molnar , bpf , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , LKML , Josh Poimboeuf , Linus Torvalds , Andrew Morton , Christoph Hellwig Subject: Re: [RFC] ftrace: Add support to keep some functions out of ftrace Message-ID: <20220815114453.08625089@gandalf.local.home> In-Reply-To: References: <20220813150252.5aa63650@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Mon, 15 Aug 2022 08:35:53 -0700 Alexei Starovoitov wrote: > > Then make it a notrace function with a nop5 in it. That isn't hard. > > That's exactly what we're trying to do. > Jiri's patch is one way to achieve that. > What is your suggestion? > Move it from C to asm ? > Make it naked function with explicit inline asm? > What else? The dispatcher is already in the kernel so it's too late to complain about it. Jiri's patch (with my extensions) will hopefully fix the breakage BPF did to ftrace. My ask now is to be more inclusive when doing anything that deals with modification of text, or other infrastructures. This "go it alone" approach really needs to stop. Linux is an open source project and collaboration is key. I know you don't care about others use cases (as you told me in that BPF meeting last year), but any maintainer in the Linux kernel must care about the use case of others or this will all fail. -- Steve