From b037d4897c89f50c1bd290a9fbf4bab6c691202c Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 13 Mar 2024 18:49:50 +0800 Subject: [PATCH] =?UTF-8?q?>=20compile=20NEMU=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.6.19=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Mar=20=201=2012:35:11=20UT?= =?UTF-8?q?C=202024=20x86=5F64=20GNU/Linux=20=2018:49:50=20=20up=20=20=208?= =?UTF-8?q?:25,=20=202=20users,=20=20load=20average:=200.86,=200.64,=200.5?= =?UTF-8?q?5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/Kconfig | 12 +++++++++++- nemu/src/utils/elf-parser.c | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 nemu/src/utils/elf-parser.c diff --git a/nemu/Kconfig b/nemu/Kconfig index 9243aba..ac674f8 100644 --- a/nemu/Kconfig +++ b/nemu/Kconfig @@ -159,7 +159,7 @@ config ITRACE_BUFFER config MTRACE depends on TRACE && TARGET_NATIVE_ELF && ENGINE_INTERPRETER bool "Enable memory tracer" - + default n config MTRACE_RANGE depends on MTRACE @@ -174,6 +174,16 @@ config MTRACE_RANGE_MAX int "Max range count in MTRACE_RANGE" default 10 +config FTRACE + depends on TRACE && TARGET_NATIVE_ELF && ENGINE_INTERPRETER + bool "Enable function tracer" + default y + +config FTRACE_LOG + depends on FTRACE + bool "Print log when entering a funciton" + default n + config DIFFTEST depends on TARGET_NATIVE_ELF bool "Enable differential testing" diff --git a/nemu/src/utils/elf-parser.c b/nemu/src/utils/elf-parser.c new file mode 100644 index 0000000..6b334b1 --- /dev/null +++ b/nemu/src/utils/elf-parser.c @@ -0,0 +1,4 @@ +#include + +#ifdef CONFIG_FTRACE +#endif