aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-13 05:23:39 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-13 05:23:39 -0400
commit62a394eb77a1ddea73273f53ed8c3ccf6e04f2fb (patch)
treeee72d87524b29eb9457b45e02a4587d8fbd9191d /include
parentd2e82546ae98eee353fae57e389f487586fe380d (diff)
parent1b3fa2ce64363c289b3b14723cca7290bf91cfce (diff)
Merge branches 'tracing/ftrace' and 'tracing/syscalls'; commit 'v2.6.29-rc8' into tracing/core
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace.h21
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 */
511struct syscall_trace_entry {
512 int syscall_nr;
513};
514
515#ifdef CONFIG_FTRACE_SYSCALLS
516extern void start_ftrace_syscalls(void);
517extern void stop_ftrace_syscalls(void);
518extern void ftrace_syscall_enter(struct pt_regs *regs);
519extern void ftrace_syscall_exit(struct pt_regs *regs);
520#else
521static inline void start_ftrace_syscalls(void) { }
522static inline void stop_ftrace_syscalls(void) { }
523static inline void ftrace_syscall_enter(struct pt_regs *regs) { }
524static inline void ftrace_syscall_exit(struct pt_regs *regs) { }
525#endif
526
506#endif /* _LINUX_FTRACE_H */ 527#endif /* _LINUX_FTRACE_H */