Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp910721rwb; Thu, 18 Aug 2022 14:43:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR7g9hXAK3BzJdXCDT8Ew44OWt/QcQ46PzikEEBSZoNN0KGCiOw8GsBE9CJob3ghUZpbRd6H X-Received: by 2002:a17:907:2c62:b0:730:d9b9:aabb with SMTP id ib2-20020a1709072c6200b00730d9b9aabbmr3002894ejc.84.1660859037241; Thu, 18 Aug 2022 14:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660859037; cv=none; d=google.com; s=arc-20160816; b=iJoxC264qmsl1zEE2OMINVqQIumchr6IA7lxM1YAMloMJs1fhFKBNLecxSparWfrW6 b9cddv8BZlDSETaBhyJ3dNY8ZZU9GNOnv1FHT679YzFUS+1Woag+Jd9ZywVAH+ow1VIW dZy8+A1G0lcpyXxyMjx4UYhtPGJXVYlaJYZ6onegAd30szUl9ZyiQhDMGNQjwf6iVeFA wzHnjNnT27M86UPlB9QlI/S2wBPcnsW07VPZvSiLg/PtpMdS23LfhLOWT7tzRcnVdoFm 5XoJiLAo78LFSxKDfEWZsPtbmCHrGaN/3R+XVGV/91G6xYOwClc8xXLOXL6LCNSiLuut r5HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=yMZwZwqr8Mmn3772Zxedy1RB0QaI5ikJ6LdVBJNMY+0=; b=JiET2RuMwitpKs+uf8+BwthkBpGwZy/FAvwSjJSCJQuAWUECLE4BqdBGJCjP9tIMV9 LlSEUMaa96VjXRIye0WGH4fDCZiKGlXWIognVGiJv68gi79M0z3BsvRHxv8OmCgNMuRM WJ0z/WGyNhOx6dOmh6YLDelPpHSJkgEvJ0Ba/DWRtkYGxR0n6StaoRXVS/HgqMe3Q8uH yfxHQcLzzBbGrcqVndYB45nLfhUnK2XcztQUtUN8hLCkBQgRYIRLOqht2OuD8xUXUG3u ZYTD6D7ZTntLe4XxxjyqxFjp94rmqg+hZihch4vL3ZuWVXSs50JOhk1pFXVJwaJr+o64 27Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a05640205c900b00445f6ff57bfsi1974640edx.335.2022.08.18.14.43.31; Thu, 18 Aug 2022 14:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347048AbiHRVO1 (ORCPT + 99 others); Thu, 18 Aug 2022 17:14:27 -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 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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