Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1818431rwd; Thu, 25 May 2023 19:31:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ZVYciM5B6RKG4Bmz0bILMiVpLjnh4orHw0zSVIqBslEhal+hlYsfit2EYHt2bNDXI+wpH X-Received: by 2002:a17:90a:1283:b0:256:2efc:270e with SMTP id g3-20020a17090a128300b002562efc270emr336739pja.5.1685068263346; Thu, 25 May 2023 19:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685068263; cv=none; d=google.com; s=arc-20160816; b=j3BgQFRq+vCeLx/WhMeWMoP0CbEQVUuoZM5OGvSCjMob59dGjbm2/bL+OkghoI7cgM ED2OCTpONmDL873Rms5O5CW3ReQVZgJqt1mJMR+DnkXFEklegAMJH0qlHkU8YbV0P9U3 y3m6ErjKIzJWn+jFIHada5ipXpRhKYAWE2kuSS3qNcwrk5zIonwNqw+fWU60ZCaabve3 A5/u7e6cB+WRA3AEj9K2UplE3szjCYYLTgAx0xU02ZrRVy7KBOaOugtbKy1dg6sFyTsG uBC2oHz37qIhzyncHENKXZbO1yl8V5rvV9vJbyIfwNEe7oAyNlXQtfsaMzczTHc9I3ZF ktng== 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=q2zZnLW6l8MopbjKuqLxBnbGe3EvuH3IF006ta8L9e0=; b=BR0RhhSXAHOlqZLg/tZCMiYUGzu04XeL12FKibUDstGcZtswsnxHR6R/XVLssj7nLU BBeOfmIRr5H9yrfBgdhPWOZc8RzVFdi9q0u+hsHv8I8EDl4dyu3L+ony9oGhLx+nLACJ +XMOTzv9O5RBbwZzN31fq3jDuXtqW6aqFv+5cHW68C3IeLW+hOPJkTxc4xbzGQ0b86zK mQNFS7AGhhoAdgdltnzVI0FHORiTNTLVxI1ec6yUtqeITYQJQCmaT4SUkUa/q+V44I/s QRKl1AIME0vDS5rteZX6GDsE+FMUOtuwGQzw/vNnBWfbM38xYRihJkARQFs+43KlwTWn w+Qw== 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 l7-20020a633e07000000b00530725b58a1si2664546pga.24.2023.05.25.19.30.51; Thu, 25 May 2023 19:31:03 -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 S232125AbjEZC24 (ORCPT + 99 others); Thu, 25 May 2023 22:28:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233494AbjEZC2y (ORCPT ); Thu, 25 May 2023 22:28:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B536E13D; Thu, 25 May 2023 19:28:52 -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 40E8A64C5C; Fri, 26 May 2023 02:28:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15528C433D2; Fri, 26 May 2023 02:28:47 +0000 (UTC) Date: Thu, 25 May 2023 22:28:44 -0400 From: Steven Rostedt To: Nadav Amit Cc: "Arnd Bergmann" , "Thomas Gleixner" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-um@lists.infradead.org, Linux-Arch , linux-mm@kvack.org, "Andy Lutomirski" , "Ingo Molnar" , "Dave Hansen" , "Borislav Petkov" , x86@kernel.org, Peter Zijlstra , Nadav Amit Subject: Re: [PATCH v2 2/3] compiler: inline does not imply notrace Message-ID: <20230525222844.6a0d84f8@rorschach.local.home> In-Reply-To: <20230525210040.3637-3-namit@vmware.com> References: <20230525210040.3637-1-namit@vmware.com> <20230525210040.3637-3-namit@vmware.com> 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=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,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, 25 May 2023 14:00:39 -0700 Nadav Amit wrote: > From: Nadav Amit > > Functions that are marked as "inline" are currently also not tracable. > This limits tracing functionality for many functions for no reason. > Apparently, this has been done for two reasons. > > First, as described in commit 5963e317b1e9d2a ("ftrace/x86: Do not > change stacks in DEBUG when calling lockdep"), it was intended to > prevent some functions that cannot be traced from being traced as these > functions were marked as inline (among others). > > Yet, this change has been done a decade ago, and according to Steven > Rostedt, ftrace should have improved and hopefully resolved nested > tracing issues by now. Arguably, if functions that should be traced - > for instance since they are used during tracing - still exist, they > should be marked as notrace explicitly. > > The second reason, which Steven raised, is that attaching "notrace" to > "inline" prevented tracing differences between different configs, which > caused various problem. This consideration is not very strong, and tying > "inline" and "notrace" does not seem very beneficial. The "inline" > keyword is just a hint, and many functions are currently not tracable > due to this reason. > > Disconnect "inline" from "notrace". FYI, I have a patch queued (still needs to go through testing) that already does this ;-) https://lore.kernel.org/all/20230502164102.1a51cdb4@gandalf.local.home/ -- Steve