Improve cam tracing a little by including the function code in the
traces for xpt_action. Note up-calls (down-calls?) to the SIM as well. Differential Review: https://reviews.freebsd.org/D4382
This commit is contained in:
parent
7b0d44bcba
commit
8272782498
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291920
@ -2450,7 +2450,8 @@ void
|
|||||||
xpt_action(union ccb *start_ccb)
|
xpt_action(union ccb *start_ccb)
|
||||||
{
|
{
|
||||||
|
|
||||||
CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("xpt_action\n"));
|
CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE,
|
||||||
|
("xpt_action: func=%#x\n", start_ccb->ccb_h.func_code));
|
||||||
|
|
||||||
start_ccb->ccb_h.status = CAM_REQ_INPROG;
|
start_ccb->ccb_h.status = CAM_REQ_INPROG;
|
||||||
(*(start_ccb->ccb_h.path->bus->xport->action))(start_ccb);
|
(*(start_ccb->ccb_h.path->bus->xport->action))(start_ccb);
|
||||||
@ -2464,7 +2465,8 @@ xpt_action_default(union ccb *start_ccb)
|
|||||||
int lock;
|
int lock;
|
||||||
|
|
||||||
path = start_ccb->ccb_h.path;
|
path = start_ccb->ccb_h.path;
|
||||||
CAM_DEBUG(path, CAM_DEBUG_TRACE, ("xpt_action_default\n"));
|
CAM_DEBUG(path, CAM_DEBUG_TRACE,
|
||||||
|
("xpt_action_default: func=%#x\n", start_ccb->ccb_h.func_code));
|
||||||
|
|
||||||
switch (start_ccb->ccb_h.func_code) {
|
switch (start_ccb->ccb_h.func_code) {
|
||||||
case XPT_SCSI_IO:
|
case XPT_SCSI_IO:
|
||||||
@ -2618,7 +2620,11 @@ xpt_action_default(union ccb *start_ccb)
|
|||||||
lock = (mtx_owned(sim->mtx) == 0);
|
lock = (mtx_owned(sim->mtx) == 0);
|
||||||
if (lock)
|
if (lock)
|
||||||
CAM_SIM_LOCK(sim);
|
CAM_SIM_LOCK(sim);
|
||||||
|
CAM_DEBUG(path, CAM_DEBUG_TRACE,
|
||||||
|
("sim->sim_action: func=%#x\n", start_ccb->ccb_h.func_code));
|
||||||
(*(sim->sim_action))(sim, start_ccb);
|
(*(sim->sim_action))(sim, start_ccb);
|
||||||
|
CAM_DEBUG(path, CAM_DEBUG_TRACE,
|
||||||
|
("sim->sim_action: status=%#x\n", start_ccb->ccb_h.status));
|
||||||
if (lock)
|
if (lock)
|
||||||
CAM_SIM_UNLOCK(sim);
|
CAM_SIM_UNLOCK(sim);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user