blob: 25b7068b819e1b5a3552debd3ae11b28142861be [file] [log] [blame]
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +01001#ifndef _TRACE_BLOCK_H
2#define _TRACE_BLOCK_H
3
4#include <linux/blkdev.h>
5#include <linux/tracepoint.h>
6
Ingo Molnar0bfc2452008-11-26 11:59:56 +01007DECLARE_TRACE(block_rq_abort,
Steven Rostedt2939b042009-03-09 15:47:18 -04008 TP_PROTO(struct request_queue *q, struct request *rq),
9 TP_ARGS(q, rq));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010010
11DECLARE_TRACE(block_rq_insert,
Steven Rostedt2939b042009-03-09 15:47:18 -040012 TP_PROTO(struct request_queue *q, struct request *rq),
13 TP_ARGS(q, rq));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010014
15DECLARE_TRACE(block_rq_issue,
Steven Rostedt2939b042009-03-09 15:47:18 -040016 TP_PROTO(struct request_queue *q, struct request *rq),
17 TP_ARGS(q, rq));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010018
19DECLARE_TRACE(block_rq_requeue,
Steven Rostedt2939b042009-03-09 15:47:18 -040020 TP_PROTO(struct request_queue *q, struct request *rq),
21 TP_ARGS(q, rq));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010022
23DECLARE_TRACE(block_rq_complete,
Steven Rostedt2939b042009-03-09 15:47:18 -040024 TP_PROTO(struct request_queue *q, struct request *rq),
25 TP_ARGS(q, rq));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010026
27DECLARE_TRACE(block_bio_bounce,
Steven Rostedt2939b042009-03-09 15:47:18 -040028 TP_PROTO(struct request_queue *q, struct bio *bio),
29 TP_ARGS(q, bio));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010030
31DECLARE_TRACE(block_bio_complete,
Steven Rostedt2939b042009-03-09 15:47:18 -040032 TP_PROTO(struct request_queue *q, struct bio *bio),
33 TP_ARGS(q, bio));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010034
35DECLARE_TRACE(block_bio_backmerge,
Steven Rostedt2939b042009-03-09 15:47:18 -040036 TP_PROTO(struct request_queue *q, struct bio *bio),
37 TP_ARGS(q, bio));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010038
39DECLARE_TRACE(block_bio_frontmerge,
Steven Rostedt2939b042009-03-09 15:47:18 -040040 TP_PROTO(struct request_queue *q, struct bio *bio),
41 TP_ARGS(q, bio));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010042
43DECLARE_TRACE(block_bio_queue,
Steven Rostedt2939b042009-03-09 15:47:18 -040044 TP_PROTO(struct request_queue *q, struct bio *bio),
45 TP_ARGS(q, bio));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010046
47DECLARE_TRACE(block_getrq,
Steven Rostedt2939b042009-03-09 15:47:18 -040048 TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
49 TP_ARGS(q, bio, rw));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010050
51DECLARE_TRACE(block_sleeprq,
Steven Rostedt2939b042009-03-09 15:47:18 -040052 TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
53 TP_ARGS(q, bio, rw));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010054
55DECLARE_TRACE(block_plug,
Steven Rostedt2939b042009-03-09 15:47:18 -040056 TP_PROTO(struct request_queue *q),
57 TP_ARGS(q));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010058
59DECLARE_TRACE(block_unplug_timer,
Steven Rostedt2939b042009-03-09 15:47:18 -040060 TP_PROTO(struct request_queue *q),
61 TP_ARGS(q));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010062
63DECLARE_TRACE(block_unplug_io,
Steven Rostedt2939b042009-03-09 15:47:18 -040064 TP_PROTO(struct request_queue *q),
65 TP_ARGS(q));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010066
67DECLARE_TRACE(block_split,
Steven Rostedt2939b042009-03-09 15:47:18 -040068 TP_PROTO(struct request_queue *q, struct bio *bio, unsigned int pdu),
69 TP_ARGS(q, bio, pdu));
Ingo Molnar0bfc2452008-11-26 11:59:56 +010070
71DECLARE_TRACE(block_remap,
Steven Rostedt2939b042009-03-09 15:47:18 -040072 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 Melo5f3ea372008-10-30 08:34:33 +010075
76#endif