diff options
Diffstat (limited to 'include/linux/ftrace.h')
| -rw-r--r-- | include/linux/ftrace.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index da5405dce347..8a0c2f221e6b 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
| @@ -357,7 +357,7 @@ struct ftrace_graph_ret { | |||
| 357 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 357 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
| 358 | 358 | ||
| 359 | /* for init task */ | 359 | /* for init task */ |
| 360 | #define INIT_FTRACE_GRAPH .ret_stack = NULL | 360 | #define INIT_FTRACE_GRAPH .ret_stack = NULL, |
| 361 | 361 | ||
| 362 | /* | 362 | /* |
| 363 | * Stack of return addresses for functions | 363 | * Stack of return addresses for functions |
| @@ -511,33 +511,4 @@ static inline void trace_hw_branch_oops(void) {} | |||
| 511 | 511 | ||
| 512 | #endif /* CONFIG_HW_BRANCH_TRACER */ | 512 | #endif /* CONFIG_HW_BRANCH_TRACER */ |
| 513 | 513 | ||
| 514 | /* | ||
| 515 | * A syscall entry in the ftrace syscalls array. | ||
| 516 | * | ||
| 517 | * @name: name of the syscall | ||
| 518 | * @nb_args: number of parameters it takes | ||
| 519 | * @types: list of types as strings | ||
| 520 | * @args: list of args as strings (args[i] matches types[i]) | ||
| 521 | */ | ||
| 522 | struct syscall_metadata { | ||
| 523 | const char *name; | ||
| 524 | int nb_args; | ||
| 525 | const char **types; | ||
| 526 | const char **args; | ||
| 527 | }; | ||
| 528 | |||
| 529 | #ifdef CONFIG_FTRACE_SYSCALLS | ||
| 530 | extern void arch_init_ftrace_syscalls(void); | ||
| 531 | extern struct syscall_metadata *syscall_nr_to_meta(int nr); | ||
| 532 | extern void start_ftrace_syscalls(void); | ||
| 533 | extern void stop_ftrace_syscalls(void); | ||
| 534 | extern void ftrace_syscall_enter(struct pt_regs *regs); | ||
| 535 | extern void ftrace_syscall_exit(struct pt_regs *regs); | ||
| 536 | #else | ||
| 537 | static inline void start_ftrace_syscalls(void) { } | ||
| 538 | static inline void stop_ftrace_syscalls(void) { } | ||
| 539 | static inline void ftrace_syscall_enter(struct pt_regs *regs) { } | ||
| 540 | static inline void ftrace_syscall_exit(struct pt_regs *regs) { } | ||
| 541 | #endif | ||
| 542 | |||
| 543 | #endif /* _LINUX_FTRACE_H */ | 514 | #endif /* _LINUX_FTRACE_H */ |
