diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-26 05:59:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-26 07:04:35 -0500 |
commit | 0bfc24559d7945506184d86739fe365a181f06b7 (patch) | |
tree | 5c152128faac7080f4802ce03d1c6b6bc7173227 /include/trace/block.h | |
parent | 5f3ea37c7716db4e894a480e0c18b24399595b6b (diff) |
blktrace: port to tracepoints, update
Port to the new tracepoints API: split DEFINE_TRACE() and DECLARE_TRACE()
sites. Spread them out to the usage sites, as suggested by
Mathieu Desnoyers.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Diffstat (limited to 'include/trace/block.h')
-rw-r--r-- | include/trace/block.h | 84 |
1 files changed, 50 insertions, 34 deletions
diff --git a/include/trace/block.h b/include/trace/block.h index 3cc2675ebf01..25c6a1fd5b77 100644 --- a/include/trace/block.h +++ b/include/trace/block.h | |||
@@ -4,57 +4,73 @@ | |||
4 | #include <linux/blkdev.h> | 4 | #include <linux/blkdev.h> |
5 | #include <linux/tracepoint.h> | 5 | #include <linux/tracepoint.h> |
6 | 6 | ||
7 | DEFINE_TRACE(block_rq_abort, | 7 | DECLARE_TRACE(block_rq_abort, |
8 | TPPROTO(struct request_queue *q, struct request *rq), | 8 | TPPROTO(struct request_queue *q, struct request *rq), |
9 | TPARGS(q, rq)); | 9 | TPARGS(q, rq)); |
10 | DEFINE_TRACE(block_rq_insert, | 10 | |
11 | DECLARE_TRACE(block_rq_insert, | ||
11 | TPPROTO(struct request_queue *q, struct request *rq), | 12 | TPPROTO(struct request_queue *q, struct request *rq), |
12 | TPARGS(q, rq)); | 13 | TPARGS(q, rq)); |
13 | DEFINE_TRACE(block_rq_issue, | 14 | |
15 | DECLARE_TRACE(block_rq_issue, | ||
14 | TPPROTO(struct request_queue *q, struct request *rq), | 16 | TPPROTO(struct request_queue *q, struct request *rq), |
15 | TPARGS(q, rq)); | 17 | TPARGS(q, rq)); |
16 | DEFINE_TRACE(block_rq_requeue, | 18 | |
19 | DECLARE_TRACE(block_rq_requeue, | ||
17 | TPPROTO(struct request_queue *q, struct request *rq), | 20 | TPPROTO(struct request_queue *q, struct request *rq), |
18 | TPARGS(q, rq)); | 21 | TPARGS(q, rq)); |
19 | DEFINE_TRACE(block_rq_complete, | 22 | |
23 | DECLARE_TRACE(block_rq_complete, | ||
20 | TPPROTO(struct request_queue *q, struct request *rq), | 24 | TPPROTO(struct request_queue *q, struct request *rq), |
21 | TPARGS(q, rq)); | 25 | TPARGS(q, rq)); |
22 | DEFINE_TRACE(block_bio_bounce, | 26 | |
27 | DECLARE_TRACE(block_bio_bounce, | ||
23 | TPPROTO(struct request_queue *q, struct bio *bio), | 28 | TPPROTO(struct request_queue *q, struct bio *bio), |
24 | TPARGS(q, bio)); | 29 | TPARGS(q, bio)); |
25 | DEFINE_TRACE(block_bio_complete, | 30 | |
31 | DECLARE_TRACE(block_bio_complete, | ||
26 | TPPROTO(struct request_queue *q, struct bio *bio), | 32 | TPPROTO(struct request_queue *q, struct bio *bio), |
27 | TPARGS(q, bio)); | 33 | TPARGS(q, bio)); |
28 | DEFINE_TRACE(block_bio_backmerge, | 34 | |
35 | DECLARE_TRACE(block_bio_backmerge, | ||
29 | TPPROTO(struct request_queue *q, struct bio *bio), | 36 | TPPROTO(struct request_queue *q, struct bio *bio), |
30 | TPARGS(q, bio)); | 37 | TPARGS(q, bio)); |
31 | DEFINE_TRACE(block_bio_frontmerge, | 38 | |
39 | DECLARE_TRACE(block_bio_frontmerge, | ||
32 | TPPROTO(struct request_queue *q, struct bio *bio), | 40 | TPPROTO(struct request_queue *q, struct bio *bio), |
33 | TPARGS(q, bio)); | 41 | TPARGS(q, bio)); |
34 | DEFINE_TRACE(block_bio_queue, | 42 | |
43 | DECLARE_TRACE(block_bio_queue, | ||
35 | TPPROTO(struct request_queue *q, struct bio *bio), | 44 | TPPROTO(struct request_queue *q, struct bio *bio), |
36 | TPARGS(q, bio)); | 45 | TPARGS(q, bio)); |
37 | DEFINE_TRACE(block_getrq, | 46 | |
47 | DECLARE_TRACE(block_getrq, | ||
38 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), | 48 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), |
39 | TPARGS(q, bio, rw)); | 49 | TPARGS(q, bio, rw)); |
40 | DEFINE_TRACE(block_sleeprq, | 50 | |
51 | DECLARE_TRACE(block_sleeprq, | ||
41 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), | 52 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), |
42 | TPARGS(q, bio, rw)); | 53 | TPARGS(q, bio, rw)); |
43 | DEFINE_TRACE(block_plug, | 54 | |
55 | DECLARE_TRACE(block_plug, | ||
44 | TPPROTO(struct request_queue *q), | 56 | TPPROTO(struct request_queue *q), |
45 | TPARGS(q)); | 57 | TPARGS(q)); |
46 | DEFINE_TRACE(block_unplug_timer, | 58 | |
59 | DECLARE_TRACE(block_unplug_timer, | ||
47 | TPPROTO(struct request_queue *q), | 60 | TPPROTO(struct request_queue *q), |
48 | TPARGS(q)); | 61 | TPARGS(q)); |
49 | DEFINE_TRACE(block_unplug_io, | 62 | |
63 | DECLARE_TRACE(block_unplug_io, | ||
50 | TPPROTO(struct request_queue *q), | 64 | TPPROTO(struct request_queue *q), |
51 | TPARGS(q)); | 65 | TPARGS(q)); |
52 | DEFINE_TRACE(block_split, | 66 | |
67 | DECLARE_TRACE(block_split, | ||
53 | TPPROTO(struct request_queue *q, struct bio *bio, unsigned int pdu), | 68 | TPPROTO(struct request_queue *q, struct bio *bio, unsigned int pdu), |
54 | TPARGS(q, bio, pdu)); | 69 | TPARGS(q, bio, pdu)); |
55 | DEFINE_TRACE(block_remap, | 70 | |
71 | DECLARE_TRACE(block_remap, | ||
56 | TPPROTO(struct request_queue *q, struct bio *bio, dev_t dev, | 72 | TPPROTO(struct request_queue *q, struct bio *bio, dev_t dev, |
57 | sector_t from, sector_t to), | 73 | sector_t from, sector_t to), |
58 | TPARGS(q, bio, dev, from, to)); | 74 | TPARGS(q, bio, dev, from, to)); |
59 | 75 | ||
60 | #endif | 76 | #endif |