Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1491922rwd; Wed, 31 May 2023 15:00:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76d9G2M2roGLzM7KJZSh1oiLxP0wuxZx3mTwwtN/9SSE9LswxvbpXxNEfq5Fzo0CA1IR3n X-Received: by 2002:a05:6a21:998c:b0:10c:37ed:3e88 with SMTP id ve12-20020a056a21998c00b0010c37ed3e88mr7685240pzb.23.1685570410050; Wed, 31 May 2023 15:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685570410; cv=none; d=google.com; s=arc-20160816; b=PjwikPyQESdtNdDuI4QkhJg0sy4HvCr6h9BXbEJmZ+S0qTrWInVu+pOXeoUg+J6SLD APXK+ZyTuY71LE3A0K5Kj9+7Ve+x3tKBkhYiAHrDYJJbPzeDk6geVtuUDHNfV9KHLjhC hkI00B84gxGFIvjnX8TWIEQ3Wm6SAosFDvqznQXX5UH9c7UN1pFabqa0/Gh4Szn6BGxd JgHHhEoIvKLOJLg97jdITHtVgJG66yfvTTvWJ/gVidWkQ96XOkrYqa7o8v7DkIgv3lK0 yoG7aNmC5bmQagOzDKDyuzjX46BE4yFOyD9b6vI2yywisQJZcI8w7WIzW8mOxHj4tQyR bLzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1OHaAT7d1nTVtuDjlZDLn8fUH+vJtLUMj0CVv64YDCw=; b=JlNym23lZNlk8oAVD54FQHrN6+KlCIolYK1HPQ5EAfX/KwI4A+wkp20X9Hhfvab/Ks PgC6iEh/rpjko1y44j/XQj6FqwK3FM0RdiZO4TzwKp/aeJZncRz3D2H1mCro/771tjBS VB1ETXkYJjsAdOgxZqFPiNhJPoX5oVJnsYQRZNl4RE/MLNX7CZKWhuE+vSDiHrGXpJ7t d5CwPqfEbh7BSy08qd5JMGOZ8Zjrjzgy6fVS7EM42CqNYCzSEiETaSHMGq4nparSaE7j tuUYHkG9B5LOP3Kg8coiXJ5wQorpaDvqQWPa3B9YWpUVOyqNGeHpVVoCsSbjpBCFv/H+ s7Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=smcGeboW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 126-20020a630084000000b00524eef9225bsi1684175pga.550.2023.05.31.14.59.31; Wed, 31 May 2023 15:00:10 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=smcGeboW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229842AbjEaVuU (ORCPT + 99 others); Wed, 31 May 2023 17:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjEaVuT (ORCPT ); Wed, 31 May 2023 17:50:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E873A0; Wed, 31 May 2023 14:50:18 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 1B21A63F71; Wed, 31 May 2023 21:50:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0004BC433D2; Wed, 31 May 2023 21:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685569817; bh=8S5pQOjcMMxdneL9UZGt2N8SWAwT3unke6T0NY8khZg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=smcGeboWJKtD+WCSPuWQbH2aJC6CaODIDT/k4aAmfCr77+jKwJrzHsHnhtFBpPF2L 2jAdn0M9z2XIKYul8utY1932KPpjw6iQ5SNG0spZ0oYOHh7EX8lbmihqRMl31YPuOk qkAMmsNuw1aJfFcvLKRWR4fEsyx6P0iOlK6bkg1QzjL5GFQk0uhn0MhzgRs0OWS/v9 9bsTlSZyJuS+FpeWAxRb8YezAmefnL0jeli9WGu/jhSq2xdBr6VppNjc1ALasiqbvS smIlYGh1vCKCS+5lrMs02SAxwsEEGVPh4jRAi58WaEAcsHmt1XTB4ZRbfRsHYYrQBv WpZwTCc37HpfQ== Date: Wed, 31 May 2023 14:50:15 -0700 From: Josh Poimboeuf To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Mark Rutland , Song Liu , live-patching@vger.kernel.org, Kees Cook , Miguel Ojeda , Nick Desaulniers , Ingo Molnar Subject: Re: [PATCH] ftrace: Allow inline functions not inlined to be traced Message-ID: <20230531215015.dxmkaouhdcat3hoe@treble> References: <20230502164102.1a51cdb4@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230502164102.1a51cdb4@gandalf.local.home> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Tue, May 02, 2023 at 04:41:02PM -0400, Steven Rostedt wrote: > Today, it is no longer a problem if an inlined function is not inlined and > is traced. Removing notrace from inline has been requested several times > over the years. I believe it is now safe to do so. > > Signed-off-by: Steven Rostedt (Google) > --- > include/linux/compiler_types.h | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h > index 547ea1ff806e..c8f23ba1c339 100644 > --- a/include/linux/compiler_types.h > +++ b/include/linux/compiler_types.h > @@ -182,9 +182,8 @@ struct ftrace_likely_data { > * externally visible function. This makes extern inline behave as per gnu89 > * semantics rather than c99. This prevents multiple symbol definition errors > * of extern inline functions at link time. > - * A lot of inline functions can cause havoc with function tracing. > */ > -#define inline inline __gnu_inline __inline_maybe_unused notrace > +#define inline inline __gnu_inline __inline_maybe_unused Yes!!! I've been wanting to do this for many years. This will help live patching a lot. Acked-by: Josh Poimboeuf -- Josh