block.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM block
  3. #if !defined(_TRACE_BLOCK_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define _TRACE_BLOCK_H
  5. #include <linux/blktrace_api.h>
  6. #include <linux/blkdev.h>
  7. #include <linux/buffer_head.h>
  8. #include <linux/tracepoint.h>
  9. #define RWBS_LEN 8
  10. DECLARE_EVENT_CLASS(block_buffer,
  11. TP_PROTO(struct buffer_head *bh),
  12. TP_ARGS(bh),
  13. TP_STRUCT__entry (
  14. __field( dev_t, dev )
  15. __field( sector_t, sector )
  16. __field( size_t, size )
  17. ),
  18. TP_fast_assign(
  19. __entry->dev = bh->b_bdev->bd_dev;
  20. __entry->sector = bh->b_blocknr;
  21. __entry->size = bh->b_size;
  22. ),
  23. TP_printk("%d,%d sector=%llu size=%zu",
  24. MAJOR(__entry->dev), MINOR(__entry->dev),
  25. (unsigned long long)__entry->sector, __entry->size
  26. )
  27. );
  28. /**
  29. * block_touch_buffer - mark a buffer accessed
  30. * @bh: buffer_head being touched
  31. *
  32. * Called from touch_buffer().
  33. */
  34. DEFINE_EVENT(block_buffer, block_touch_buffer,
  35. TP_PROTO(struct buffer_head *bh),
  36. TP_ARGS(bh)
  37. );
  38. /**
  39. * block_dirty_buffer - mark a buffer dirty
  40. * @bh: buffer_head being dirtied
  41. *
  42. * Called from mark_buffer_dirty().
  43. */
  44. DEFINE_EVENT(block_buffer, block_dirty_buffer,
  45. TP_PROTO(struct buffer_head *bh),
  46. TP_ARGS(bh)
  47. );
  48. DECLARE_EVENT_CLASS(block_rq_with_error,
  49. TP_PROTO(struct request_queue *q, struct request *rq),
  50. TP_ARGS(q, rq),
  51. TP_STRUCT__entry(
  52. __field( dev_t, dev )
  53. __field( sector_t, sector )
  54. __field( unsigned int, nr_sector )
  55. __field( int, errors )
  56. __array( char, rwbs, RWBS_LEN )
  57. __dynamic_array( char, cmd, blk_cmd_buf_len(rq) )
  58. ),
  59. TP_fast_assign(
  60. __entry->dev = rq->rq_disk ? disk_devt(rq->rq_disk) : 0;
  61. __entry->sector = (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
  62. 0 : blk_rq_pos(rq);
  63. __entry->nr_sector = (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
  64. 0 : blk_rq_sectors(rq);
  65. __entry->errors = rq->errors;
  66. blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
  67. blk_dump_cmd(__get_str(cmd), rq);
  68. ),
  69. TP_printk("%d,%d %s (%s) %llu + %u [%d]",
  70. MAJOR(__entry->dev), MINOR(__entry->dev),
  71. __entry->rwbs, __get_str(cmd),
  72. (unsigned long long)__entry->sector,
  73. __entry->nr_sector, __entry->errors)
  74. );
  75. /**
  76. * block_rq_abort - abort block operation request
  77. * @q: queue containing the block operation request
  78. * @rq: block IO operation request
  79. *
  80. * Called immediately after pending block IO operation request @rq in
  81. * queue @q is aborted. The fields in the operation request @rq
  82. * can be examined to determine which device and sectors the pending
  83. * operation would access.
  84. */
  85. DEFINE_EVENT(block_rq_with_error, block_rq_abort,
  86. TP_PROTO(struct request_queue *q, struct request *rq),
  87. TP_ARGS(q, rq)
  88. );
  89. /**
  90. * block_rq_requeue - place block IO request back on a queue
  91. * @q: queue holding operation
  92. * @rq: block IO operation request
  93. *
  94. * The block operation request @rq is being placed back into queue
  95. * @q. For some reason the request was not completed and needs to be
  96. * put back in the queue.
  97. */
  98. DEFINE_EVENT(block_rq_with_error, block_rq_requeue,
  99. TP_PROTO(struct request_queue *q, struct request *rq),
  100. TP_ARGS(q, rq)
  101. );
  102. /**
  103. * block_rq_complete - block IO operation completed by device driver
  104. * @q: queue containing the block operation request
  105. * @rq: block operations request
  106. *
  107. * The block_rq_complete tracepoint event indicates that some portion
  108. * of operation request has been completed by the device driver. If
  109. * the @rq->bio is %NULL, then there is absolutely no additional work to
  110. * do for the request. If @rq->bio is non-NULL then there is
  111. * additional work required to complete the request.
  112. */
  113. DEFINE_EVENT(block_rq_with_error, block_rq_complete,
  114. TP_PROTO(struct request_queue *q, struct request *rq),
  115. TP_ARGS(q, rq)
  116. );
  117. DECLARE_EVENT_CLASS(block_rq,
  118. TP_PROTO(struct request_queue *q, struct request *rq),
  119. TP_ARGS(q, rq),
  120. TP_STRUCT__entry(
  121. __field( dev_t, dev )
  122. __field( sector_t, sector )
  123. __field( unsigned int, nr_sector )
  124. __field( unsigned int, bytes )
  125. __array( char, rwbs, RWBS_LEN )
  126. __array( char, comm, TASK_COMM_LEN )
  127. __dynamic_array( char, cmd, blk_cmd_buf_len(rq) )
  128. ),
  129. TP_fast_assign(
  130. __entry->dev = rq->rq_disk ? disk_devt(rq->rq_disk) : 0;
  131. __entry->sector = (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
  132. 0 : blk_rq_pos(rq);
  133. __entry->nr_sector = (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
  134. 0 : blk_rq_sectors(rq);
  135. __entry->bytes = (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
  136. blk_rq_bytes(rq) : 0;
  137. blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
  138. blk_dump_cmd(__get_str(cmd), rq);
  139. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  140. ),
  141. TP_printk("%d,%d %s %u (%s) %llu + %u [%s]",
  142. MAJOR(__entry->dev), MINOR(__entry->dev),
  143. __entry->rwbs, __entry->bytes, __get_str(cmd),
  144. (unsigned long long)__entry->sector,
  145. __entry->nr_sector, __entry->comm)
  146. );
  147. /**
  148. * block_rq_insert - insert block operation request into queue
  149. * @q: target queue
  150. * @rq: block IO operation request
  151. *
  152. * Called immediately before block operation request @rq is inserted
  153. * into queue @q. The fields in the operation request @rq struct can
  154. * be examined to determine which device and sectors the pending
  155. * operation would access.
  156. */
  157. DEFINE_EVENT(block_rq, block_rq_insert,
  158. TP_PROTO(struct request_queue *q, struct request *rq),
  159. TP_ARGS(q, rq)
  160. );
  161. /**
  162. * block_rq_issue - issue pending block IO request operation to device driver
  163. * @q: queue holding operation
  164. * @rq: block IO operation operation request
  165. *
  166. * Called when block operation request @rq from queue @q is sent to a
  167. * device driver for processing.
  168. */
  169. DEFINE_EVENT(block_rq, block_rq_issue,
  170. TP_PROTO(struct request_queue *q, struct request *rq),
  171. TP_ARGS(q, rq)
  172. );
  173. /**
  174. * block_bio_bounce - used bounce buffer when processing block operation
  175. * @q: queue holding the block operation
  176. * @bio: block operation
  177. *
  178. * A bounce buffer was used to handle the block operation @bio in @q.
  179. * This occurs when hardware limitations prevent a direct transfer of
  180. * data between the @bio data memory area and the IO device. Use of a
  181. * bounce buffer requires extra copying of data and decreases
  182. * performance.
  183. */
  184. TRACE_EVENT(block_bio_bounce,
  185. TP_PROTO(struct request_queue *q, struct bio *bio),
  186. TP_ARGS(q, bio),
  187. TP_STRUCT__entry(
  188. __field( dev_t, dev )
  189. __field( sector_t, sector )
  190. __field( unsigned int, nr_sector )
  191. __array( char, rwbs, RWBS_LEN )
  192. __array( char, comm, TASK_COMM_LEN )
  193. ),
  194. TP_fast_assign(
  195. __entry->dev = bio->bi_bdev ?
  196. bio->bi_bdev->bd_dev : 0;
  197. __entry->sector = bio->bi_sector;
  198. __entry->nr_sector = bio->bi_size >> 9;
  199. blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
  200. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  201. ),
  202. TP_printk("%d,%d %s %llu + %u [%s]",
  203. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  204. (unsigned long long)__entry->sector,
  205. __entry->nr_sector, __entry->comm)
  206. );
  207. /**
  208. * block_bio_complete - completed all work on the block operation
  209. * @bio: block operation completed
  210. * @error: io error value
  211. *
  212. * This tracepoint indicates there is no further work to do on this
  213. * block IO operation @bio.
  214. */
  215. TRACE_EVENT(block_bio_complete,
  216. TP_PROTO(struct bio *bio, int error),
  217. TP_ARGS(bio, error),
  218. TP_STRUCT__entry(
  219. __field( dev_t, dev )
  220. __field( sector_t, sector )
  221. __field( unsigned, nr_sector )
  222. __field( int, error )
  223. __array( char, rwbs, RWBS_LEN)
  224. ),
  225. TP_fast_assign(
  226. __entry->dev = bio->bi_bdev ?
  227. bio->bi_bdev->bd_dev : 0;
  228. __entry->sector = bio->bi_sector;
  229. __entry->nr_sector = bio->bi_size >> 9;
  230. __entry->error = error;
  231. blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
  232. ),
  233. TP_printk("%d,%d %s %llu + %u [%d]",
  234. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  235. (unsigned long long)__entry->sector,
  236. __entry->nr_sector, __entry->error)
  237. );
  238. DECLARE_EVENT_CLASS(block_bio_merge,
  239. TP_PROTO(struct request_queue *q, struct request *rq, struct bio *bio),
  240. TP_ARGS(q, rq, bio),
  241. TP_STRUCT__entry(
  242. __field( dev_t, dev )
  243. __field( sector_t, sector )
  244. __field( unsigned int, nr_sector )
  245. __array( char, rwbs, RWBS_LEN )
  246. __array( char, comm, TASK_COMM_LEN )
  247. ),
  248. TP_fast_assign(
  249. __entry->dev = bio->bi_bdev->bd_dev;
  250. __entry->sector = bio->bi_sector;
  251. __entry->nr_sector = bio->bi_size >> 9;
  252. blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
  253. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  254. ),
  255. TP_printk("%d,%d %s %llu + %u [%s]",
  256. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  257. (unsigned long long)__entry->sector,
  258. __entry->nr_sector, __entry->comm)
  259. );
  260. /**
  261. * block_bio_backmerge - merging block operation to the end of an existing operation
  262. * @q: queue holding operation
  263. * @rq: request bio is being merged into
  264. * @bio: new block operation to merge
  265. *
  266. * Merging block request @bio to the end of an existing block request
  267. * in queue @q.
  268. */
  269. DEFINE_EVENT(block_bio_merge, block_bio_backmerge,
  270. TP_PROTO(struct request_queue *q, struct request *rq, struct bio *bio),
  271. TP_ARGS(q, rq, bio)
  272. );
  273. /**
  274. * block_bio_frontmerge - merging block operation to the beginning of an existing operation
  275. * @q: queue holding operation
  276. * @rq: request bio is being merged into
  277. * @bio: new block operation to merge
  278. *
  279. * Merging block IO operation @bio to the beginning of an existing block
  280. * operation in queue @q.
  281. */
  282. DEFINE_EVENT(block_bio_merge, block_bio_frontmerge,
  283. TP_PROTO(struct request_queue *q, struct request *rq, struct bio *bio),
  284. TP_ARGS(q, rq, bio)
  285. );
  286. /**
  287. * block_bio_queue - putting new block IO operation in queue
  288. * @q: queue holding operation
  289. * @bio: new block operation
  290. *
  291. * About to place the block IO operation @bio into queue @q.
  292. */
  293. TRACE_EVENT(block_bio_queue,
  294. TP_PROTO(struct request_queue *q, struct bio *bio),
  295. TP_ARGS(q, bio),
  296. TP_STRUCT__entry(
  297. __field( dev_t, dev )
  298. __field( sector_t, sector )
  299. __field( unsigned int, nr_sector )
  300. __array( char, rwbs, RWBS_LEN )
  301. __array( char, comm, TASK_COMM_LEN )
  302. ),
  303. TP_fast_assign(
  304. __entry->dev = bio->bi_bdev->bd_dev;
  305. __entry->sector = bio->bi_sector;
  306. __entry->nr_sector = bio->bi_size >> 9;
  307. blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
  308. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  309. ),
  310. TP_printk("%d,%d %s %llu + %u [%s]",
  311. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  312. (unsigned long long)__entry->sector,
  313. __entry->nr_sector, __entry->comm)
  314. );
  315. DECLARE_EVENT_CLASS(block_get_rq,
  316. TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
  317. TP_ARGS(q, bio, rw),
  318. TP_STRUCT__entry(
  319. __field( dev_t, dev )
  320. __field( sector_t, sector )
  321. __field( unsigned int, nr_sector )
  322. __array( char, rwbs, RWBS_LEN )
  323. __array( char, comm, TASK_COMM_LEN )
  324. ),
  325. TP_fast_assign(
  326. __entry->dev = bio ? bio->bi_bdev->bd_dev : 0;
  327. __entry->sector = bio ? bio->bi_sector : 0;
  328. __entry->nr_sector = bio ? bio->bi_size >> 9 : 0;
  329. blk_fill_rwbs(__entry->rwbs,
  330. bio ? bio->bi_rw : 0, __entry->nr_sector);
  331. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  332. ),
  333. TP_printk("%d,%d %s %llu + %u [%s]",
  334. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  335. (unsigned long long)__entry->sector,
  336. __entry->nr_sector, __entry->comm)
  337. );
  338. /**
  339. * block_getrq - get a free request entry in queue for block IO operations
  340. * @q: queue for operations
  341. * @bio: pending block IO operation
  342. * @rw: low bit indicates a read (%0) or a write (%1)
  343. *
  344. * A request struct for queue @q has been allocated to handle the
  345. * block IO operation @bio.
  346. */
  347. DEFINE_EVENT(block_get_rq, block_getrq,
  348. TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
  349. TP_ARGS(q, bio, rw)
  350. );
  351. /**
  352. * block_sleeprq - waiting to get a free request entry in queue for block IO operation
  353. * @q: queue for operation
  354. * @bio: pending block IO operation
  355. * @rw: low bit indicates a read (%0) or a write (%1)
  356. *
  357. * In the case where a request struct cannot be provided for queue @q
  358. * the process needs to wait for an request struct to become
  359. * available. This tracepoint event is generated each time the
  360. * process goes to sleep waiting for request struct become available.
  361. */
  362. DEFINE_EVENT(block_get_rq, block_sleeprq,
  363. TP_PROTO(struct request_queue *q, struct bio *bio, int rw),
  364. TP_ARGS(q, bio, rw)
  365. );
  366. /**
  367. * block_plug - keep operations requests in request queue
  368. * @q: request queue to plug
  369. *
  370. * Plug the request queue @q. Do not allow block operation requests
  371. * to be sent to the device driver. Instead, accumulate requests in
  372. * the queue to improve throughput performance of the block device.
  373. */
  374. TRACE_EVENT(block_plug,
  375. TP_PROTO(struct request_queue *q),
  376. TP_ARGS(q),
  377. TP_STRUCT__entry(
  378. __array( char, comm, TASK_COMM_LEN )
  379. ),
  380. TP_fast_assign(
  381. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  382. ),
  383. TP_printk("[%s]", __entry->comm)
  384. );
  385. DECLARE_EVENT_CLASS(block_unplug,
  386. TP_PROTO(struct request_queue *q, unsigned int depth, bool explicit),
  387. TP_ARGS(q, depth, explicit),
  388. TP_STRUCT__entry(
  389. __field( int, nr_rq )
  390. __array( char, comm, TASK_COMM_LEN )
  391. ),
  392. TP_fast_assign(
  393. __entry->nr_rq = depth;
  394. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  395. ),
  396. TP_printk("[%s] %d", __entry->comm, __entry->nr_rq)
  397. );
  398. /**
  399. * block_unplug - release of operations requests in request queue
  400. * @q: request queue to unplug
  401. * @depth: number of requests just added to the queue
  402. * @explicit: whether this was an explicit unplug, or one from schedule()
  403. *
  404. * Unplug request queue @q because device driver is scheduled to work
  405. * on elements in the request queue.
  406. */
  407. DEFINE_EVENT(block_unplug, block_unplug,
  408. TP_PROTO(struct request_queue *q, unsigned int depth, bool explicit),
  409. TP_ARGS(q, depth, explicit)
  410. );
  411. /**
  412. * block_split - split a single bio struct into two bio structs
  413. * @q: queue containing the bio
  414. * @bio: block operation being split
  415. * @new_sector: The starting sector for the new bio
  416. *
  417. * The bio request @bio in request queue @q needs to be split into two
  418. * bio requests. The newly created @bio request starts at
  419. * @new_sector. This split may be required due to hardware limitation
  420. * such as operation crossing device boundaries in a RAID system.
  421. */
  422. TRACE_EVENT(block_split,
  423. TP_PROTO(struct request_queue *q, struct bio *bio,
  424. unsigned int new_sector),
  425. TP_ARGS(q, bio, new_sector),
  426. TP_STRUCT__entry(
  427. __field( dev_t, dev )
  428. __field( sector_t, sector )
  429. __field( sector_t, new_sector )
  430. __array( char, rwbs, RWBS_LEN )
  431. __array( char, comm, TASK_COMM_LEN )
  432. ),
  433. TP_fast_assign(
  434. __entry->dev = bio->bi_bdev->bd_dev;
  435. __entry->sector = bio->bi_sector;
  436. __entry->new_sector = new_sector;
  437. blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
  438. memcpy(__entry->comm, current->comm, TASK_COMM_LEN);
  439. ),
  440. TP_printk("%d,%d %s %llu / %llu [%s]",
  441. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  442. (unsigned long long)__entry->sector,
  443. (unsigned long long)__entry->new_sector,
  444. __entry->comm)
  445. );
  446. /**
  447. * block_bio_remap - map request for a logical device to the raw device
  448. * @q: queue holding the operation
  449. * @bio: revised operation
  450. * @dev: device for the operation
  451. * @from: original sector for the operation
  452. *
  453. * An operation for a logical device has been mapped to the
  454. * raw block device.
  455. */
  456. TRACE_EVENT(block_bio_remap,
  457. TP_PROTO(struct request_queue *q, struct bio *bio, dev_t dev,
  458. sector_t from),
  459. TP_ARGS(q, bio, dev, from),
  460. TP_STRUCT__entry(
  461. __field( dev_t, dev )
  462. __field( sector_t, sector )
  463. __field( unsigned int, nr_sector )
  464. __field( dev_t, old_dev )
  465. __field( sector_t, old_sector )
  466. __array( char, rwbs, RWBS_LEN)
  467. ),
  468. TP_fast_assign(
  469. __entry->dev = bio->bi_bdev->bd_dev;
  470. __entry->sector = bio->bi_sector;
  471. __entry->nr_sector = bio->bi_size >> 9;
  472. __entry->old_dev = dev;
  473. __entry->old_sector = from;
  474. blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
  475. ),
  476. TP_printk("%d,%d %s %llu + %u <- (%d,%d) %llu",
  477. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  478. (unsigned long long)__entry->sector,
  479. __entry->nr_sector,
  480. MAJOR(__entry->old_dev), MINOR(__entry->old_dev),
  481. (unsigned long long)__entry->old_sector)
  482. );
  483. /**
  484. * block_rq_remap - map request for a block operation request
  485. * @q: queue holding the operation
  486. * @rq: block IO operation request
  487. * @dev: device for the operation
  488. * @from: original sector for the operation
  489. *
  490. * The block operation request @rq in @q has been remapped. The block
  491. * operation request @rq holds the current information and @from hold
  492. * the original sector.
  493. */
  494. TRACE_EVENT(block_rq_remap,
  495. TP_PROTO(struct request_queue *q, struct request *rq, dev_t dev,
  496. sector_t from),
  497. TP_ARGS(q, rq, dev, from),
  498. TP_STRUCT__entry(
  499. __field( dev_t, dev )
  500. __field( sector_t, sector )
  501. __field( unsigned int, nr_sector )
  502. __field( dev_t, old_dev )
  503. __field( sector_t, old_sector )
  504. __array( char, rwbs, RWBS_LEN)
  505. ),
  506. TP_fast_assign(
  507. __entry->dev = disk_devt(rq->rq_disk);
  508. __entry->sector = blk_rq_pos(rq);
  509. __entry->nr_sector = blk_rq_sectors(rq);
  510. __entry->old_dev = dev;
  511. __entry->old_sector = from;
  512. blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
  513. ),
  514. TP_printk("%d,%d %s %llu + %u <- (%d,%d) %llu",
  515. MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
  516. (unsigned long long)__entry->sector,
  517. __entry->nr_sector,
  518. MAJOR(__entry->old_dev), MINOR(__entry->old_dev),
  519. (unsigned long long)__entry->old_sector)
  520. );
  521. #endif /* _TRACE_BLOCK_H */
  522. /* This part must be outside protection */
  523. #include <trace/define_trace.h>