Lines Matching refs:cmd
134 TP_PROTO(struct se_cmd *cmd),
136 TP_ARGS(cmd),
145 __string( initiator, cmd->se_sess->se_node_acl->initiatorname )
149 __entry->unpacked_lun = cmd->orig_fe_lun;
150 __entry->opcode = cmd->t_task_cdb[0];
151 __entry->data_length = cmd->data_length;
152 __entry->task_attribute = cmd->sam_task_attr;
153 __entry->control = scsi_command_control(cmd->t_task_cdb);
154 memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE);
155 __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);
169 TP_PROTO(struct se_cmd *cmd),
171 TP_ARGS(cmd),
183 __string(initiator, cmd->se_sess->se_node_acl->initiatorname)
187 __entry->unpacked_lun = cmd->orig_fe_lun;
188 __entry->opcode = cmd->t_task_cdb[0];
189 __entry->data_length = cmd->data_length;
190 __entry->task_attribute = cmd->sam_task_attr;
191 __entry->control = scsi_command_control(cmd->t_task_cdb);
192 __entry->scsi_status = cmd->scsi_status;
193 __entry->sense_length = cmd->scsi_status == SAM_STAT_CHECK_CONDITION ?
194 min(18, ((u8 *) cmd->sense_buffer)[SPC_ADD_SENSE_LEN_OFFSET] + 8) : 0;
195 memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE);
196 memcpy(__entry->sense_data, cmd->sense_buffer, __entry->sense_length);
197 __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);