diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-09 15:47:18 -0400 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-10 00:35:04 -0400 |
commit | 2939b0469d04ba9ac791aca9a81625d7eb50662b (patch) | |
tree | 573f10c39f34c670fdc6832415642738c5afb3f9 /include/trace | |
parent | 156b5f172a64103bcb13b6d26288388b9019caa3 (diff) |
tracing: replace TP<var> with TP_<var>
Impact: clean up
The macros TPPROTO, TPARGS, TPFMT, TPRAWFMT, and TPCMD all look a bit
ugly. This patch adds an underscore to their names.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/block.h | 70 | ||||
-rw-r--r-- | include/trace/irq_event_types.h | 16 | ||||
-rw-r--r-- | include/trace/lockdep_event_types.h | 24 | ||||
-rw-r--r-- | include/trace/power.h | 12 | ||||
-rw-r--r-- | include/trace/sched_event_types.h | 98 | ||||
-rw-r--r-- | include/trace/workqueue.h | 16 |
6 files changed, 118 insertions, 118 deletions
diff --git a/include/trace/block.h b/include/trace/block.h index 25c6a1fd5b77..25b7068b819e 100644 --- a/include/trace/block.h +++ b/include/trace/block.h | |||
@@ -5,72 +5,72 @@ | |||
5 | #include <linux/tracepoint.h> | 5 | #include <linux/tracepoint.h> |
6 | 6 | ||
7 | DECLARE_TRACE(block_rq_abort, | 7 | DECLARE_TRACE(block_rq_abort, |
8 | TPPROTO(struct request_queue *q, struct request *rq), | 8 | TP_PROTO(struct request_queue *q, struct request *rq), |
9 | TPARGS(q, rq)); | 9 | TP_ARGS(q, rq)); |
10 | 10 | ||
11 | DECLARE_TRACE(block_rq_insert, | 11 | DECLARE_TRACE(block_rq_insert, |
12 | TPPROTO(struct request_queue *q, struct request *rq), | 12 | TP_PROTO(struct request_queue *q, struct request *rq), |
13 | TPARGS(q, rq)); | 13 | TP_ARGS(q, rq)); |
14 | 14 | ||
15 | DECLARE_TRACE(block_rq_issue, | 15 | DECLARE_TRACE(block_rq_issue, |
16 | TPPROTO(struct request_queue *q, struct request *rq), | 16 | TP_PROTO(struct request_queue *q, struct request *rq), |
17 | TPARGS(q, rq)); | 17 | TP_ARGS(q, rq)); |
18 | 18 | ||
19 | DECLARE_TRACE(block_rq_requeue, | 19 | DECLARE_TRACE(block_rq_requeue, |
20 | TPPROTO(struct request_queue *q, struct request *rq), | 20 | TP_PROTO(struct request_queue *q, struct request *rq), |
21 | TPARGS(q, rq)); | 21 | TP_ARGS(q, rq)); |
22 | 22 | ||
23 | DECLARE_TRACE(block_rq_complete, | 23 | DECLARE_TRACE(block_rq_complete, |
24 | TPPROTO(struct request_queue *q, struct request *rq), | 24 | TP_PROTO(struct request_queue *q, struct request *rq), |
25 | TPARGS(q, rq)); | 25 | TP_ARGS(q, rq)); |
26 | 26 | ||
27 | DECLARE_TRACE(block_bio_bounce, | 27 | DECLARE_TRACE(block_bio_bounce, |
28 | TPPROTO(struct request_queue *q, struct bio *bio), | 28 | TP_PROTO(struct request_queue *q, struct bio *bio), |
29 | TPARGS(q, bio)); | 29 | TP_ARGS(q, bio)); |
30 | 30 | ||
31 | DECLARE_TRACE(block_bio_complete, | 31 | DECLARE_TRACE(block_bio_complete, |
32 | TPPROTO(struct request_queue *q, struct bio *bio), | 32 | TP_PROTO(struct request_queue *q, struct bio *bio), |
33 | TPARGS(q, bio)); | 33 | TP_ARGS(q, bio)); |
34 | 34 | ||
35 | DECLARE_TRACE(block_bio_backmerge, | 35 | DECLARE_TRACE(block_bio_backmerge, |
36 | TPPROTO(struct request_queue *q, struct bio *bio), | 36 | TP_PROTO(struct request_queue *q, struct bio *bio), |
37 | TPARGS(q, bio)); | 37 | TP_ARGS(q, bio)); |
38 | 38 | ||
39 | DECLARE_TRACE(block_bio_frontmerge, | 39 | DECLARE_TRACE(block_bio_frontmerge, |
40 | TPPROTO(struct request_queue *q, struct bio *bio), | 40 | TP_PROTO(struct request_queue *q, struct bio *bio), |
41 | TPARGS(q, bio)); | 41 | TP_ARGS(q, bio)); |
42 | 42 | ||
43 | DECLARE_TRACE(block_bio_queue, | 43 | DECLARE_TRACE(block_bio_queue, |
44 | TPPROTO(struct request_queue *q, struct bio *bio), | 44 | TP_PROTO(struct request_queue *q, struct bio *bio), |
45 | TPARGS(q, bio)); | 45 | TP_ARGS(q, bio)); |
46 | 46 | ||
47 | DECLARE_TRACE(block_getrq, | 47 | DECLARE_TRACE(block_getrq, |
48 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), | 48 | TP_PROTO(struct request_queue *q, struct bio *bio, int rw), |
49 | TPARGS(q, bio, rw)); | 49 | TP_ARGS(q, bio, rw)); |
50 | 50 | ||
51 | DECLARE_TRACE(block_sleeprq, | 51 | DECLARE_TRACE(block_sleeprq, |
52 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), | 52 | TP_PROTO(struct request_queue *q, struct bio *bio, int rw), |
53 | TPARGS(q, bio, rw)); | 53 | TP_ARGS(q, bio, rw)); |
54 | 54 | ||
55 | DECLARE_TRACE(block_plug, | 55 | DECLARE_TRACE(block_plug, |
56 | TPPROTO(struct request_queue *q), | 56 | TP_PROTO(struct request_queue *q), |
57 | TPARGS(q)); | 57 | TP_ARGS(q)); |
58 | 58 | ||
59 | DECLARE_TRACE(block_unplug_timer, | 59 | DECLARE_TRACE(block_unplug_timer, |
60 | TPPROTO(struct request_queue *q), | 60 | TP_PROTO(struct request_queue *q), |
61 | TPARGS(q)); | 61 | TP_ARGS(q)); |
62 | 62 | ||
63 | DECLARE_TRACE(block_unplug_io, | 63 | DECLARE_TRACE(block_unplug_io, |
64 | TPPROTO(struct request_queue *q), | 64 | TP_PROTO(struct request_queue *q), |
65 | TPARGS(q)); | 65 | TP_ARGS(q)); |
66 | 66 | ||
67 | DECLARE_TRACE(block_split, | 67 | DECLARE_TRACE(block_split, |
68 | TPPROTO(struct request_queue *q, struct bio *bio, unsigned int pdu), | 68 | TP_PROTO(struct request_queue *q, struct bio *bio, unsigned int pdu), |
69 | TPARGS(q, bio, pdu)); | 69 | TP_ARGS(q, bio, pdu)); |
70 | 70 | ||
71 | DECLARE_TRACE(block_remap, | 71 | DECLARE_TRACE(block_remap, |
72 | TPPROTO(struct request_queue *q, struct bio *bio, dev_t dev, | 72 | TP_PROTO(struct request_queue *q, struct bio *bio, dev_t dev, |
73 | sector_t from, sector_t to), | 73 | sector_t from, sector_t to), |
74 | TPARGS(q, bio, dev, from, to)); | 74 | TP_ARGS(q, bio, dev, from, to)); |
75 | 75 | ||
76 | #endif | 76 | #endif |
diff --git a/include/trace/irq_event_types.h b/include/trace/irq_event_types.h index 65850bc5ea06..0147d9eef5f4 100644 --- a/include/trace/irq_event_types.h +++ b/include/trace/irq_event_types.h | |||
@@ -9,25 +9,25 @@ | |||
9 | #define TRACE_SYSTEM irq | 9 | #define TRACE_SYSTEM irq |
10 | 10 | ||
11 | TRACE_EVENT_FORMAT(irq_handler_entry, | 11 | TRACE_EVENT_FORMAT(irq_handler_entry, |
12 | TPPROTO(int irq, struct irqaction *action), | 12 | TP_PROTO(int irq, struct irqaction *action), |
13 | TPARGS(irq, action), | 13 | TP_ARGS(irq, action), |
14 | TPFMT("irq=%d handler=%s", irq, action->name), | 14 | TP_FMT("irq=%d handler=%s", irq, action->name), |
15 | TRACE_STRUCT( | 15 | TRACE_STRUCT( |
16 | TRACE_FIELD(int, irq, irq) | 16 | TRACE_FIELD(int, irq, irq) |
17 | ), | 17 | ), |
18 | TPRAWFMT("irq %d") | 18 | TP_RAW_FMT("irq %d") |
19 | ); | 19 | ); |
20 | 20 | ||
21 | TRACE_EVENT_FORMAT(irq_handler_exit, | 21 | TRACE_EVENT_FORMAT(irq_handler_exit, |
22 | TPPROTO(int irq, struct irqaction *action, int ret), | 22 | TP_PROTO(int irq, struct irqaction *action, int ret), |
23 | TPARGS(irq, action, ret), | 23 | TP_ARGS(irq, action, ret), |
24 | TPFMT("irq=%d handler=%s return=%s", | 24 | TP_FMT("irq=%d handler=%s return=%s", |
25 | irq, action->name, ret ? "handled" : "unhandled"), | 25 | irq, action->name, ret ? "handled" : "unhandled"), |
26 | TRACE_STRUCT( | 26 | TRACE_STRUCT( |
27 | TRACE_FIELD(int, irq, irq) | 27 | TRACE_FIELD(int, irq, irq) |
28 | TRACE_FIELD(int, ret, ret) | 28 | TRACE_FIELD(int, ret, ret) |
29 | ), | 29 | ), |
30 | TPRAWFMT("irq %d ret %d") | 30 | TP_RAW_FMT("irq %d ret %d") |
31 | ); | 31 | ); |
32 | 32 | ||
33 | #undef TRACE_SYSTEM | 33 | #undef TRACE_SYSTEM |
diff --git a/include/trace/lockdep_event_types.h b/include/trace/lockdep_event_types.h index f713d74a82b4..1f00e8b3543e 100644 --- a/include/trace/lockdep_event_types.h +++ b/include/trace/lockdep_event_types.h | |||
@@ -10,32 +10,32 @@ | |||
10 | #ifdef CONFIG_LOCKDEP | 10 | #ifdef CONFIG_LOCKDEP |
11 | 11 | ||
12 | TRACE_FORMAT(lock_acquire, | 12 | TRACE_FORMAT(lock_acquire, |
13 | TPPROTO(struct lockdep_map *lock, unsigned int subclass, | 13 | TP_PROTO(struct lockdep_map *lock, unsigned int subclass, |
14 | int trylock, int read, int check, | 14 | int trylock, int read, int check, |
15 | struct lockdep_map *next_lock, unsigned long ip), | 15 | struct lockdep_map *next_lock, unsigned long ip), |
16 | TPARGS(lock, subclass, trylock, read, check, next_lock, ip), | 16 | TP_ARGS(lock, subclass, trylock, read, check, next_lock, ip), |
17 | TPFMT("%s%s%s", trylock ? "try " : "", | 17 | TP_FMT("%s%s%s", trylock ? "try " : "", |
18 | read ? "read " : "", lock->name) | 18 | read ? "read " : "", lock->name) |
19 | ); | 19 | ); |
20 | 20 | ||
21 | TRACE_FORMAT(lock_release, | 21 | TRACE_FORMAT(lock_release, |
22 | TPPROTO(struct lockdep_map *lock, int nested, unsigned long ip), | 22 | TP_PROTO(struct lockdep_map *lock, int nested, unsigned long ip), |
23 | TPARGS(lock, nested, ip), | 23 | TP_ARGS(lock, nested, ip), |
24 | TPFMT("%s", lock->name) | 24 | TP_FMT("%s", lock->name) |
25 | ); | 25 | ); |
26 | 26 | ||
27 | #ifdef CONFIG_LOCK_STAT | 27 | #ifdef CONFIG_LOCK_STAT |
28 | 28 | ||
29 | TRACE_FORMAT(lock_contended, | 29 | TRACE_FORMAT(lock_contended, |
30 | TPPROTO(struct lockdep_map *lock, unsigned long ip), | 30 | TP_PROTO(struct lockdep_map *lock, unsigned long ip), |
31 | TPARGS(lock, ip), | 31 | TP_ARGS(lock, ip), |
32 | TPFMT("%s", lock->name) | 32 | TP_FMT("%s", lock->name) |
33 | ); | 33 | ); |
34 | 34 | ||
35 | TRACE_FORMAT(lock_acquired, | 35 | TRACE_FORMAT(lock_acquired, |
36 | TPPROTO(struct lockdep_map *lock, unsigned long ip), | 36 | TP_PROTO(struct lockdep_map *lock, unsigned long ip), |
37 | TPARGS(lock, ip), | 37 | TP_ARGS(lock, ip), |
38 | TPFMT("%s", lock->name) | 38 | TP_FMT("%s", lock->name) |
39 | ); | 39 | ); |
40 | 40 | ||
41 | #endif | 41 | #endif |
diff --git a/include/trace/power.h b/include/trace/power.h index 38aca537e497..ef204666e983 100644 --- a/include/trace/power.h +++ b/include/trace/power.h | |||
@@ -18,15 +18,15 @@ struct power_trace { | |||
18 | }; | 18 | }; |
19 | 19 | ||
20 | DECLARE_TRACE(power_start, | 20 | DECLARE_TRACE(power_start, |
21 | TPPROTO(struct power_trace *it, unsigned int type, unsigned int state), | 21 | TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state), |
22 | TPARGS(it, type, state)); | 22 | TP_ARGS(it, type, state)); |
23 | 23 | ||
24 | DECLARE_TRACE(power_mark, | 24 | DECLARE_TRACE(power_mark, |
25 | TPPROTO(struct power_trace *it, unsigned int type, unsigned int state), | 25 | TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state), |
26 | TPARGS(it, type, state)); | 26 | TP_ARGS(it, type, state)); |
27 | 27 | ||
28 | DECLARE_TRACE(power_end, | 28 | DECLARE_TRACE(power_end, |
29 | TPPROTO(struct power_trace *it), | 29 | TP_PROTO(struct power_trace *it), |
30 | TPARGS(it)); | 30 | TP_ARGS(it)); |
31 | 31 | ||
32 | #endif /* _TRACE_POWER_H */ | 32 | #endif /* _TRACE_POWER_H */ |
diff --git a/include/trace/sched_event_types.h b/include/trace/sched_event_types.h index a6de5c1601a0..71b14828a957 100644 --- a/include/trace/sched_event_types.h +++ b/include/trace/sched_event_types.h | |||
@@ -9,143 +9,143 @@ | |||
9 | #define TRACE_SYSTEM sched | 9 | #define TRACE_SYSTEM sched |
10 | 10 | ||
11 | TRACE_EVENT_FORMAT(sched_kthread_stop, | 11 | TRACE_EVENT_FORMAT(sched_kthread_stop, |
12 | TPPROTO(struct task_struct *t), | 12 | TP_PROTO(struct task_struct *t), |
13 | TPARGS(t), | 13 | TP_ARGS(t), |
14 | TPFMT("task %s:%d", t->comm, t->pid), | 14 | TP_FMT("task %s:%d", t->comm, t->pid), |
15 | TRACE_STRUCT( | 15 | TRACE_STRUCT( |
16 | TRACE_FIELD(pid_t, pid, t->pid) | 16 | TRACE_FIELD(pid_t, pid, t->pid) |
17 | ), | 17 | ), |
18 | TPRAWFMT("task %d") | 18 | TP_RAW_FMT("task %d") |
19 | ); | 19 | ); |
20 | 20 | ||
21 | TRACE_EVENT_FORMAT(sched_kthread_stop_ret, | 21 | TRACE_EVENT_FORMAT(sched_kthread_stop_ret, |
22 | TPPROTO(int ret), | 22 | TP_PROTO(int ret), |
23 | TPARGS(ret), | 23 | TP_ARGS(ret), |
24 | TPFMT("ret=%d", ret), | 24 | TP_FMT("ret=%d", ret), |
25 | TRACE_STRUCT( | 25 | TRACE_STRUCT( |
26 | TRACE_FIELD(int, ret, ret) | 26 | TRACE_FIELD(int, ret, ret) |
27 | ), | 27 | ), |
28 | TPRAWFMT("ret=%d") | 28 | TP_RAW_FMT("ret=%d") |
29 | ); | 29 | ); |
30 | 30 | ||
31 | TRACE_EVENT_FORMAT(sched_wait_task, | 31 | TRACE_EVENT_FORMAT(sched_wait_task, |
32 | TPPROTO(struct rq *rq, struct task_struct *p), | 32 | TP_PROTO(struct rq *rq, struct task_struct *p), |
33 | TPARGS(rq, p), | 33 | TP_ARGS(rq, p), |
34 | TPFMT("task %s:%d", p->comm, p->pid), | 34 | TP_FMT("task %s:%d", p->comm, p->pid), |
35 | TRACE_STRUCT( | 35 | TRACE_STRUCT( |
36 | TRACE_FIELD(pid_t, pid, p->pid) | 36 | TRACE_FIELD(pid_t, pid, p->pid) |
37 | ), | 37 | ), |
38 | TPRAWFMT("task %d") | 38 | TP_RAW_FMT("task %d") |
39 | ); | 39 | ); |
40 | 40 | ||
41 | TRACE_EVENT_FORMAT(sched_wakeup, | 41 | TRACE_EVENT_FORMAT(sched_wakeup, |
42 | TPPROTO(struct rq *rq, struct task_struct *p, int success), | 42 | TP_PROTO(struct rq *rq, struct task_struct *p, int success), |
43 | TPARGS(rq, p, success), | 43 | TP_ARGS(rq, p, success), |
44 | TPFMT("task %s:%d %s", | 44 | TP_FMT("task %s:%d %s", |
45 | p->comm, p->pid, success ? "succeeded" : "failed"), | 45 | p->comm, p->pid, success ? "succeeded" : "failed"), |
46 | TRACE_STRUCT( | 46 | TRACE_STRUCT( |
47 | TRACE_FIELD(pid_t, pid, p->pid) | 47 | TRACE_FIELD(pid_t, pid, p->pid) |
48 | TRACE_FIELD(int, success, success) | 48 | TRACE_FIELD(int, success, success) |
49 | ), | 49 | ), |
50 | TPRAWFMT("task %d success=%d") | 50 | TP_RAW_FMT("task %d success=%d") |
51 | ); | 51 | ); |
52 | 52 | ||
53 | TRACE_EVENT_FORMAT(sched_wakeup_new, | 53 | TRACE_EVENT_FORMAT(sched_wakeup_new, |
54 | TPPROTO(struct rq *rq, struct task_struct *p, int success), | 54 | TP_PROTO(struct rq *rq, struct task_struct *p, int success), |
55 | TPARGS(rq, p, success), | 55 | TP_ARGS(rq, p, success), |
56 | TPFMT("task %s:%d", | 56 | TP_FMT("task %s:%d", |
57 | p->comm, p->pid, success ? "succeeded" : "failed"), | 57 | p->comm, p->pid, success ? "succeeded" : "failed"), |
58 | TRACE_STRUCT( | 58 | TRACE_STRUCT( |
59 | TRACE_FIELD(pid_t, pid, p->pid) | 59 | TRACE_FIELD(pid_t, pid, p->pid) |
60 | TRACE_FIELD(int, success, success) | 60 | TRACE_FIELD(int, success, success) |
61 | ), | 61 | ), |
62 | TPRAWFMT("task %d success=%d") | 62 | TP_RAW_FMT("task %d success=%d") |
63 | ); | 63 | ); |
64 | 64 | ||
65 | TRACE_EVENT_FORMAT(sched_switch, | 65 | TRACE_EVENT_FORMAT(sched_switch, |
66 | TPPROTO(struct rq *rq, struct task_struct *prev, | 66 | TP_PROTO(struct rq *rq, struct task_struct *prev, |
67 | struct task_struct *next), | 67 | struct task_struct *next), |
68 | TPARGS(rq, prev, next), | 68 | TP_ARGS(rq, prev, next), |
69 | TPFMT("task %s:%d ==> %s:%d", | 69 | TP_FMT("task %s:%d ==> %s:%d", |
70 | prev->comm, prev->pid, next->comm, next->pid), | 70 | prev->comm, prev->pid, next->comm, next->pid), |
71 | TRACE_STRUCT( | 71 | TRACE_STRUCT( |
72 | TRACE_FIELD(pid_t, prev_pid, prev->pid) | 72 | TRACE_FIELD(pid_t, prev_pid, prev->pid) |
73 | TRACE_FIELD(int, prev_prio, prev->prio) | 73 | TRACE_FIELD(int, prev_prio, prev->prio) |
74 | TRACE_FIELD_SPECIAL(char next_comm[TASK_COMM_LEN], | 74 | TRACE_FIELD_SPECIAL(char next_comm[TASK_COMM_LEN], |
75 | next_comm, | 75 | next_comm, |
76 | TPCMD(memcpy(TRACE_ENTRY->next_comm, | 76 | TP_CMD(memcpy(TRACE_ENTRY->next_comm, |
77 | next->comm, | 77 | next->comm, |
78 | TASK_COMM_LEN))) | 78 | TASK_COMM_LEN))) |
79 | TRACE_FIELD(pid_t, next_pid, next->pid) | 79 | TRACE_FIELD(pid_t, next_pid, next->pid) |
80 | TRACE_FIELD(int, next_prio, next->prio) | 80 | TRACE_FIELD(int, next_prio, next->prio) |
81 | ), | 81 | ), |
82 | TPRAWFMT("prev %d:%d ==> next %s:%d:%d") | 82 | TP_RAW_FMT("prev %d:%d ==> next %s:%d:%d") |
83 | ); | 83 | ); |
84 | 84 | ||
85 | TRACE_EVENT_FORMAT(sched_migrate_task, | 85 | TRACE_EVENT_FORMAT(sched_migrate_task, |
86 | TPPROTO(struct task_struct *p, int orig_cpu, int dest_cpu), | 86 | TP_PROTO(struct task_struct *p, int orig_cpu, int dest_cpu), |
87 | TPARGS(p, orig_cpu, dest_cpu), | 87 | TP_ARGS(p, orig_cpu, dest_cpu), |
88 | TPFMT("task %s:%d from: %d to: %d", | 88 | TP_FMT("task %s:%d from: %d to: %d", |
89 | p->comm, p->pid, orig_cpu, dest_cpu), | 89 | p->comm, p->pid, orig_cpu, dest_cpu), |
90 | TRACE_STRUCT( | 90 | TRACE_STRUCT( |
91 | TRACE_FIELD(pid_t, pid, p->pid) | 91 | TRACE_FIELD(pid_t, pid, p->pid) |
92 | TRACE_FIELD(int, orig_cpu, orig_cpu) | 92 | TRACE_FIELD(int, orig_cpu, orig_cpu) |
93 | TRACE_FIELD(int, dest_cpu, dest_cpu) | 93 | TRACE_FIELD(int, dest_cpu, dest_cpu) |
94 | ), | 94 | ), |
95 | TPRAWFMT("task %d from: %d to: %d") | 95 | TP_RAW_FMT("task %d from: %d to: %d") |
96 | ); | 96 | ); |
97 | 97 | ||
98 | TRACE_EVENT_FORMAT(sched_process_free, | 98 | TRACE_EVENT_FORMAT(sched_process_free, |
99 | TPPROTO(struct task_struct *p), | 99 | TP_PROTO(struct task_struct *p), |
100 | TPARGS(p), | 100 | TP_ARGS(p), |
101 | TPFMT("task %s:%d", p->comm, p->pid), | 101 | TP_FMT("task %s:%d", p->comm, p->pid), |
102 | TRACE_STRUCT( | 102 | TRACE_STRUCT( |
103 | TRACE_FIELD(pid_t, pid, p->pid) | 103 | TRACE_FIELD(pid_t, pid, p->pid) |
104 | ), | 104 | ), |
105 | TPRAWFMT("task %d") | 105 | TP_RAW_FMT("task %d") |
106 | ); | 106 | ); |
107 | 107 | ||
108 | TRACE_EVENT_FORMAT(sched_process_exit, | 108 | TRACE_EVENT_FORMAT(sched_process_exit, |
109 | TPPROTO(struct task_struct *p), | 109 | TP_PROTO(struct task_struct *p), |
110 | TPARGS(p), | 110 | TP_ARGS(p), |
111 | TPFMT("task %s:%d", p->comm, p->pid), | 111 | TP_FMT("task %s:%d", p->comm, p->pid), |
112 | TRACE_STRUCT( | 112 | TRACE_STRUCT( |
113 | TRACE_FIELD(pid_t, pid, p->pid) | 113 | TRACE_FIELD(pid_t, pid, p->pid) |
114 | ), | 114 | ), |
115 | TPRAWFMT("task %d") | 115 | TP_RAW_FMT("task %d") |
116 | ); | 116 | ); |
117 | 117 | ||
118 | TRACE_EVENT_FORMAT(sched_process_wait, | 118 | TRACE_EVENT_FORMAT(sched_process_wait, |
119 | TPPROTO(struct pid *pid), | 119 | TP_PROTO(struct pid *pid), |
120 | TPARGS(pid), | 120 | TP_ARGS(pid), |
121 | TPFMT("pid %d", pid_nr(pid)), | 121 | TP_FMT("pid %d", pid_nr(pid)), |
122 | TRACE_STRUCT( | 122 | TRACE_STRUCT( |
123 | TRACE_FIELD(pid_t, pid, pid_nr(pid)) | 123 | TRACE_FIELD(pid_t, pid, pid_nr(pid)) |
124 | ), | 124 | ), |
125 | TPRAWFMT("task %d") | 125 | TP_RAW_FMT("task %d") |
126 | ); | 126 | ); |
127 | 127 | ||
128 | TRACE_EVENT_FORMAT(sched_process_fork, | 128 | TRACE_EVENT_FORMAT(sched_process_fork, |
129 | TPPROTO(struct task_struct *parent, struct task_struct *child), | 129 | TP_PROTO(struct task_struct *parent, struct task_struct *child), |
130 | TPARGS(parent, child), | 130 | TP_ARGS(parent, child), |
131 | TPFMT("parent %s:%d child %s:%d", | 131 | TP_FMT("parent %s:%d child %s:%d", |
132 | parent->comm, parent->pid, child->comm, child->pid), | 132 | parent->comm, parent->pid, child->comm, child->pid), |
133 | TRACE_STRUCT( | 133 | TRACE_STRUCT( |
134 | TRACE_FIELD(pid_t, parent, parent->pid) | 134 | TRACE_FIELD(pid_t, parent, parent->pid) |
135 | TRACE_FIELD(pid_t, child, child->pid) | 135 | TRACE_FIELD(pid_t, child, child->pid) |
136 | ), | 136 | ), |
137 | TPRAWFMT("parent %d child %d") | 137 | TP_RAW_FMT("parent %d child %d") |
138 | ); | 138 | ); |
139 | 139 | ||
140 | TRACE_EVENT_FORMAT(sched_signal_send, | 140 | TRACE_EVENT_FORMAT(sched_signal_send, |
141 | TPPROTO(int sig, struct task_struct *p), | 141 | TP_PROTO(int sig, struct task_struct *p), |
142 | TPARGS(sig, p), | 142 | TP_ARGS(sig, p), |
143 | TPFMT("sig: %d task %s:%d", sig, p->comm, p->pid), | 143 | TP_FMT("sig: %d task %s:%d", sig, p->comm, p->pid), |
144 | TRACE_STRUCT( | 144 | TRACE_STRUCT( |
145 | TRACE_FIELD(int, sig, sig) | 145 | TRACE_FIELD(int, sig, sig) |
146 | TRACE_FIELD(pid_t, pid, p->pid) | 146 | TRACE_FIELD(pid_t, pid, p->pid) |
147 | ), | 147 | ), |
148 | TPRAWFMT("sig: %d task %d") | 148 | TP_RAW_FMT("sig: %d task %d") |
149 | ); | 149 | ); |
150 | 150 | ||
151 | #undef TRACE_SYSTEM | 151 | #undef TRACE_SYSTEM |
diff --git a/include/trace/workqueue.h b/include/trace/workqueue.h index 867829df4571..7626523deeba 100644 --- a/include/trace/workqueue.h +++ b/include/trace/workqueue.h | |||
@@ -6,20 +6,20 @@ | |||
6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
7 | 7 | ||
8 | DECLARE_TRACE(workqueue_insertion, | 8 | DECLARE_TRACE(workqueue_insertion, |
9 | TPPROTO(struct task_struct *wq_thread, struct work_struct *work), | 9 | TP_PROTO(struct task_struct *wq_thread, struct work_struct *work), |
10 | TPARGS(wq_thread, work)); | 10 | TP_ARGS(wq_thread, work)); |
11 | 11 | ||
12 | DECLARE_TRACE(workqueue_execution, | 12 | DECLARE_TRACE(workqueue_execution, |
13 | TPPROTO(struct task_struct *wq_thread, struct work_struct *work), | 13 | TP_PROTO(struct task_struct *wq_thread, struct work_struct *work), |
14 | TPARGS(wq_thread, work)); | 14 | TP_ARGS(wq_thread, work)); |
15 | 15 | ||
16 | /* Trace the creation of one workqueue thread on a cpu */ | 16 | /* Trace the creation of one workqueue thread on a cpu */ |
17 | DECLARE_TRACE(workqueue_creation, | 17 | DECLARE_TRACE(workqueue_creation, |
18 | TPPROTO(struct task_struct *wq_thread, int cpu), | 18 | TP_PROTO(struct task_struct *wq_thread, int cpu), |
19 | TPARGS(wq_thread, cpu)); | 19 | TP_ARGS(wq_thread, cpu)); |
20 | 20 | ||
21 | DECLARE_TRACE(workqueue_destruction, | 21 | DECLARE_TRACE(workqueue_destruction, |
22 | TPPROTO(struct task_struct *wq_thread), | 22 | TP_PROTO(struct task_struct *wq_thread), |
23 | TPARGS(wq_thread)); | 23 | TP_ARGS(wq_thread)); |
24 | 24 | ||
25 | #endif /* __TRACE_WORKQUEUE_H */ | 25 | #endif /* __TRACE_WORKQUEUE_H */ |