blob: 25c6a1fd5b773c1225040bb591ccf4b082d03e50 [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,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +01008 TPPROTO(struct request_queue *q, struct request *rq),
Ingo Molnar0bfc2452008-11-26 11:59:56 +01009 TPARGS(q, rq));
10
11DECLARE_TRACE(block_rq_insert,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010012 TPPROTO(struct request_queue *q, struct request *rq),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010013 TPARGS(q, rq));
14
15DECLARE_TRACE(block_rq_issue,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010016 TPPROTO(struct request_queue *q, struct request *rq),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010017 TPARGS(q, rq));
18
19DECLARE_TRACE(block_rq_requeue,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010020 TPPROTO(struct request_queue *q, struct request *rq),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010021 TPARGS(q, rq));
22
23DECLARE_TRACE(block_rq_complete,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010024 TPPROTO(struct request_queue *q, struct request *rq),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010025 TPARGS(q, rq));
26
27DECLARE_TRACE(block_bio_bounce,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010028 TPPROTO(struct request_queue *q, struct bio *bio),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010029 TPARGS(q, bio));
30
31DECLARE_TRACE(block_bio_complete,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010032 TPPROTO(struct request_queue *q, struct bio *bio),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010033 TPARGS(q, bio));
34
35DECLARE_TRACE(block_bio_backmerge,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010036 TPPROTO(struct request_queue *q, struct bio *bio),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010037 TPARGS(q, bio));
38
39DECLARE_TRACE(block_bio_frontmerge,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010040 TPPROTO(struct request_queue *q, struct bio *bio),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010041 TPARGS(q, bio));
42
43DECLARE_TRACE(block_bio_queue,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010044 TPPROTO(struct request_queue *q, struct bio *bio),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010045 TPARGS(q, bio));
46
47DECLARE_TRACE(block_getrq,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010048 TPPROTO(struct request_queue *q, struct bio *bio, int rw),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010049 TPARGS(q, bio, rw));
50
51DECLARE_TRACE(block_sleeprq,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010052 TPPROTO(struct request_queue *q, struct bio *bio, int rw),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010053 TPARGS(q, bio, rw));
54
55DECLARE_TRACE(block_plug,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010056 TPPROTO(struct request_queue *q),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010057 TPARGS(q));
58
59DECLARE_TRACE(block_unplug_timer,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010060 TPPROTO(struct request_queue *q),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010061 TPARGS(q));
62
63DECLARE_TRACE(block_unplug_io,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010064 TPPROTO(struct request_queue *q),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010065 TPARGS(q));
66
67DECLARE_TRACE(block_split,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010068 TPPROTO(struct request_queue *q, struct bio *bio, unsigned int pdu),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010069 TPARGS(q, bio, pdu));
70
71DECLARE_TRACE(block_remap,
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010072 TPPROTO(struct request_queue *q, struct bio *bio, dev_t dev,
73 sector_t from, sector_t to),
Ingo Molnar0bfc2452008-11-26 11:59:56 +010074 TPARGS(q, bio, dev, from, to));
Arnaldo Carvalho de Melo5f3ea372008-10-30 08:34:33 +010075
76#endif