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 64DCAC433EF for ; Tue, 17 May 2022 14:14:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348526AbiEQOOA (ORCPT ); Tue, 17 May 2022 10:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235171AbiEQON5 (ORCPT ); Tue, 17 May 2022 10:13:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 362B94F465; Tue, 17 May 2022 07:13:56 -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 CF833615E7; Tue, 17 May 2022 14:13:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E63AC385B8; Tue, 17 May 2022 14:13:52 +0000 (UTC) Date: Tue, 17 May 2022 10:13:51 -0400 From: Steven Rostedt To: Li kunyu Cc: mingo@redhat.com, linux@armlinux.org.uk, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, liqiong@nfschina.com Subject: Re: [PATCH] kernel: Ftrace seems to have functions to improve performance through optimization through optimization Message-ID: <20220517101351.273b385f@gandalf.local.home> In-Reply-To: <20220513021314.59480-1-kunyu@nfschina.com> References: <20220512110725.22e69e3c@gandalf.local.home> <20220513021314.59480-1-kunyu@nfschina.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 May 2022 10:13:14 +0800 Li kunyu wrote: > Subject: [PATCH] kernel: Ftrace seems to have functions to improve performance through optimization through optimization Did you forget to add a subject line. The above looks to be the beginning of the paragraph below. > Date: Fri, 13 May 2022 10:13:14 +0800 > Message-Id: <20220513021314.59480-1-kunyu@nfschina.com> > > such as ftrace_ARCH_code_*, return 0, so the FTRACE_* check is not required And even combined, the above makes no sense. This patch is not an optimization patch. If it were, the optimization provided is so small, it's not worth adding it. Just state that it's a clean up (I already told you this). Here, I'll do the work for you (but I expect a proper patch): Subject: [PATCH v2] ftrace: Remove return value of ftrace_arch_modify_*() All instances of the function ftrace_arch_modify_prepare() and ftrace_arch_modify_post_process() return zero. There's no point in checking their return value. Just have them be void functions. There, that's what I would like to see. -- Steve > > Signed-off-by: Li kunyu