mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
This attempts to clarify names utilized during block I/O remap operations (partition, volume manager). It correctly matches up the /from/ information for both device & sector. This takes in the concept from Kosaki Motohiro and extends it to include better naming for the "device_from" field. [ Impact: cleanup ] Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com> Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Jens Axboe <jens.axboe@oracle.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <49FF4FAE.3000301@hp.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
77 lines
2.0 KiB
C
77 lines
2.0 KiB
C
#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 to, sector_t from),
|
|
TP_ARGS(q, bio, dev, to, from));
|
|
|
|
#endif
|