Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 1 | #ifndef _TRACE_BLOCK_H |
| 2 | #define _TRACE_BLOCK_H |
| 3 | |
| 4 | #include <linux/blkdev.h> |
| 5 | #include <linux/tracepoint.h> |
| 6 | |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 7 | DECLARE_TRACE(block_rq_abort, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 8 | TPPROTO(struct request_queue *q, struct request *rq), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 9 | TPARGS(q, rq)); |
| 10 | |
| 11 | DECLARE_TRACE(block_rq_insert, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 12 | TPPROTO(struct request_queue *q, struct request *rq), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 13 | TPARGS(q, rq)); |
| 14 | |
| 15 | DECLARE_TRACE(block_rq_issue, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 16 | TPPROTO(struct request_queue *q, struct request *rq), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 17 | TPARGS(q, rq)); |
| 18 | |
| 19 | DECLARE_TRACE(block_rq_requeue, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 20 | TPPROTO(struct request_queue *q, struct request *rq), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 21 | TPARGS(q, rq)); |
| 22 | |
| 23 | DECLARE_TRACE(block_rq_complete, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 24 | TPPROTO(struct request_queue *q, struct request *rq), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 25 | TPARGS(q, rq)); |
| 26 | |
| 27 | DECLARE_TRACE(block_bio_bounce, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 28 | TPPROTO(struct request_queue *q, struct bio *bio), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 29 | TPARGS(q, bio)); |
| 30 | |
| 31 | DECLARE_TRACE(block_bio_complete, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 32 | TPPROTO(struct request_queue *q, struct bio *bio), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 33 | TPARGS(q, bio)); |
| 34 | |
| 35 | DECLARE_TRACE(block_bio_backmerge, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 36 | TPPROTO(struct request_queue *q, struct bio *bio), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 37 | TPARGS(q, bio)); |
| 38 | |
| 39 | DECLARE_TRACE(block_bio_frontmerge, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 40 | TPPROTO(struct request_queue *q, struct bio *bio), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 41 | TPARGS(q, bio)); |
| 42 | |
| 43 | DECLARE_TRACE(block_bio_queue, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 44 | TPPROTO(struct request_queue *q, struct bio *bio), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 45 | TPARGS(q, bio)); |
| 46 | |
| 47 | DECLARE_TRACE(block_getrq, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 48 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 49 | TPARGS(q, bio, rw)); |
| 50 | |
| 51 | DECLARE_TRACE(block_sleeprq, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 52 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 53 | TPARGS(q, bio, rw)); |
| 54 | |
| 55 | DECLARE_TRACE(block_plug, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 56 | TPPROTO(struct request_queue *q), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 57 | TPARGS(q)); |
| 58 | |
| 59 | DECLARE_TRACE(block_unplug_timer, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 60 | TPPROTO(struct request_queue *q), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 61 | TPARGS(q)); |
| 62 | |
| 63 | DECLARE_TRACE(block_unplug_io, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 64 | TPPROTO(struct request_queue *q), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 65 | TPARGS(q)); |
| 66 | |
| 67 | DECLARE_TRACE(block_split, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 68 | TPPROTO(struct request_queue *q, struct bio *bio, unsigned int pdu), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 69 | TPARGS(q, bio, pdu)); |
| 70 | |
| 71 | DECLARE_TRACE(block_remap, |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 72 | TPPROTO(struct request_queue *q, struct bio *bio, dev_t dev, |
| 73 | sector_t from, sector_t to), |
Ingo Molnar | 0bfc245 | 2008-11-26 11:59:56 +0100 | [diff] [blame] | 74 | TPARGS(q, bio, dev, from, to)); |
Arnaldo Carvalho de Melo | 5f3ea37 | 2008-10-30 08:34:33 +0100 | [diff] [blame] | 75 | |
| 76 | #endif |