summaryrefslogtreecommitdiffstats
path: root/include/trace/block.h
blob: 25b7068b819e1b5a3552debd3ae11b28142861be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef _TRACE_BLOCK_H
#define _TRACE_BLOCK_H

#include <linux/blkdev.h>
#include <linux/tracepoint.h>

DECLARE_TRACE(block_rq_abort,
	TP_PROTO(struct request_queue *q, struct request *rq),
	      TP_ARGS(q, rq));

DECLARE_TRACE(block_rq_insert,
	TP_PROTO(struct request_queue *q, struct request *rq),
	      TP_ARGS(q, rq));

DECLARE_TRACE(block_rq_issue,
	TP_PROTO(struct request_queue *q, struct request *rq),
	      TP_ARGS(q, rq));

DECLARE_TRACE(block_rq_requeue,
	TP_PROTO(struct request_queue *q, struct request *rq),
	      TP_ARGS(q, rq));

DECLARE_TRACE(block_rq_complete,
	TP_PROTO(struct request_queue *q, struct request *rq),
	      TP_ARGS(q, rq));

DECLARE_TRACE(block_bio_bounce,
	TP_PROTO(struct request_queue *q, struct bio *bio),
	      TP_ARGS(q, bio));

DECLARE_TRACE(block_bio_complete,
	TP_PROTO(struct request_queue *q, struct bio *bio),
	      TP_ARGS(q, bio));

DECLARE_TRACE(block_bio_backmerge,
	TP_PROTO(struct request_queue *q, struct bio *bio),
	      TP_ARGS(q, bio));

DECLARE_TRACE(block_bio_frontmerge,
	TP_PROTO(struct request_queue *q, struct bio *bio),
	      TP_ARGS(q, bio));

DECLARE_TRACE(block_bio_queue,
	TP_PROTO(struct request_queue *q, struct bio *bio),
	      TP_ARGS(q, bio));

DECLARE_TRACE(block_getrq,
	TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
	      TP_ARGS(q, bio, rw));

DECLARE_TRACE(block_sleeprq,
	TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
	      TP_ARGS(q, bio, rw));

DECLARE_TRACE(block_plug,
	TP_PROTO(struct request_queue *q),
	      TP_ARGS(q));

DECLARE_TRACE(block_unplug_timer,
	TP_PROTO(struct request_queue *q),
	      TP_ARGS(q));

DECLARE_TRACE(block_unplug_io,
	TP_PROTO(struct request_queue *q),
	      TP_ARGS(q));

DECLARE_TRACE(block_split,
	TP_PROTO(struct request_queue *q, struct bio *bio, unsigned int pdu),
	      TP_ARGS(q, bio, pdu));

DECLARE_TRACE(block_remap,
	TP_PROTO(struct request_queue *q, struct bio *bio, dev_t dev,
		 sector_t from, sector_t to),
	      TP_ARGS(q, bio, dev, from, to));

#endif