2024-03-20 06:34:22 +00:00
|
|
|
#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;
|
|
|
|
|
2024-03-20 09:50:37 +00:00
|
|
|
extern func_t *func_table;
|
2024-03-20 10:47:11 +00:00
|
|
|
void ftrace_call(vaddr_t, vaddr_t);
|
|
|
|
void ftrace_return(vaddr_t, vaddr_t);
|
2024-03-20 09:50:37 +00:00
|
|
|
// const char *get_func_name(vaddr_t addr);
|
2024-03-20 06:34:22 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|