2008-10-30 10:34:33 +03:00
# ifndef _TRACE_BLOCK_H
# define _TRACE_BLOCK_H
# include <linux/blkdev.h>
# include <linux/tracepoint.h>
2008-11-26 13:59:56 +03:00
DECLARE_TRACE ( block_rq_abort ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct request * rq ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , rq ) ) ;
DECLARE_TRACE ( block_rq_insert ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct request * rq ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , rq ) ) ;
DECLARE_TRACE ( block_rq_issue ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct request * rq ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , rq ) ) ;
DECLARE_TRACE ( block_rq_requeue ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct request * rq ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , rq ) ) ;
DECLARE_TRACE ( block_rq_complete ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct request * rq ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , rq ) ) ;
DECLARE_TRACE ( block_bio_bounce ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio ) ) ;
DECLARE_TRACE ( block_bio_complete ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio ) ) ;
DECLARE_TRACE ( block_bio_backmerge ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio ) ) ;
DECLARE_TRACE ( block_bio_frontmerge ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio ) ) ;
DECLARE_TRACE ( block_bio_queue ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio ) ) ;
DECLARE_TRACE ( block_getrq ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio , int rw ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio , rw ) ) ;
DECLARE_TRACE ( block_sleeprq ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio , int rw ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio , rw ) ) ;
DECLARE_TRACE ( block_plug ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q ) ) ;
DECLARE_TRACE ( block_unplug_timer ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q ) ) ;
DECLARE_TRACE ( block_unplug_io ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q ) ) ;
DECLARE_TRACE ( block_split ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio , unsigned int pdu ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio , pdu ) ) ;
DECLARE_TRACE ( block_remap ,
2008-10-30 10:34:33 +03:00
TPPROTO ( struct request_queue * q , struct bio * bio , dev_t dev ,
sector_t from , sector_t to ) ,
2008-11-26 13:59:56 +03:00
TPARGS ( q , bio , dev , from , to ) ) ;
2008-10-30 10:34:33 +03:00
# endif