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