__field( unsigned int, nr_sector )
__field( int, errors )
__field( unsigned int, rwbs )
- __dynamic_array_text( char, cmd, blk_cmd_buf_len(rq) )
+ __dynamic_array_hex( unsigned char, cmd,
+ (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
+ rq->cmd_len : 0)
),
TP_fast_assign(
tp_assign(errors, rq->errors)
blk_fill_rwbs(rwbs, rq->cmd_flags, blk_rq_bytes(rq))
tp_memcpy_dyn(cmd, (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
- rq->cmd : (unsigned char *) "");
+ rq->cmd : NULL);
),
TP_printk("%d,%d %s (%s) %llu + %u [%d]",
__field( unsigned int, bytes )
__field( unsigned int, rwbs )
__array_text( char, comm, TASK_COMM_LEN )
- __dynamic_array_text( char, cmd, blk_cmd_buf_len(rq) )
+ __dynamic_array_hex( unsigned char, cmd,
+ (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
+ rq->cmd_len : 0)
),
TP_fast_assign(
blk_rq_bytes(rq) : 0)
blk_fill_rwbs(rwbs, rq->cmd_flags, blk_rq_bytes(rq))
tp_memcpy_dyn(cmd, (rq->cmd_type == REQ_TYPE_BLOCK_PC) ?
- rq->cmd : (unsigned char *) "");
+ rq->cmd : NULL);
tp_memcpy(comm, current->comm, TASK_COMM_LEN)
),