2008-10-30 07:34:33 +00:00
|
|
|
#ifndef _TRACE_BLOCK_H
|
|
|
|
#define _TRACE_BLOCK_H
|
|
|
|
|
|
|
|
#include <linux/blkdev.h>
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
|
2008-11-26 10:59:56 +00:00
|
|
|
DECLARE_TRACE(block_rq_abort,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct request *rq),
|
|
|
|
TP_ARGS(q, rq));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_rq_insert,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct request *rq),
|
|
|
|
TP_ARGS(q, rq));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_rq_issue,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct request *rq),
|
|
|
|
TP_ARGS(q, rq));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_rq_requeue,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct request *rq),
|
|
|
|
TP_ARGS(q, rq));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_rq_complete,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct request *rq),
|
|
|
|
TP_ARGS(q, rq));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_bio_bounce,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio),
|
|
|
|
TP_ARGS(q, bio));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_bio_complete,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio),
|
|
|
|
TP_ARGS(q, bio));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_bio_backmerge,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio),
|
|
|
|
TP_ARGS(q, bio));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_bio_frontmerge,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio),
|
|
|
|
TP_ARGS(q, bio));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_bio_queue,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio),
|
|
|
|
TP_ARGS(q, bio));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_getrq,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
|
|
|
|
TP_ARGS(q, bio, rw));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_sleeprq,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
|
|
|
|
TP_ARGS(q, bio, rw));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_plug,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q),
|
|
|
|
TP_ARGS(q));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_unplug_timer,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q),
|
|
|
|
TP_ARGS(q));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_unplug_io,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q),
|
|
|
|
TP_ARGS(q));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_split,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct request_queue *q, struct bio *bio, unsigned int pdu),
|
|
|
|
TP_ARGS(q, bio, pdu));
|
2008-11-26 10:59:56 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(block_remap,
|
2009-03-09 19:47:18 +00:00
|
|
|
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));
|
2008-10-30 07:34:33 +00:00
|
|
|
|
|
|
|
#endif
|