diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-03-06 23:52:59 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-13 01:25:43 -0400 |
commit | ee08c6eccb7d1295516f7cf420fddf7b14e9146f (patch) | |
tree | ec6d209e47bb1a8910d16c1c8b4ea65959850689 /include/linux/ftrace.h | |
parent | 4c6ed8f496fe89ff81b3d6e617a531bedfb613e4 (diff) |
tracing/ftrace: syscall tracing infrastructure, basics
Provide basic callbacks to do syscall tracing.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
LKML-Reference: <1236401580-5758-2-git-send-email-fweisbec@gmail.com>
[ simplified it to a trace_printk() for now. ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index e1583f2639b0..c146c1021a29 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -503,4 +503,25 @@ static inline void trace_hw_branch_oops(void) {} | |||
503 | 503 | ||
504 | #endif /* CONFIG_HW_BRANCH_TRACER */ | 504 | #endif /* CONFIG_HW_BRANCH_TRACER */ |
505 | 505 | ||
506 | /* | ||
507 | * A syscall entry in the ftrace syscalls array. | ||
508 | * | ||
509 | * @syscall_nr: syscall number | ||
510 | */ | ||
511 | struct syscall_trace_entry { | ||
512 | int syscall_nr; | ||
513 | }; | ||
514 | |||
515 | #ifdef CONFIG_FTRACE_SYSCALLS | ||
516 | extern void start_ftrace_syscalls(void); | ||
517 | extern void stop_ftrace_syscalls(void); | ||
518 | extern void ftrace_syscall_enter(struct pt_regs *regs); | ||
519 | extern void ftrace_syscall_exit(struct pt_regs *regs); | ||
520 | #else | ||
521 | static inline void start_ftrace_syscalls(void) { } | ||
522 | static inline void stop_ftrace_syscalls(void) { } | ||
523 | static inline void ftrace_syscall_enter(struct pt_regs *regs) { } | ||
524 | static inline void ftrace_syscall_exit(struct pt_regs *regs) { } | ||
525 | #endif | ||
526 | |||
506 | #endif /* _LINUX_FTRACE_H */ | 527 | #endif /* _LINUX_FTRACE_H */ |