Message ID | 20221116082338.5145-1-zhangqing@loongson.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp23974wru; Wed, 16 Nov 2022 00:31:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf476+P8s/2xLQts0BGsTUHZCJ1gKGhXt85d5nkhJbMTbb1CAkQmKRabHgZ0MMGZjpCtyfq7 X-Received: by 2002:aa7:ccc2:0:b0:461:bff7:9783 with SMTP id y2-20020aa7ccc2000000b00461bff79783mr18493867edt.200.1668587465802; Wed, 16 Nov 2022 00:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668587465; cv=none; d=google.com; s=arc-20160816; b=Y6L2HVDFiJ2EeuD5Ce1zkG6hJ03gDTEmaExM/kP8FxSUPMKw26CrPQm0iA6l0ryjGn 7fUBEj+xR02XyLEGGnu4b6GDhTm60kYYciLrAVSIrUSV9/S/1nJ4gSO9P5gwbr4uy4uz q/Mg3DAqGcWFsWyF5ek4wQZFDGB8CAM6ba+HZmgGFx1PUHB9z6mPiGUhbByfaqqhBM5s Wr4Bxu87Zpv6bVae3XcF36HCaNRg9nMqvJBHPMoTMBJqhCrepE7esHPQAPWh0UOdm9rS HQmufWWMAfxpl7qhM+qq6AZIeuP5xmZK+vhp7zb7OdjDVFlGiIkORVCXFDeq7xhYNu84 4DuQ== 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 :message-id:date:subject:cc:to:from; bh=yey9/THnZuMQD9OgZ+dRPP5xkO19Yb96SAYiM2Vhzmk=; b=YUgYk266KBsSp89RvU/Rxa7CrlWgJy9RIlAxPw8QF6uE+UKw6HKD55axMofkwT3HNd LewH5HhJoxyxEB8Ll78t94pvkbS5fywo/bSKyPwifXO5uQVQfKRRm78VIRsBSR+nwbpH eS7FmQeS0dxyk1qCxM2JOqoy7xoaY7P1bOLVlHIVgVzWC4gsytRHjzm0w+Ufuf8eBRdN ZSE8UcyJL26khoWE8vn1LqZd0cHuZVImZhANsvEdj3etGUzTmFzRUU8VDKvbVHLh7Ut/ GYwIcVqYCGJT6uET1x7updcvsmpXbmKoe6Pe1p3uybExH+gQ7BycGXxKmS5K9PZV+B6g SeeA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a50c34e000000b0045acbc10e93si12288670edb.562.2022.11.16.00.30.40; Wed, 16 Nov 2022 00:31:05 -0800 (PST) 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 S238764AbiKPIZ7 (ORCPT <rfc822;maxim.cournoyer@gmail.com> + 99 others); Wed, 16 Nov 2022 03:25:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232625AbiKPIY6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 16 Nov 2022 03:24:58 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AD576300 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 00:23:40 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Axz7cLnnRj5LMHAA--.17686S3; Wed, 16 Nov 2022 16:23:39 +0800 (CST) Received: from localhost.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_1cKnnRjxqMUAA--.54947S2; Wed, 16 Nov 2022 16:23:38 +0800 (CST) From: Qing Zhang <zhangqing@loongson.cn> To: Huacai Chen <chenhuacai@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@redhat.com> Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH RESEND v8 0/9] LoongArch: Add ftrace support Date: Wed, 16 Nov 2022 16:23:29 +0800 Message-Id: <20221116082338.5145-1-zhangqing@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx_1cKnnRjxqMUAA--.54947S2 X-CM-SenderInfo: x2kd0wptlqwqxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXFyDuw4UKr1ruw17XF1UZFb_yoWrGFy8pr W3ZFn3Gr4UCFs3KwnxK34rurn5Ar1xGryag3W3JryrCr47Zr1UXw1ktrykXa45t393Gry0 qF1rWw42gF4qva7anT9S1TB71UUUUbUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bhxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAa w2AFwI0_JF0_Jw1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2 jsIE14v26r4UJVWxJr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I 0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCI bckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_Jr I_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v2 6r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj4 0_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr1j6F4UJwCI42IY6I8E87Iv6xkF7I0E14v26r4U JVWxJrUvcSsGvfC2KfnxnUUI43ZEXa7IU83Ef5UUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749619579448672157?= X-GMAIL-MSGID: =?utf-8?q?1749640770672390219?= |
Series |
LoongArch: Add ftrace support
|
|
Message
Qing Zhang
Nov. 16, 2022, 8:23 a.m. UTC
This patch series to support basic and dynamic ftrace. 1) -pg Use `-pg` makes stub like a child function `void _mcount(void *ra)`. Thus, it can be seen store RA and open stack before `call _mcount`. Find `open stack` at first, and then find `store RA`. 2) -fpatchable-function-entry=2 The compiler has inserted 2 NOPs before the regular function prologue. T series registers are available and safe because of LoongArch psABI. At runtime, replace nop with bl to enable ftrace call and replace bl with nop to disable ftrace call. The bl requires us to save the original RA value, so here it saves RA at t0. details are: | Compiled | Disabled | Enabled | +------------+------------------------+------------------------+ | nop | move t0, ra | move t0, ra | | nop | nop | bl ftrace_caller | | func_body | func_body | func_body | The RA value will be recovered by ftrace_regs_entry, and restored into RA before returning to the regular function prologue. When a function is not being traced, the move t0, ra is not harmful. performs a series of startup tests on ftrace and The test cases in selftests has passed on LoongArch. Changes in v2: - Remove patch "LoongArch: ftrace: Add CALLER_ADDRx macros" there are other better ways Suggested by Steve: - Add HAVE_DYNAMIC_FTRACE_WITH_ARGS support (6/10) Suggested by Jinyang: - Change addu16id to lu12iw and Adjust module_finalize return value (7/10) - Use the "jr" pseudo-instruction where applicable (1/10) - Use the "la.pcrel" instead of "la" (3/10) Changes in v3: Reported by Jeff: - Fix unwind state when option func_stack_trace (10/10) Changes in v4: - No comments. Just resend the series. - Rebased onto v6.0.0-rc4. Changes in v5: - Modify the indentation of Kconfig and small changes Changes in v6: Suggested by Huacai: - Adjusting the patch Sequence - renamed mcount-dyn.S for consistency Changes in v7: - delete redefinition Changes in v8: - remove useless macro judgment and modify the return location - move some code to Patch-3 Qing Zhang (9): LoongArch/ftrace: Add basic support LoongArch/ftrace: Add recordmcount support LoongArch/ftrace: Add dynamic function tracer support LoongArch/ftrace: Add dynamic function graph tracer support LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_REGS support LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_ARGS support LoongArch/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support LoongArch: modules/ftrace: Initialize PLT at load time LoongArch: Enable CONFIG_KALLSYMS_ALL and CONFIG_DEBUG_FS arch/loongarch/Kconfig | 7 + arch/loongarch/Makefile | 5 + arch/loongarch/configs/loongson3_defconfig | 2 + arch/loongarch/include/asm/ftrace.h | 59 +++++ arch/loongarch/include/asm/inst.h | 15 ++ arch/loongarch/include/asm/module.h | 5 +- arch/loongarch/include/asm/module.lds.h | 1 + arch/loongarch/include/asm/unwind.h | 3 +- arch/loongarch/kernel/Makefile | 13 + arch/loongarch/kernel/ftrace.c | 74 ++++++ arch/loongarch/kernel/ftrace_dyn.c | 264 +++++++++++++++++++++ arch/loongarch/kernel/inst.c | 127 ++++++++++ arch/loongarch/kernel/mcount.S | 94 ++++++++ arch/loongarch/kernel/mcount_dyn.S | 154 ++++++++++++ arch/loongarch/kernel/module-sections.c | 11 + arch/loongarch/kernel/module.c | 21 ++ arch/loongarch/kernel/unwind_guess.c | 4 +- arch/loongarch/kernel/unwind_prologue.c | 46 +++- scripts/recordmcount.c | 23 ++ 19 files changed, 918 insertions(+), 10 deletions(-) create mode 100644 arch/loongarch/include/asm/ftrace.h create mode 100644 arch/loongarch/kernel/ftrace.c create mode 100644 arch/loongarch/kernel/ftrace_dyn.c create mode 100644 arch/loongarch/kernel/mcount.S create mode 100644 arch/loongarch/kernel/mcount_dyn.S
Comments
Hi, Qing, I have applied this series to https://github.com/loongson/linux/commits/loongarch-next with some slight modifications, please test that branch to see if everything is correct. Huacai On Wed, Nov 16, 2022 at 4:23 PM Qing Zhang <zhangqing@loongson.cn> wrote: > > This patch series to support basic and dynamic ftrace. > > 1) -pg > Use `-pg` makes stub like a child function `void _mcount(void *ra)`. > Thus, it can be seen store RA and open stack before `call _mcount`. > Find `open stack` at first, and then find `store RA`. > > 2) -fpatchable-function-entry=2 > The compiler has inserted 2 NOPs before the regular function prologue. > T series registers are available and safe because of LoongArch psABI. > > At runtime, replace nop with bl to enable ftrace call and replace bl with > nop to disable ftrace call. The bl requires us to save the original RA value, > so here it saves RA at t0. > details are: > > | Compiled | Disabled | Enabled | > +------------+------------------------+------------------------+ > | nop | move t0, ra | move t0, ra | > | nop | nop | bl ftrace_caller | > | func_body | func_body | func_body | > > The RA value will be recovered by ftrace_regs_entry, and restored into RA > before returning to the regular function prologue. When a function is not > being traced, the move t0, ra is not harmful. > > performs a series of startup tests on ftrace and The test cases in selftests > has passed on LoongArch. > > Changes in v2: > - Remove patch "LoongArch: ftrace: Add CALLER_ADDRx macros" there are other > better ways > Suggested by Steve: > - Add HAVE_DYNAMIC_FTRACE_WITH_ARGS support (6/10) > Suggested by Jinyang: > - Change addu16id to lu12iw and Adjust module_finalize return value (7/10) > - Use the "jr" pseudo-instruction where applicable (1/10) > - Use the "la.pcrel" instead of "la" (3/10) > > Changes in v3: > Reported by Jeff: > - Fix unwind state when option func_stack_trace (10/10) > > Changes in v4: > - No comments. Just resend the series. > - Rebased onto v6.0.0-rc4. > > Changes in v5: > - Modify the indentation of Kconfig and small changes > > Changes in v6: > Suggested by Huacai: > - Adjusting the patch Sequence > - renamed mcount-dyn.S for consistency > > Changes in v7: > - delete redefinition > > Changes in v8: > - remove useless macro judgment and modify the return location > - move some code to Patch-3 > > Qing Zhang (9): > LoongArch/ftrace: Add basic support > LoongArch/ftrace: Add recordmcount support > LoongArch/ftrace: Add dynamic function tracer support > LoongArch/ftrace: Add dynamic function graph tracer support > LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_REGS support > LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_ARGS support > LoongArch/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support > LoongArch: modules/ftrace: Initialize PLT at load time > LoongArch: Enable CONFIG_KALLSYMS_ALL and CONFIG_DEBUG_FS > > arch/loongarch/Kconfig | 7 + > arch/loongarch/Makefile | 5 + > arch/loongarch/configs/loongson3_defconfig | 2 + > arch/loongarch/include/asm/ftrace.h | 59 +++++ > arch/loongarch/include/asm/inst.h | 15 ++ > arch/loongarch/include/asm/module.h | 5 +- > arch/loongarch/include/asm/module.lds.h | 1 + > arch/loongarch/include/asm/unwind.h | 3 +- > arch/loongarch/kernel/Makefile | 13 + > arch/loongarch/kernel/ftrace.c | 74 ++++++ > arch/loongarch/kernel/ftrace_dyn.c | 264 +++++++++++++++++++++ > arch/loongarch/kernel/inst.c | 127 ++++++++++ > arch/loongarch/kernel/mcount.S | 94 ++++++++ > arch/loongarch/kernel/mcount_dyn.S | 154 ++++++++++++ > arch/loongarch/kernel/module-sections.c | 11 + > arch/loongarch/kernel/module.c | 21 ++ > arch/loongarch/kernel/unwind_guess.c | 4 +- > arch/loongarch/kernel/unwind_prologue.c | 46 +++- > scripts/recordmcount.c | 23 ++ > 19 files changed, 918 insertions(+), 10 deletions(-) > create mode 100644 arch/loongarch/include/asm/ftrace.h > create mode 100644 arch/loongarch/kernel/ftrace.c > create mode 100644 arch/loongarch/kernel/ftrace_dyn.c > create mode 100644 arch/loongarch/kernel/mcount.S > create mode 100644 arch/loongarch/kernel/mcount_dyn.S > > -- > 2.36.0 > >
On Sat, Nov 19, 2022 at 1:21 PM Huacai Chen <chenhuacai@kernel.org> wrote: > > Hi, Qing, > > I have applied this series to > https://github.com/loongson/linux/commits/loongarch-next with some > slight modifications, please test that branch to see if everything is > correct. I found the call trace relative issue for the branch: https://github.com/loongson/linux/commits/loongarch-next test01: [root@loongarch tracing]# echo do_sys_openat2 > ./set_ftrace_filter [root@loongarch tracing]# echo 1 > ./options/func_stack_trace [root@loongarch tracing]# echo function > ./current_tracer [root@loongarch tracing]# cat ./trace # tracer: function # # entries-in-buffer/entries-written: 6/6 #P:1 # # _-----=> irqs-off/BH-disabled # / _----=> need-resched # | / _---=> hardirq/softirq # || / _--=> preempt-depth # ||| / _-=> migrate-disable # |||| / delay # TASK-PID CPU# ||||| TIMESTAMP FUNCTION # | | | ||||| | | sh-84 [000] ..... 37.784924: do_sys_openat2 <-sys_openat sh-84 [000] ..... 37.786382: <stack trace> => sys_openat => do_syscall => handle_syscall => 0 // abnormal output test02: [root@loongarch tracing]# echo do_sys_openat2:stacktrace > ./set_ftrace_filter [root@loongarch tracing]# cat ./trace # tracer: nop # # entries-in-buffer/entries-written: 3/3 #P:1 # # _-----=> irqs-off/BH-disabled # / _----=> need-resched # | / _---=> hardirq/softirq # || / _--=> preempt-depth # ||| / _-=> migrate-disable # |||| / delay # TASK-PID CPU# ||||| TIMESTAMP FUNCTION # | | | ||||| | | sh-84 [000] .n.2. 107.946986: <stack trace> => do_syscall => handle_syscall => 0xd9ad812ae sh-84 [000] ...2. 110.584354: <stack trace> => do_syscall => handle_syscall => 0xd9ad812ae // abnormal output test03: [root@loongarch tracing]# echo 1 > ./options/stacktrace [root@loongarch tracing]# echo 1 > ./events/sched/sched_switch/enable [root@loongarch tracing]# cat ./trace ... <idle>-0 [000] d..2. 27.981495: sched_switch: prev_comm=swapper/0 prev_pid=0 prev_prio=120 prev_state=R ==> next_comm=rcu_preempt next _pid=15 next_prio=120 <idle>-0 [000] d..2. 27.981508: <stack trace> => __schedule => schedule_idle => cpu_startup_entry => kernel_init => 0x0074706d // abnormal output > > Huacai > > On Wed, Nov 16, 2022 at 4:23 PM Qing Zhang <zhangqing@loongson.cn> wrote: > > > > This patch series to support basic and dynamic ftrace. > > > > 1) -pg > > Use `-pg` makes stub like a child function `void _mcount(void *ra)`. > > Thus, it can be seen store RA and open stack before `call _mcount`. > > Find `open stack` at first, and then find `store RA`. > > > > 2) -fpatchable-function-entry=2 > > The compiler has inserted 2 NOPs before the regular function prologue. > > T series registers are available and safe because of LoongArch psABI. > > > > At runtime, replace nop with bl to enable ftrace call and replace bl with > > nop to disable ftrace call. The bl requires us to save the original RA value, > > so here it saves RA at t0. > > details are: > > > > | Compiled | Disabled | Enabled | > > +------------+------------------------+------------------------+ > > | nop | move t0, ra | move t0, ra | > > | nop | nop | bl ftrace_caller | > > | func_body | func_body | func_body | > > > > The RA value will be recovered by ftrace_regs_entry, and restored into RA > > before returning to the regular function prologue. When a function is not > > being traced, the move t0, ra is not harmful. > > > > performs a series of startup tests on ftrace and The test cases in selftests > > has passed on LoongArch. > > > > Changes in v2: > > - Remove patch "LoongArch: ftrace: Add CALLER_ADDRx macros" there are other > > better ways > > Suggested by Steve: > > - Add HAVE_DYNAMIC_FTRACE_WITH_ARGS support (6/10) > > Suggested by Jinyang: > > - Change addu16id to lu12iw and Adjust module_finalize return value (7/10) > > - Use the "jr" pseudo-instruction where applicable (1/10) > > - Use the "la.pcrel" instead of "la" (3/10) > > > > Changes in v3: > > Reported by Jeff: > > - Fix unwind state when option func_stack_trace (10/10) > > > > Changes in v4: > > - No comments. Just resend the series. > > - Rebased onto v6.0.0-rc4. > > > > Changes in v5: > > - Modify the indentation of Kconfig and small changes > > > > Changes in v6: > > Suggested by Huacai: > > - Adjusting the patch Sequence > > - renamed mcount-dyn.S for consistency > > > > Changes in v7: > > - delete redefinition > > > > Changes in v8: > > - remove useless macro judgment and modify the return location > > - move some code to Patch-3 > > > > Qing Zhang (9): > > LoongArch/ftrace: Add basic support > > LoongArch/ftrace: Add recordmcount support > > LoongArch/ftrace: Add dynamic function tracer support > > LoongArch/ftrace: Add dynamic function graph tracer support > > LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_REGS support > > LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_ARGS support > > LoongArch/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support > > LoongArch: modules/ftrace: Initialize PLT at load time > > LoongArch: Enable CONFIG_KALLSYMS_ALL and CONFIG_DEBUG_FS > > > > arch/loongarch/Kconfig | 7 + > > arch/loongarch/Makefile | 5 + > > arch/loongarch/configs/loongson3_defconfig | 2 + > > arch/loongarch/include/asm/ftrace.h | 59 +++++ > > arch/loongarch/include/asm/inst.h | 15 ++ > > arch/loongarch/include/asm/module.h | 5 +- > > arch/loongarch/include/asm/module.lds.h | 1 + > > arch/loongarch/include/asm/unwind.h | 3 +- > > arch/loongarch/kernel/Makefile | 13 + > > arch/loongarch/kernel/ftrace.c | 74 ++++++ > > arch/loongarch/kernel/ftrace_dyn.c | 264 +++++++++++++++++++++ > > arch/loongarch/kernel/inst.c | 127 ++++++++++ > > arch/loongarch/kernel/mcount.S | 94 ++++++++ > > arch/loongarch/kernel/mcount_dyn.S | 154 ++++++++++++ > > arch/loongarch/kernel/module-sections.c | 11 + > > arch/loongarch/kernel/module.c | 21 ++ > > arch/loongarch/kernel/unwind_guess.c | 4 +- > > arch/loongarch/kernel/unwind_prologue.c | 46 +++- > > scripts/recordmcount.c | 23 ++ > > 19 files changed, 918 insertions(+), 10 deletions(-) > > create mode 100644 arch/loongarch/include/asm/ftrace.h > > create mode 100644 arch/loongarch/kernel/ftrace.c > > create mode 100644 arch/loongarch/kernel/ftrace_dyn.c > > create mode 100644 arch/loongarch/kernel/mcount.S > > create mode 100644 arch/loongarch/kernel/mcount_dyn.S > > > > -- > > 2.36.0 > > > >