diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-09 13:37:46 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-09 13:37:46 -0400 |
| commit | c2ea122cd7c4a094be71641f3961796398035513 (patch) | |
| tree | 7150db3e27a078c8a4183964a882bb15ba9f3f64 /include/linux | |
| parent | 17b2e9bf27d417bc186cc922b4d6d5eaa048f9d8 (diff) | |
| parent | 66bb74888eb4bef4ba7c87c931ecb7ecca3a240c (diff) | |
Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
tracing: consolidate documents
blktrace: pass the right pointer to kfree()
tracing/syscalls: use a dedicated file header
tracing: append a comma to INIT_FTRACE_GRAPH
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ftrace.h | 31 | ||||
| -rw-r--r-- | include/linux/syscalls.h | 2 |
2 files changed, 2 insertions, 31 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 */ |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 6470f74074af..dabe4ad89141 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
| @@ -65,7 +65,7 @@ struct old_linux_dirent; | |||
| 65 | #include <asm/signal.h> | 65 | #include <asm/signal.h> |
| 66 | #include <linux/quota.h> | 66 | #include <linux/quota.h> |
| 67 | #include <linux/key.h> | 67 | #include <linux/key.h> |
| 68 | #include <linux/ftrace.h> | 68 | #include <trace/syscall.h> |
| 69 | 69 | ||
| 70 | #define __SC_DECL1(t1, a1) t1 a1 | 70 | #define __SC_DECL1(t1, a1) t1 a1 |
| 71 | #define __SC_DECL2(t2, a2, ...) t2 a2, __SC_DECL1(__VA_ARGS__) | 71 | #define __SC_DECL2(t2, a2, ...) t2 a2, __SC_DECL1(__VA_ARGS__) |
