diff options
| author | Ingo Molnar <mingo@kernel.org> | 2012-11-13 13:21:32 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2012-11-13 13:21:32 -0500 |
| commit | 84e53ff77cb1e005f49966cd6789109d84acc9e2 (patch) | |
| tree | 4d1426dc45c8af73e78279bd737eb1dd63909f11 /include/linux | |
| parent | ccf59d8da119ab03dcbdf95fb5e5adcef6ba51f2 (diff) | |
| parent | 7bcfaf54f591a0775254c4ea679faf615152ee3a (diff) | |
Merge branch 'tip/perf/core-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/core
Pull tracing updates from Steven Rostedt.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ftrace_event.h | 14 | ||||
| -rw-r--r-- | include/linux/kernel.h | 7 | ||||
| -rw-r--r-- | include/linux/ring_buffer.h | 3 |
3 files changed, 11 insertions, 13 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 642928cf57b..b80c8ddfbbd 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
| @@ -127,13 +127,13 @@ trace_current_buffer_lock_reserve(struct ring_buffer **current_buffer, | |||
| 127 | void trace_current_buffer_unlock_commit(struct ring_buffer *buffer, | 127 | void trace_current_buffer_unlock_commit(struct ring_buffer *buffer, |
| 128 | struct ring_buffer_event *event, | 128 | struct ring_buffer_event *event, |
| 129 | unsigned long flags, int pc); | 129 | unsigned long flags, int pc); |
| 130 | void trace_nowake_buffer_unlock_commit(struct ring_buffer *buffer, | 130 | void trace_buffer_unlock_commit(struct ring_buffer *buffer, |
| 131 | struct ring_buffer_event *event, | 131 | struct ring_buffer_event *event, |
| 132 | unsigned long flags, int pc); | 132 | unsigned long flags, int pc); |
| 133 | void trace_nowake_buffer_unlock_commit_regs(struct ring_buffer *buffer, | 133 | void trace_buffer_unlock_commit_regs(struct ring_buffer *buffer, |
| 134 | struct ring_buffer_event *event, | 134 | struct ring_buffer_event *event, |
| 135 | unsigned long flags, int pc, | 135 | unsigned long flags, int pc, |
| 136 | struct pt_regs *regs); | 136 | struct pt_regs *regs); |
| 137 | void trace_current_buffer_discard_commit(struct ring_buffer *buffer, | 137 | void trace_current_buffer_discard_commit(struct ring_buffer *buffer, |
| 138 | struct ring_buffer_event *event); | 138 | struct ring_buffer_event *event); |
| 139 | 139 | ||
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index a123b13b70f..7785d5df6d8 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -527,9 +527,6 @@ __ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap); | |||
| 527 | 527 | ||
| 528 | extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode); | 528 | extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode); |
| 529 | #else | 529 | #else |
| 530 | static inline __printf(1, 2) | ||
| 531 | int trace_printk(const char *fmt, ...); | ||
| 532 | |||
| 533 | static inline void tracing_start(void) { } | 530 | static inline void tracing_start(void) { } |
| 534 | static inline void tracing_stop(void) { } | 531 | static inline void tracing_stop(void) { } |
| 535 | static inline void ftrace_off_permanent(void) { } | 532 | static inline void ftrace_off_permanent(void) { } |
| @@ -539,8 +536,8 @@ static inline void tracing_on(void) { } | |||
| 539 | static inline void tracing_off(void) { } | 536 | static inline void tracing_off(void) { } |
| 540 | static inline int tracing_is_on(void) { return 0; } | 537 | static inline int tracing_is_on(void) { return 0; } |
| 541 | 538 | ||
| 542 | static inline int | 539 | static inline __printf(1, 2) |
| 543 | trace_printk(const char *fmt, ...) | 540 | int trace_printk(const char *fmt, ...) |
| 544 | { | 541 | { |
| 545 | return 0; | 542 | return 0; |
| 546 | } | 543 | } |
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index 6c8835f74f7..519777e3fa0 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
| @@ -159,13 +159,14 @@ int ring_buffer_record_is_on(struct ring_buffer *buffer); | |||
| 159 | void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu); | 159 | void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu); |
| 160 | void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu); | 160 | void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu); |
| 161 | 161 | ||
| 162 | unsigned long ring_buffer_oldest_event_ts(struct ring_buffer *buffer, int cpu); | 162 | u64 ring_buffer_oldest_event_ts(struct ring_buffer *buffer, int cpu); |
| 163 | unsigned long ring_buffer_bytes_cpu(struct ring_buffer *buffer, int cpu); | 163 | unsigned long ring_buffer_bytes_cpu(struct ring_buffer *buffer, int cpu); |
| 164 | unsigned long ring_buffer_entries(struct ring_buffer *buffer); | 164 | unsigned long ring_buffer_entries(struct ring_buffer *buffer); |
| 165 | unsigned long ring_buffer_overruns(struct ring_buffer *buffer); | 165 | unsigned long ring_buffer_overruns(struct ring_buffer *buffer); |
| 166 | unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu); | 166 | unsigned long ring_buffer_entries_cpu(struct ring_buffer *buffer, int cpu); |
| 167 | unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu); | 167 | unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu); |
| 168 | unsigned long ring_buffer_commit_overrun_cpu(struct ring_buffer *buffer, int cpu); | 168 | unsigned long ring_buffer_commit_overrun_cpu(struct ring_buffer *buffer, int cpu); |
| 169 | unsigned long ring_buffer_dropped_events_cpu(struct ring_buffer *buffer, int cpu); | ||
| 169 | 170 | ||
| 170 | u64 ring_buffer_time_stamp(struct ring_buffer *buffer, int cpu); | 171 | u64 ring_buffer_time_stamp(struct ring_buffer *buffer, int cpu); |
| 171 | void ring_buffer_normalize_time_stamp(struct ring_buffer *buffer, | 172 | void ring_buffer_normalize_time_stamp(struct ring_buffer *buffer, |
