diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-17 23:56:37 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-17 23:56:37 -0400 |
| commit | 1218259b2d09c79ed1113d3a6dbb9a1d6391f5cb (patch) | |
| tree | 8f07cd39f6a5f74f41d5be34bc0d843428f04082 /include | |
| parent | ca9a702e50287cf429f1c12832319a26a715e70b (diff) | |
| parent | 0efb4d20723d58edbad29d1ff98a86b631adb5e6 (diff) | |
Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (44 commits)
vsnprintf: remove duplicate comment of vsnprintf
softirq: add BLOCK_IOPOLL to softirq_to_name
oprofile: fix oprofile regression: select RING_BUFFER_ALLOW_SWAP
tracing: switch function prints from %pf to %ps
vsprintf: add %ps that is the same as %pS but is like %pf
tracing: Fix minor bugs for __unregister_ftrace_function_probe
tracing: remove notrace from __kprobes annotation
tracing: optimize global_trace_clock cachelines
MAINTAINERS: Update tracing tree details
ftrace: document function and function graph implementation
tracing: make testing syscall events a separate configuration
tracing: remove some unused macros
ftrace: add compile-time check on F_printk()
tracing: fix F_printk() typos
tracing: have TRACE_EVENT macro use __flags to not shadow parameter
tracing: add static to generated TRACE_EVENT functions
ring-buffer: typecast cmpxchg to fix PowerPC warning
tracing: add filter event logic to special, mmiotrace and boot tracers
tracing: remove trace_event_types.h
tracing: use the new trace_entries.h to create format files
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/vmlinux.lds.h | 5 | ||||
| -rw-r--r-- | include/linux/ftrace_event.h | 6 | ||||
| -rw-r--r-- | include/linux/kprobes.h | 4 | ||||
| -rw-r--r-- | include/trace/events/block.h | 4 | ||||
| -rw-r--r-- | include/trace/events/irq.h | 21 | ||||
| -rw-r--r-- | include/trace/ftrace.h | 8 |
6 files changed, 26 insertions, 22 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index a43223af98b6..29ca8f53ffbe 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -88,7 +88,8 @@ | |||
| 88 | #endif | 88 | #endif |
| 89 | 89 | ||
| 90 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | 90 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD |
| 91 | #define MCOUNT_REC() VMLINUX_SYMBOL(__start_mcount_loc) = .; \ | 91 | #define MCOUNT_REC() . = ALIGN(8); \ |
| 92 | VMLINUX_SYMBOL(__start_mcount_loc) = .; \ | ||
| 92 | *(__mcount_loc) \ | 93 | *(__mcount_loc) \ |
| 93 | VMLINUX_SYMBOL(__stop_mcount_loc) = .; | 94 | VMLINUX_SYMBOL(__stop_mcount_loc) = .; |
| 94 | #else | 95 | #else |
| @@ -328,7 +329,6 @@ | |||
| 328 | /* __*init sections */ \ | 329 | /* __*init sections */ \ |
| 329 | __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ | 330 | __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ |
| 330 | *(.ref.rodata) \ | 331 | *(.ref.rodata) \ |
| 331 | MCOUNT_REC() \ | ||
| 332 | DEV_KEEP(init.rodata) \ | 332 | DEV_KEEP(init.rodata) \ |
| 333 | DEV_KEEP(exit.rodata) \ | 333 | DEV_KEEP(exit.rodata) \ |
| 334 | CPU_KEEP(init.rodata) \ | 334 | CPU_KEEP(init.rodata) \ |
| @@ -452,6 +452,7 @@ | |||
| 452 | MEM_DISCARD(init.data) \ | 452 | MEM_DISCARD(init.data) \ |
| 453 | KERNEL_CTORS() \ | 453 | KERNEL_CTORS() \ |
| 454 | *(.init.rodata) \ | 454 | *(.init.rodata) \ |
| 455 | MCOUNT_REC() \ | ||
| 455 | DEV_DISCARD(init.rodata) \ | 456 | DEV_DISCARD(init.rodata) \ |
| 456 | CPU_DISCARD(init.rodata) \ | 457 | CPU_DISCARD(init.rodata) \ |
| 457 | MEM_DISCARD(init.rodata) | 458 | MEM_DISCARD(init.rodata) |
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 23f7179bf74e..bd099ba82ccc 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | #ifndef _LINUX_FTRACE_EVENT_H | 1 | #ifndef _LINUX_FTRACE_EVENT_H |
| 2 | #define _LINUX_FTRACE_EVENT_H | 2 | #define _LINUX_FTRACE_EVENT_H |
| 3 | 3 | ||
| 4 | #include <linux/trace_seq.h> | ||
| 5 | #include <linux/ring_buffer.h> | 4 | #include <linux/ring_buffer.h> |
| 5 | #include <linux/trace_seq.h> | ||
| 6 | #include <linux/percpu.h> | 6 | #include <linux/percpu.h> |
| 7 | 7 | ||
| 8 | struct trace_array; | 8 | struct trace_array; |
| @@ -34,7 +34,7 @@ struct trace_entry { | |||
| 34 | unsigned char flags; | 34 | unsigned char flags; |
| 35 | unsigned char preempt_count; | 35 | unsigned char preempt_count; |
| 36 | int pid; | 36 | int pid; |
| 37 | int tgid; | 37 | int lock_depth; |
| 38 | }; | 38 | }; |
| 39 | 39 | ||
| 40 | #define FTRACE_MAX_EVENT \ | 40 | #define FTRACE_MAX_EVENT \ |
| @@ -135,7 +135,7 @@ struct ftrace_event_call { | |||
| 135 | }; | 135 | }; |
| 136 | 136 | ||
| 137 | #define MAX_FILTER_PRED 32 | 137 | #define MAX_FILTER_PRED 32 |
| 138 | #define MAX_FILTER_STR_VAL 128 | 138 | #define MAX_FILTER_STR_VAL 256 /* Should handle KSYM_SYMBOL_LEN */ |
| 139 | 139 | ||
| 140 | extern void destroy_preds(struct ftrace_event_call *call); | 140 | extern void destroy_preds(struct ftrace_event_call *call); |
| 141 | extern int filter_match_preds(struct ftrace_event_call *call, void *rec); | 141 | extern int filter_match_preds(struct ftrace_event_call *call, void *rec); |
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index bcd9c07848be..3a46b7b7abb2 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h | |||
| @@ -48,13 +48,13 @@ | |||
| 48 | #define KPROBE_HIT_SSDONE 0x00000008 | 48 | #define KPROBE_HIT_SSDONE 0x00000008 |
| 49 | 49 | ||
| 50 | /* Attach to insert probes on any functions which should be ignored*/ | 50 | /* Attach to insert probes on any functions which should be ignored*/ |
| 51 | #define __kprobes __attribute__((__section__(".kprobes.text"))) notrace | 51 | #define __kprobes __attribute__((__section__(".kprobes.text"))) |
| 52 | #else /* CONFIG_KPROBES */ | 52 | #else /* CONFIG_KPROBES */ |
| 53 | typedef int kprobe_opcode_t; | 53 | typedef int kprobe_opcode_t; |
| 54 | struct arch_specific_insn { | 54 | struct arch_specific_insn { |
| 55 | int dummy; | 55 | int dummy; |
| 56 | }; | 56 | }; |
| 57 | #define __kprobes notrace | 57 | #define __kprobes |
| 58 | #endif /* CONFIG_KPROBES */ | 58 | #endif /* CONFIG_KPROBES */ |
| 59 | 59 | ||
| 60 | struct kprobe; | 60 | struct kprobe; |
diff --git a/include/trace/events/block.h b/include/trace/events/block.h index 9a74b468a229..d86af94691c2 100644 --- a/include/trace/events/block.h +++ b/include/trace/events/block.h | |||
| @@ -171,6 +171,7 @@ TRACE_EVENT(block_rq_complete, | |||
| 171 | (unsigned long long)__entry->sector, | 171 | (unsigned long long)__entry->sector, |
| 172 | __entry->nr_sector, __entry->errors) | 172 | __entry->nr_sector, __entry->errors) |
| 173 | ); | 173 | ); |
| 174 | |||
| 174 | TRACE_EVENT(block_bio_bounce, | 175 | TRACE_EVENT(block_bio_bounce, |
| 175 | 176 | ||
| 176 | TP_PROTO(struct request_queue *q, struct bio *bio), | 177 | TP_PROTO(struct request_queue *q, struct bio *bio), |
| @@ -186,7 +187,8 @@ TRACE_EVENT(block_bio_bounce, | |||
| 186 | ), | 187 | ), |
| 187 | 188 | ||
| 188 | TP_fast_assign( | 189 | TP_fast_assign( |
| 189 | __entry->dev = bio->bi_bdev->bd_dev; | 190 | __entry->dev = bio->bi_bdev ? |
| 191 | bio->bi_bdev->bd_dev : 0; | ||
| 190 | __entry->sector = bio->bi_sector; | 192 | __entry->sector = bio->bi_sector; |
| 191 | __entry->nr_sector = bio->bi_size >> 9; | 193 | __entry->nr_sector = bio->bi_size >> 9; |
| 192 | blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size); | 194 | blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size); |
diff --git a/include/trace/events/irq.h b/include/trace/events/irq.h index 1cb0c3aa11e6..b89f9db4a404 100644 --- a/include/trace/events/irq.h +++ b/include/trace/events/irq.h | |||
| @@ -8,16 +8,17 @@ | |||
| 8 | #include <linux/interrupt.h> | 8 | #include <linux/interrupt.h> |
| 9 | 9 | ||
| 10 | #define softirq_name(sirq) { sirq##_SOFTIRQ, #sirq } | 10 | #define softirq_name(sirq) { sirq##_SOFTIRQ, #sirq } |
| 11 | #define show_softirq_name(val) \ | 11 | #define show_softirq_name(val) \ |
| 12 | __print_symbolic(val, \ | 12 | __print_symbolic(val, \ |
| 13 | softirq_name(HI), \ | 13 | softirq_name(HI), \ |
| 14 | softirq_name(TIMER), \ | 14 | softirq_name(TIMER), \ |
| 15 | softirq_name(NET_TX), \ | 15 | softirq_name(NET_TX), \ |
| 16 | softirq_name(NET_RX), \ | 16 | softirq_name(NET_RX), \ |
| 17 | softirq_name(BLOCK), \ | 17 | softirq_name(BLOCK), \ |
| 18 | softirq_name(TASKLET), \ | 18 | softirq_name(BLOCK_IOPOLL), \ |
| 19 | softirq_name(SCHED), \ | 19 | softirq_name(TASKLET), \ |
| 20 | softirq_name(HRTIMER), \ | 20 | softirq_name(SCHED), \ |
| 21 | softirq_name(HRTIMER), \ | ||
| 21 | softirq_name(RCU)) | 22 | softirq_name(RCU)) |
| 22 | 23 | ||
| 23 | /** | 24 | /** |
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 308bafd93325..72a3b437b829 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
| @@ -239,9 +239,9 @@ ftrace_format_##call(struct ftrace_event_call *unused, \ | |||
| 239 | #undef __print_flags | 239 | #undef __print_flags |
| 240 | #define __print_flags(flag, delim, flag_array...) \ | 240 | #define __print_flags(flag, delim, flag_array...) \ |
| 241 | ({ \ | 241 | ({ \ |
| 242 | static const struct trace_print_flags flags[] = \ | 242 | static const struct trace_print_flags __flags[] = \ |
| 243 | { flag_array, { -1, NULL }}; \ | 243 | { flag_array, { -1, NULL }}; \ |
| 244 | ftrace_print_flags_seq(p, delim, flag, flags); \ | 244 | ftrace_print_flags_seq(p, delim, flag, __flags); \ |
| 245 | }) | 245 | }) |
| 246 | 246 | ||
| 247 | #undef __print_symbolic | 247 | #undef __print_symbolic |
| @@ -254,7 +254,7 @@ ftrace_format_##call(struct ftrace_event_call *unused, \ | |||
| 254 | 254 | ||
| 255 | #undef TRACE_EVENT | 255 | #undef TRACE_EVENT |
| 256 | #define TRACE_EVENT(call, proto, args, tstruct, assign, print) \ | 256 | #define TRACE_EVENT(call, proto, args, tstruct, assign, print) \ |
| 257 | enum print_line_t \ | 257 | static enum print_line_t \ |
| 258 | ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ | 258 | ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ |
