diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-05 18:30:21 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-05 18:30:21 -0500 |
| commit | c3fa27d1367fac63ac8533d6f20ea851d0d70a10 (patch) | |
| tree | e7731554085e22b6b63411b1ebb401079f3e0bbb /include/trace | |
| parent | 96fa2b508d2d3fe040cf4ef2fffb955f0a537ea1 (diff) | |
| parent | d103d01e4b19f185d3c85f77402b605534c32e89 (diff) | |
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (470 commits)
x86: Fix comments of register/stack access functions
perf tools: Replace %m with %a in sscanf
hw-breakpoints: Keep track of user disabled breakpoints
tracing/syscalls: Make syscall events print callbacks static
tracing: Add DEFINE_EVENT(), DEFINE_SINGLE_EVENT() support to docbook
perf: Don't free perf_mmap_data until work has been done
perf_event: Fix compile error
perf tools: Fix _GNU_SOURCE macro related strndup() build error
trace_syscalls: Remove unused syscall_name_to_nr()
trace_syscalls: Simplify syscall profile
trace_syscalls: Remove duplicate init_enter_##sname()
trace_syscalls: Add syscall_nr field to struct syscall_metadata
trace_syscalls: Remove enter_id exit_id
trace_syscalls: Set event_enter_##sname->data to its metadata
trace_syscalls: Remove unused event_syscall_enter and event_syscall_exit
perf_event: Initialize data.period in perf_swevent_hrtimer()
perf probe: Simplify event naming
perf probe: Add --list option for listing current probe events
perf probe: Add argv_split() from lib/argv_split.c
perf probe: Move probe event utility functions to probe-event.c
...
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/define_trace.h | 11 | ||||
| -rw-r--r-- | include/trace/events/bkl.h | 18 | ||||
| -rw-r--r-- | include/trace/events/block.h | 202 | ||||
| -rw-r--r-- | include/trace/events/ext4.h | 129 | ||||
| -rw-r--r-- | include/trace/events/irq.h | 52 | ||||
| -rw-r--r-- | include/trace/events/jbd2.h | 63 | ||||
| -rw-r--r-- | include/trace/events/kmem.h | 130 | ||||
| -rw-r--r-- | include/trace/events/lock.h (renamed from include/trace/events/lockdep.h) | 8 | ||||
| -rw-r--r-- | include/trace/events/mce.h | 69 | ||||
| -rw-r--r-- | include/trace/events/module.h | 22 | ||||
| -rw-r--r-- | include/trace/events/power.h | 38 | ||||
| -rw-r--r-- | include/trace/events/sched.h | 217 | ||||
| -rw-r--r-- | include/trace/events/signal.h | 173 | ||||
| -rw-r--r-- | include/trace/events/timer.h | 79 | ||||
| -rw-r--r-- | include/trace/events/workqueue.h | 22 | ||||
| -rw-r--r-- | include/trace/ftrace.h | 338 | ||||
| -rw-r--r-- | include/trace/syscall.h | 31 |
17 files changed, 832 insertions, 770 deletions
diff --git a/include/trace/define_trace.h b/include/trace/define_trace.h index 2a4b3bf74033..5acfb1eb4df9 100644 --- a/include/trace/define_trace.h +++ b/include/trace/define_trace.h | |||
| @@ -31,6 +31,14 @@ | |||
| 31 | assign, print, reg, unreg) \ | 31 | assign, print, reg, unreg) \ |
| 32 | DEFINE_TRACE_FN(name, reg, unreg) | 32 | DEFINE_TRACE_FN(name, reg, unreg) |
| 33 | 33 | ||
| 34 | #undef DEFINE_EVENT | ||
| 35 | #define DEFINE_EVENT(template, name, proto, args) \ | ||
| 36 | DEFINE_TRACE(name) | ||
| 37 | |||
| 38 | #undef DEFINE_EVENT_PRINT | ||
| 39 | #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ | ||
| 40 | DEFINE_TRACE(name) | ||
| 41 | |||
| 34 | #undef DECLARE_TRACE | 42 | #undef DECLARE_TRACE |
| 35 | #define DECLARE_TRACE(name, proto, args) \ | 43 | #define DECLARE_TRACE(name, proto, args) \ |
| 36 | DEFINE_TRACE(name) | 44 | DEFINE_TRACE(name) |
| @@ -63,6 +71,9 @@ | |||
| 63 | 71 | ||
| 64 | #undef TRACE_EVENT | 72 | #undef TRACE_EVENT |
| 65 | #undef TRACE_EVENT_FN | 73 | #undef TRACE_EVENT_FN |
| 74 | #undef DECLARE_EVENT_CLASS | ||
| 75 | #undef DEFINE_EVENT | ||
| 76 | #undef DEFINE_EVENT_PRINT | ||
| 66 | #undef TRACE_HEADER_MULTI_READ | 77 | #undef TRACE_HEADER_MULTI_READ |
| 67 | 78 | ||
| 68 | /* Only undef what we defined in this file */ | 79 | /* Only undef what we defined in this file */ |
diff --git a/include/trace/events/bkl.h b/include/trace/events/bkl.h index 8abd620a490e..1af72dc24278 100644 --- a/include/trace/events/bkl.h +++ b/include/trace/events/bkl.h | |||
| @@ -13,7 +13,7 @@ TRACE_EVENT(lock_kernel, | |||
| 13 | TP_ARGS(func, file, line), | 13 | TP_ARGS(func, file, line), |
| 14 | 14 | ||
| 15 | TP_STRUCT__entry( | 15 | TP_STRUCT__entry( |
| 16 | __field( int, lock_depth ) | 16 | __field( int, depth ) |
| 17 | __field_ext( const char *, func, FILTER_PTR_STRING ) | 17 | __field_ext( const char *, func, FILTER_PTR_STRING ) |
| 18 | __field_ext( const char *, file, FILTER_PTR_STRING ) | 18 | __field_ext( const char *, file, FILTER_PTR_STRING ) |
| 19 | __field( int, line ) | 19 | __field( int, line ) |
| @@ -21,13 +21,13 @@ TRACE_EVENT(lock_kernel, | |||
| 21 | 21 | ||
| 22 | TP_fast_assign( | 22 | TP_fast_assign( |
| 23 | /* We want to record the lock_depth after lock is acquired */ | 23 | /* We want to record the lock_depth after lock is acquired */ |
| 24 | __entry->lock_depth = current->lock_depth + 1; | 24 | __entry->depth = current->lock_depth + 1; |
| 25 | __entry->func = func; | 25 | __entry->func = func; |
| 26 | __entry->file = file; | 26 | __entry->file = file; |
| 27 | __entry->line = line; | 27 | __entry->line = line; |
| 28 | ), | 28 | ), |
| 29 | 29 | ||
| 30 | TP_printk("depth: %d, %s:%d %s()", __entry->lock_depth, | 30 | TP_printk("depth=%d file:line=%s:%d func=%s()", __entry->depth, |
| 31 | __entry->file, __entry->line, __entry->func) | 31 | __entry->file, __entry->line, __entry->func) |
| 32 | ); | 32 | ); |
| 33 | 33 | ||
| @@ -38,20 +38,20 @@ TRACE_EVENT(unlock_kernel, | |||
| 38 | TP_ARGS(func, file, line), | 38 | TP_ARGS(func, file, line), |
| 39 | 39 | ||
| 40 | TP_STRUCT__entry( | 40 | TP_STRUCT__entry( |
| 41 | __field(int, lock_depth) | 41 | __field(int, depth ) |
| 42 | __field(const char *, func) | 42 | __field(const char *, func ) |
| 43 | __field(const char *, file) | 43 | __field(const char *, file ) |
| 44 | __field(int, line) | 44 | __field(int, line ) |
| 45 | ), | 45 | ), |
| 46 | 46 | ||
| 47 | TP_fast_assign( | 47 | TP_fast_assign( |
| 48 | __entry->lock_depth = current->lock_depth; | 48 | __entry->depth = current->lock_depth; |
| 49 | __entry->func = func; | 49 | __entry->func = func; |
| 50 | __entry->file = file; | 50 | __entry->file = file; |
| 51 | __entry->line = line; | 51 | __entry->line = line; |
| 52 | ), | 52 | ), |
| 53 | 53 | ||
| 54 | TP_printk("depth: %d, %s:%d %s()", __entry->lock_depth, | 54 | TP_printk("depth=%d file:line=%s:%d func=%s()", __entry->depth, |
| 55 | __entry->file, __entry->line, __entry->func) | 55 | __entry->file, __entry->line, __entry->func) |
| 56 | ); | 56 | ); |
| 57 | 57 | ||
diff --git a/include/trace/events/block.h b/include/trace/events/block.h index 00405b5f624a..5fb72733331e 100644 --- a/include/trace/events/block.h +++ b/include/trace/events/block.h | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #include <linux/blkdev.h> | 8 | #include <linux/blkdev.h> |
| 9 | #include <linux/tracepoint.h> | 9 | #include <linux/tracepoint.h> |
| 10 | 10 | ||
| 11 | TRACE_EVENT(block_rq_abort, | 11 | DECLARE_EVENT_CLASS(block_rq_with_error, |
| 12 | 12 | ||
| 13 | TP_PROTO(struct request_queue *q, struct request *rq), | 13 | TP_PROTO(struct request_queue *q, struct request *rq), |
| 14 | 14 | ||
| @@ -40,41 +40,28 @@ TRACE_EVENT(block_rq_abort, | |||
| 40 | __entry->nr_sector, __entry->errors) | 40 | __entry->nr_sector, __entry->errors) |
| 41 | ); | 41 | ); |
| 42 | 42 | ||
| 43 | TRACE_EVENT(block_rq_insert, | 43 | DEFINE_EVENT(block_rq_with_error, block_rq_abort, |
| 44 | 44 | ||
| 45 | TP_PROTO(struct request_queue *q, struct request *rq), | 45 | TP_PROTO(struct request_queue *q, struct request *rq), |
| 46 | 46 | ||
| 47 | TP_ARGS(q, rq), | 47 | TP_ARGS(q, rq) |
| 48 | ); | ||
| 48 | 49 | ||
| 49 | TP_STRUCT__entry( | 50 | DEFINE_EVENT(block_rq_with_error, block_rq_requeue, |
| 50 | __field( dev_t, dev ) | ||
| 51 | __field( sector_t, sector ) | ||
| 52 | __field( unsigned int, nr_sector ) | ||
| 53 | __field( unsigned int, bytes ) | ||
| 54 | __array( char, rwbs, 6 ) | ||
| 55 | __array( char, comm, TASK_COMM_LEN ) | ||
| 56 | __dynamic_array( char, cmd, blk_cmd_buf_len(rq) ) | ||
| 57 | ), | ||
| 58 | 51 | ||
| 59 | TP_fast_assign( | 52 | TP_PROTO(struct request_queue *q, struct request *rq), |
| 60 | __entry->dev = rq->rq_disk ? disk_devt(rq->rq_disk) : 0; | ||
| 61 | __entry->sector = blk_pc_request(rq) ? 0 : blk_rq_pos(rq); | ||
| 62 | __entry->nr_sector = blk_pc_request(rq) ? 0 : blk_rq_sectors(rq); | ||
| 63 | __entry->bytes = blk_pc_request(rq) ? blk_rq_bytes(rq) : 0; | ||
| 64 | 53 | ||
| 65 | blk_fill_rwbs_rq(__entry->rwbs, rq); | 54 | TP_ARGS(q, rq) |
| 66 | blk_dump_cmd(__get_str(cmd), rq); | 55 | ); |
| 67 | memcpy(__entry->comm, current->comm, TASK_COMM_LEN); | ||
| 68 | ), | ||
| 69 | 56 | ||
| 70 | TP_printk("%d,%d %s %u (%s) %llu + %u [%s]", | 57 | DEFINE_EVENT(block_rq_with_error, block_rq_complete, |
| 71 | MAJOR(__entry->dev), MINOR(__entry->dev), | 58 | |
| 72 | __entry->rwbs, __entry->bytes, __get_str(cmd), | 59 | TP_PROTO(struct request_queue *q, struct request *rq), |
