aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index c146c1021a29..6dc1c652447e 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -506,13 +506,21 @@ static inline void trace_hw_branch_oops(void) {}
506/* 506/*
507 * A syscall entry in the ftrace syscalls array. 507 * A syscall entry in the ftrace syscalls array.
508 * 508 *
509 * @syscall_nr: syscall number 509 * @name: name of the syscall
510 * @nb_args: number of parameters it takes
511 * @types: list of types as strings
512 * @args: list of args as strings (args[i] matches types[i])
510 */ 513 */
511struct syscall_trace_entry { 514struct syscall_metadata {
512 int syscall_nr; 515 const char *name;
516 int nb_args;
517 const char **types;
518 const char **args;
513}; 519};
514 520
515#ifdef CONFIG_FTRACE_SYSCALLS 521#ifdef CONFIG_FTRACE_SYSCALLS
522extern void arch_init_ftrace_syscalls(void);
523extern struct syscall_metadata *syscall_nr_to_meta(int nr);
516extern void start_ftrace_syscalls(void); 524extern void start_ftrace_syscalls(void);
517extern void stop_ftrace_syscalls(void); 525extern void stop_ftrace_syscalls(void);
518extern void ftrace_syscall_enter(struct pt_regs *regs); 526extern void ftrace_syscall_enter(struct pt_regs *regs);