ysyx-workbench/nemu/include/ftrace.h
tracer-ysyx 5eb7785adf > compile NEMU
ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 17:50:37  up   4:56,  2 users,  load average: 0.87, 0.84, 0.60
2024-03-20 17:50:37 +08:00

18 lines
No EOL
304 B
C

#ifndef __FUNC_DEF_H__
#define __FUNC_DEF_H__
#include <common.h>
#ifdef CONFIG_FTRACE
typedef struct {
vaddr_t start;
vaddr_t len;
char * name;
} func_t;
extern func_t *func_table;
void ftrace_call(vaddr_t);
void ftrace_return(vaddr_t);
// const char *get_func_name(vaddr_t addr);
#endif
#endif