Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp740386rwi; Thu, 27 Oct 2022 07:06:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7hCcRV9vR67sTAqBU/O2EwfsDwp4Fer4si5XXgUuN3+/luCbu13tn3wUCUDEl0Wcj9pGsk X-Received: by 2002:a2e:a9a8:0:b0:26f:d9b4:9299 with SMTP id x40-20020a2ea9a8000000b0026fd9b49299mr19409796ljq.362.1666879602470; Thu, 27 Oct 2022 07:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666879602; cv=none; d=google.com; s=arc-20160816; b=LfPZkRhqzXXKtkNI/38BFZrhl3a5lrTcpcgXGs7NBJ41bK1w5OHNmq7V5jjDUtNMzf 9QTH8Rme/p+Jb88/+c2gBoTNKoHavQwqn6DJK4lHt5rlkLO1BJgsuk6jLXy60G8vhssb 23TpKAZe8ASLZDBeR/3JP9KElbsMXeFjoOG1yrQ3GpETATTNaFk9DmUt65vfRm8Da3hp ZB3S7JEA25AuUEpiDbflkIs58fJRYGCuPR8TYkO/Wq9CD/IUnUj2wR8dgnXHrMCQS9Hk Wlwo8UdqaPMa2MYkkXppc2djuEfVkU1v4bxSCC1wkqIsOjlinaWkYVp/mVFy0jgyxvlA 8cig== 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=1P/ZT24uaxYzbD1YOjeJ2LiaP1eXgSdjbYXH8tcMOK8=; b=mM4q1hGDn42V+pMVO34pLGTl+ia2BT9t5vVK8c57noLu7RghL6TgH3F0t6g5Rac6pb LkylNJ7rP0Mzp/WVtuddBJDB9WOevLzVvoY9LB+HC+nS615F2ErbFJVbeCjpbrf213jp sjHQ5wqrHIzi8v3u9Ry2zRrerJcvucK6MgSIGK1kVV91XCGVX7V3bhZnN00qXG/DJDhv UOAP2ki1UE+4p3ID/61LwzIfwBbZDkuEMyYto0TlWQqcT8Ha5jdv/S59CTMdn3eBGXMP 9MF2+KEPCvMbJxEn0l9sfsRKwRDmuPyLG4uqmi+3FWeTmehdCURsb/MHOSDYtfMWe1r0 LD3g== 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 s17-20020a170906bc5100b0079b40c09982si1030471ejv.340.2022.10.27.07.06.14; Thu, 27 Oct 2022 07:06:42 -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 S235913AbiJ0NYj (ORCPT + 99 others); Thu, 27 Oct 2022 09:24:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236004AbiJ0NYh (ORCPT ); Thu, 27 Oct 2022 09:24:37 -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 97D0CF599 for ; Thu, 27 Oct 2022 06:24:34 -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 83DF062312 for ; Thu, 27 Oct 2022 13:24:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 869C0C433C1; Thu, 27 Oct 2022 13:24:33 +0000 (UTC) Date: Thu, 27 Oct 2022 09:24:44 -0400 From: Steven Rostedt To: Song Shuai Cc: mingo@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ftrace: fix static function tracer not working Message-ID: <20221027092444.3702378c@gandalf.local.home> In-Reply-To: <20221027085343.2388485-1-suagrfillet@gmail.com> References: <20221027085343.2388485-1-suagrfillet@gmail.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=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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, 27 Oct 2022 16:53:43 +0800 Song Shuai wrote: > Setting kernel command line parameter ftrace=function shows > nothing on the kernel built with static ftrace. > > In static ftrace, ftrace_nodyn_init should be executed before > initializing tracers. While this commit `dbeafd0d6131` brings > the initialization of function tracer forward from core_initcall > where ftrace_nodyn_init still remains. > > This patch puts ftrace_nodyn_init and ftrace_init together and > makes function tracer works in static ftrace. Sorry but NACK. Static ftrace only exists for helping new architectures get dynamic ftrace working. It is not, and never will be, considered the end product. Really, I only keep it around as a stepping stone for full dynamic ftrace, otherwise I would have removed it along time ago. No generic code should ever be modified to satisfy static ftrace. Please get dynamic ftrace functional, as that could be used in production environments. -- Steve