aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-10 06:46:28 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-10 06:46:51 -0400
commit1cad1252ed279ea59f3f8d3d3a5817eeb2f7a4d3 (patch)
treeec5af7a70f58ad27ad21fc27815ca164ccf92c36 /include/linux/ftrace.h
parentdcef788eb9659b61a2110284fcce3ca6e63480d2 (diff)
parent93cfb3c9fd83d877a8f1ffad9ff862b617b32828 (diff)
Merge branch 'tracing/urgent' into tracing/core
Merge reason: pick up both v2.6.30-rc1 [which includes tracing/urgent fixes] and pick up the current lineup of tracing/urgent fixes as well Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h31
1 files changed, 1 insertions, 30 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 6aea54d2dd3e..53869bef6102 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
@@ -510,33 +510,4 @@ static inline void trace_hw_branch_oops(void) {}
510 510
511#endif /* CONFIG_HW_BRANCH_TRACER */ 511#endif /* CONFIG_HW_BRANCH_TRACER */
512 512
513/*
514 * A syscall entry in the ftrace syscalls array.
515 *
516 * @name: name of the syscall
517 * @nb_args: number of parameters it takes
518 * @types: list of types as strings
519 * @args: list of args as strings (args[i] matches types[i])
520 */
521struct syscall_metadata {
522 const char *name;
523 int nb_args;
524 const char **types;
525 const char **args;
526};
527
528#ifdef CONFIG_FTRACE_SYSCALLS
529extern void arch_init_ftrace_syscalls(void);
530extern struct syscall_metadata *syscall_nr_to_meta(int nr);
531extern void start_ftrace_syscalls(void);
532extern void stop_ftrace_syscalls(void);
533extern void ftrace_syscall_enter(struct pt_regs *regs);
534extern void ftrace_syscall_exit(struct pt_regs *regs);
535#else
536static inline void start_ftrace_syscalls(void) { }
537static inline void stop_ftrace_syscalls(void) { }
538static inline void ftrace_syscall_enter(struct pt_regs *regs) { }
539static inline void ftrace_syscall_exit(struct pt_regs *regs) { }
540#endif
541
542#endif /* _LINUX_FTRACE_H */ 513#endif /* _LINUX_FTRACE_H */