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