diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-03-22 04:17:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-03-22 04:17:57 -0400 |
commit | 6605f9ac69593d480324ba5fa05f64cfebf4db2f (patch) | |
tree | 4c64d89d04ad24911d0eca7f3feb0012e4014dae /include | |
parent | ad2a8e6078a16d3b61b530f1447110841c36ae56 (diff) | |
parent | 93d68e52295fb8b65ded6db49e32e63b6a203e0b (diff) |
Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/urgent
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace_event.h | 2 | ||||
-rw-r--r-- | include/linux/kernel.h | 15 | ||||
-rw-r--r-- | include/linux/ring_buffer.h | 3 |
3 files changed, 14 insertions, 6 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index dd478fc8f9f5..5f3f3be5af09 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -144,12 +144,14 @@ struct event_filter; | |||
144 | enum trace_reg { | 144 | enum trace_reg { |
145 | TRACE_REG_REGISTER, | 145 | TRACE_REG_REGISTER, |
146 | TRACE_REG_UNREGISTER, | 146 | TRACE_REG_UNREGISTER, |
147 | #ifdef CONFIG_PERF_EVENTS | ||
147 | TRACE_REG_PERF_REGISTER, | 148 | TRACE_REG_PERF_REGISTER, |
148 | TRACE_REG_PERF_UNREGISTER, | 149 | TRACE_REG_PERF_UNREGISTER, |
149 | TRACE_REG_PERF_OPEN, | 150 | TRACE_REG_PERF_OPEN, |
150 | TRACE_REG_PERF_CLOSE, | 151 | TRACE_REG_PERF_CLOSE, |
151 | TRACE_REG_PERF_ADD, | 152 | TRACE_REG_PERF_ADD, |
152 | TRACE_REG_PERF_DEL, | 153 | TRACE_REG_PERF_DEL, |
154 | #endif | ||
153 | }; | 155 | }; |
154 | 156 | ||
155 | struct ftrace_event_call; | 157 | struct ftrace_event_call; |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index d801acb5e680..5582c7985567 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -427,16 +427,10 @@ extern int __must_check hex2bin(u8 *dst, const char *src, size_t count); | |||
427 | * Most likely, you want to use tracing_on/tracing_off. | 427 | * Most likely, you want to use tracing_on/tracing_off. |
428 | */ | 428 | */ |
429 | #ifdef CONFIG_RING_BUFFER | 429 | #ifdef CONFIG_RING_BUFFER |
430 | void tracing_on(void); | ||
431 | void tracing_off(void); | ||
432 | /* trace_off_permanent stops recording with no way to bring it back */ | 430 | /* trace_off_permanent stops recording with no way to bring it back */ |
433 | void tracing_off_permanent(void); | 431 | void tracing_off_permanent(void); |
434 | int tracing_is_on(void); | ||
435 | #else | 432 | #else |
436 | static inline void tracing_on(void) { } | ||
437 | static inline void tracing_off(void) { } | ||
438 | static inline void tracing_off_permanent(void) { } | 433 | static inline void tracing_off_permanent(void) { } |
439 | static inline int tracing_is_on(void) { return 0; } | ||
440 | #endif | 434 | #endif |
441 | 435 | ||
442 | enum ftrace_dump_mode { | 436 | enum ftrace_dump_mode { |
@@ -446,6 +440,10 @@ enum ftrace_dump_mode { | |||
446 | }; | 440 | }; |
447 | 441 | ||
448 | #ifdef CONFIG_TRACING | 442 | #ifdef CONFIG_TRACING |
443 | void tracing_on(void); | ||
444 | void tracing_off(void); | ||
445 | int tracing_is_on(void); | ||
446 | |||
449 | extern void tracing_start(void); | 447 | extern void tracing_start(void); |
450 | extern void tracing_stop(void); | 448 | extern void tracing_stop(void); |
451 | extern void ftrace_off_permanent(void); | 449 | extern void ftrace_off_permanent(void); |
@@ -530,6 +528,11 @@ static inline void tracing_start(void) { } | |||
530 | static inline void tracing_stop(void) { } | 528 | static inline void tracing_stop(void) { } |
531 | static inline void ftrace_off_permanent(void) { } | 529 | static inline void ftrace_off_permanent(void) { } |
532 | static inline void trace_dump_stack(void) { } | 530 | static inline void trace_dump_stack(void) { } |
531 | |||
532 | static inline void tracing_on(void) { } | ||
533 | static inline void tracing_off(void) { } | ||
534 | static inline int tracing_is_on(void) { return 0; } | ||
535 | |||
533 | static inline int | 536 | static inline int |
534 | trace_printk(const char *fmt, ...) | 537 | trace_printk(const char *fmt, ...) |
535 | { | 538 | { |
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index 67be0376d8e3..7be2e88f23fd 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
@@ -151,6 +151,9 @@ int ring_buffer_empty_cpu(struct ring_buffer *buffer, int cpu); | |||
151 | 151 | ||
152 | void ring_buffer_record_disable(struct ring_buffer *buffer); | 152 | void ring_buffer_record_disable(struct ring_buffer *buffer); |
153 | void ring_buffer_record_enable(struct ring_buffer *buffer); | 153 | void ring_buffer_record_enable(struct ring_buffer *buffer); |
154 | void ring_buffer_record_off(struct ring_buffer *buffer); | ||
155 | void ring_buffer_record_on(struct ring_buffer *buffer); | ||
156 | int ring_buffer_record_is_on(struct ring_buffer *buffer); | ||
154 | void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu); | 157 | void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu); |
155 | void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu); | 158 | void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu); |
156 | 159 | ||