Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp156417rwb; Fri, 19 Aug 2022 19:20:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR50QMJDipL53I7N+w0oGmzgM8sPxU+DDpOjRQtMIjulQZuDyGi2x6UiJOJxx7/Hm8HWezbH X-Received: by 2002:a05:6402:14d5:b0:446:22b8:8da1 with SMTP id f21-20020a05640214d500b0044622b88da1mr6565693edx.214.1660962054516; Fri, 19 Aug 2022 19:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660962054; cv=none; d=google.com; s=arc-20160816; b=UVaC9cCm3rhioaFRqzLwjxIOiKseUw5zVkS6aHuk7/2vqLTqpQUmSFQGGPHi+JRsIl n2FbUH7DQ0OxDx4f6uzp3X0jmQRyUxfaCYIUJ90+090j41dF+QN5/245v0lfbNW5a5va eggYbyKeXDMP2RxT39yHXeIRGr7Xpj4PvA9KKoI8lTC6c7vW5pLbw4QRNegZWQUEmKbL k+UAkLOnQRbiLSPFEf2RIKZa9w4cmowXdExi0sA09LpCQOBekCsXYzcY0oGy2ksl6vsW 5//RMF7ir+FId4trjQbu/NEXayQ4T303IjHmImeAbQG9N2RmGfRdtisgbKdLLOT4ZYIW opow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8iQAQ32qqDbHq5wsUf8jya/MYI4PvyumME5D7QFSNfA=; b=CfGh2KHp/B22+Lb4bBAE4lemkoldtBT3lXlgIBDuCPqliDhTIl5RK/stXj2CuuSL09 XDKnx9OkoP61aZDW5Tv1ArPkTu/j66FtpAGMSauVX1yfKScvHG6p6YdPVJJPKB+opHyE ywt9OmibL5l8wScfBokaja4tBGm2FyIl755+Wwhmh7c+7111lK3ymV+6WHkJGPEWwnFF XF6jgnxQ7ok4jc96vN6K5Y92e7V4Ddn+A2aQzxlhUGBqW4icFMX8vMnFZ8B6J6V5Vu3p itpf6aGSCUwc+jgVx1KOouI6MaxEQrpVtQBIaVbdfSqolUGL4w0Rg9xzfH33aOo3mIb8 saPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=keOAy5JR; 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 fb17-20020a1709073a1100b00726b8cf8debsi1516842ejc.869.2022.08.19.19.20.29; Fri, 19 Aug 2022 19:20:54 -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=keOAy5JR; 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 S236670AbiHTCRS (ORCPT + 99 others); Fri, 19 Aug 2022 22:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbiHTCRR (ORCPT ); Fri, 19 Aug 2022 22:17:17 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CE44105F3F; Fri, 19 Aug 2022 19:17:16 -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 E5479CE2834; Sat, 20 Aug 2022 02:17:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 100BFC433B5; Sat, 20 Aug 2022 02:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660961833; bh=8iQAQ32qqDbHq5wsUf8jya/MYI4PvyumME5D7QFSNfA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=keOAy5JRV+yERuRjcNQRuLTUi6VHNW8WpWfYftL8l5pGvcoDy5AlIl3KxDRXBwwap LwsVItIlzp2jtDZv+JHYixmc8ZJTiUv6lF8H5zpcvia5EYZ3lC4tPIneSEfJZvMmVF hXtm5MNia9uxl1dxbkHX6WmPYLHgraKn79dM0D01tQHlc18l4oK6qK7SPeH8lXmdjq v2vm+Euu84SqBALarEVKi4LSB5zHb5sKhhaEpW6JWhPh7zf89Q6y/d6aEsrfC4eQHg 0bx9pKDJi+9r4Fwc8e4lXJPz3Ovm8ZGfuJZUHGd1FL6tuvFgtwuVQI0do/Rm1RvMl8 DHaLqnWSUlZ1A== Received: by mail-vs1-f42.google.com with SMTP id l7so5878816vsc.0; Fri, 19 Aug 2022 19:17:12 -0700 (PDT) X-Gm-Message-State: ACgBeo08TaDEb7v5veGEkT5oIQO8Qx3ghURHlKZ8flt/FdYdgl89vGb5 J1Pjyfi5IFzKkyOaysTQanIWKUsjAXQtcNDDAiA= X-Received: by 2002:a67:d58b:0:b0:390:2574:6736 with SMTP id m11-20020a67d58b000000b0039025746736mr2100279vsj.78.1660961832041; Fri, 19 Aug 2022 19:17:12 -0700 (PDT) MIME-Version: 1.0 References: <20220819081403.7143-1-zhangqing@loongson.cn> <20220819081403.7143-2-zhangqing@loongson.cn> <20220819125343.1623d850@gandalf.local.home> <06575d5e-7451-17ca-b5a8-4153816b3808@loongson.cn> In-Reply-To: <06575d5e-7451-17ca-b5a8-4153816b3808@loongson.cn> From: Huacai Chen Date: Sat, 20 Aug 2022 10:16:59 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/9] LoongArch/ftrace: Add basic support To: Qing Zhang Cc: Steven Rostedt , Jinyang He , Ingo Molnar , WANG Xuerui , loongarch@lists.linux.dev, LKML , linux-arch , Jiaxun Yang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 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 Hi, all, On Sat, Aug 20, 2022 at 9:34 AM Qing Zhang wrote: > > > > On 2022/8/20 =E4=B8=8A=E5=8D=8812:53, Steven Rostedt wrote: > > On Fri, 19 Aug 2022 17:29:29 +0800 > > Jinyang He wrote: > > > >> It seems this patch adds non-dynamic ftrace, this code should not > >> appear here. > >> BTW is it really necessary for non-dynamic ftrace? I do not use it > >> directly and frequently, IMHO, non-dynamic can be completely > >> > >> replaced dynamic? > > > > Note, I keep the non dynamic ftrace around for debugging purposes. > > > > But sure, it's pretty useless. It's also good for bringing ftrace to a = new > > architecture (like this patch is doing), as it is easier to implement t= han > > dynamic ftrace, and getting the non-dynamic working is usually the firs= t > > step in getting dynamic ftrace working. > > > > But it's really up to the arch maintainers to keep it or not. > > > Before submitting, I saw that other architectures almost kept > non-dynamic methods without cleaning up, I tend to keep them. > How do you think, Huacai. :) I prefer to keep the non-dynamic method. Huacai > > Thanks, > - Qing > > -- Steve > > > >