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 C73F6C32789 for ; Thu, 18 Aug 2022 21:11:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346666AbiHRVLW (ORCPT ); Thu, 18 Aug 2022 17:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346853AbiHRVKi (ORCPT ); Thu, 18 Aug 2022 17:10:38 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA2DD8E3C; Thu, 18 Aug 2022 14:05:38 -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 sin.source.kernel.org (Postfix) with ESMTPS id 615AACE22C3; Thu, 18 Aug 2022 21:05:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D025FC433D7; Thu, 18 Aug 2022 21:05:32 +0000 (UTC) Date: Thu, 18 Aug 2022 17:05:43 -0400 From: Steven Rostedt To: Alexei Starovoitov Cc: Jiri Olsa , Peter Zijlstra , 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 Subject: Re: [RFC] ftrace: Add support to keep some functions out of ftrace Message-ID: <20220818170543.2e361e7d@gandalf.local.home> In-Reply-To: References: <20220818165024.433f56fd@gandalf.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 Thu, 18 Aug 2022 14:00:21 -0700 Alexei Starovoitov wrote: > > #ifdef CONFIG_X86 > > # define NON_MCOUNT_PATCHABLE KEEP(*(__patchable_function_entries)) > > # define MCOUNT_PATCHABLE > > #else > > # define NON_MCOUNT_PATCHABLE > > # define MCOUNT_PATCHABLE KEEP(*(__patchable_function_entries)) > > #endif > > > > #define MCOUNT_REC() . = ALIGN(8); \ > > __start_mcount_loc = .; \ > > KEEP(*(__mcount_loc)) \ > > MCOUNT_PATCHABLE \ > > __stop_mcount_loc = .; \ > > NON_MCOUNT_PATCHABLE \ > > ... > > > > ?? > > That's what more or less Peter's patch is doing: Heh. > Here it is again for reference: > https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=8d075bdf11193f1d276bf19fa56b4b8dfe24df9e Thanks, I missed seeing this. -- Steve