diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-10-30 03:34:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-26 06:13:34 -0500 |
commit | 5f3ea37c7716db4e894a480e0c18b24399595b6b (patch) | |
tree | db6784635d024894f641b340dcd7c5060c446077 /include/trace | |
parent | 509dceef6470442d8c7b8a43ec34125205840b3c (diff) |
blktrace: port to tracepoints
This was a forward port of work done by Mathieu Desnoyers, I changed it to
encode the 'what' parameter on the tracepoint name, so that one can register
interest in specific events and not on classes of events to then check the
'what' parameter.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/block.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/include/trace/block.h b/include/trace/block.h new file mode 100644 index 000000000000..3cc2675ebf01 --- /dev/null +++ b/include/trace/block.h | |||
@@ -0,0 +1,60 @@ | |||
1 | #ifndef _TRACE_BLOCK_H | ||
2 | #define _TRACE_BLOCK_H | ||
3 | |||
4 | #include <linux/blkdev.h> | ||
5 | #include <linux/tracepoint.h> | ||
6 | |||
7 | DEFINE_TRACE(block_rq_abort, | ||
8 | TPPROTO(struct request_queue *q, struct request *rq), | ||
9 | TPARGS(q, rq)); | ||
10 | DEFINE_TRACE(block_rq_insert, | ||
11 | TPPROTO(struct request_queue *q, struct request *rq), | ||
12 | TPARGS(q, rq)); | ||
13 | DEFINE_TRACE(block_rq_issue, | ||
14 | TPPROTO(struct request_queue *q, struct request *rq), | ||
15 | TPARGS(q, rq)); | ||
16 | DEFINE_TRACE(block_rq_requeue, | ||
17 | TPPROTO(struct request_queue *q, struct request *rq), | ||
18 | TPARGS(q, rq)); | ||
19 | DEFINE_TRACE(block_rq_complete, | ||
20 | TPPROTO(struct request_queue *q, struct request *rq), | ||
21 | TPARGS(q, rq)); | ||
22 | DEFINE_TRACE(block_bio_bounce, | ||
23 | TPPROTO(struct request_queue *q, struct bio *bio), | ||
24 | TPARGS(q, bio)); | ||
25 | DEFINE_TRACE(block_bio_complete, | ||
26 | TPPROTO(struct request_queue *q, struct bio *bio), | ||
27 | TPARGS(q, bio)); | ||
28 | DEFINE_TRACE(block_bio_backmerge, | ||
29 | TPPROTO(struct request_queue *q, struct bio *bio), | ||
30 | TPARGS(q, bio)); | ||
31 | DEFINE_TRACE(block_bio_frontmerge, | ||
32 | TPPROTO(struct request_queue *q, struct bio *bio), | ||
33 | TPARGS(q, bio)); | ||
34 | DEFINE_TRACE(block_bio_queue, | ||
35 | TPPROTO(struct request_queue *q, struct bio *bio), | ||
36 | TPARGS(q, bio)); | ||
37 | DEFINE_TRACE(block_getrq, | ||
38 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), | ||
39 | TPARGS(q, bio, rw)); | ||
40 | DEFINE_TRACE(block_sleeprq, | ||
41 | TPPROTO(struct request_queue *q, struct bio *bio, int rw), | ||
42 | TPARGS(q, bio, rw)); | ||
43 | DEFINE_TRACE(block_plug, | ||
44 | TPPROTO(struct request_queue *q), | ||
45 | TPARGS(q)); | ||
46 | DEFINE_TRACE(block_unplug_timer, | ||
47 | TPPROTO(struct request_queue *q), | ||
48 | TPARGS(q)); | ||
49 | DEFINE_TRACE(block_unplug_io, | ||
50 | TPPROTO(struct request_queue *q), | ||
51 | TPARGS(q)); | ||
52 | DEFINE_TRACE(block_split, | ||
53 | TPPROTO(struct request_queue *q, struct bio *bio, unsigned int pdu), | ||
54 | TPARGS(q, bio, pdu)); | ||
55 | DEFINE_TRACE(block_remap, | ||
56 | TPPROTO(struct request_queue *q, struct bio *bio, dev_t dev, | ||
57 | sector_t from, sector_t to), | ||
58 | TPARGS(q, bio, dev, from, to)); | ||
59 | |||
60 | #endif | ||