mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
mps: Add a probe on completion
cam::mps:complete(union ccb *, struct mps_command *, u_int, u32);
Where u_int is scsas->flags u32 is the device_info.
This can't be done as an fbt because the data needed for it isn't
present out a function boundary.
Sponsored by: Netflix
This commit is contained in:
parent
d650b2ceda
commit
6f8e117e5d
1 changed files with 9 additions and 0 deletions
|
|
@ -80,6 +80,12 @@
|
|||
#include <dev/mps/mps_table.h>
|
||||
#include <dev/mps/mps_sas.h>
|
||||
|
||||
#include <sys/sdt.h>
|
||||
|
||||
/* SDT Probes */
|
||||
SDT_PROBE_DEFINE4(cam, , mps, complete, "union ccb *",
|
||||
"struct mps_command *", "u_int", "u32");
|
||||
|
||||
/*
|
||||
* static array to check SCSI OpCode for EEDP protection bits
|
||||
*/
|
||||
|
|
@ -2076,6 +2082,9 @@ mpssas_scsiio_complete(struct mps_softc *sc, struct mps_command *cm)
|
|||
sc->SSU_refcount--;
|
||||
}
|
||||
|
||||
SDT_PROBE4(cam, , mps, complete, ccb, cm, sassc->flags,
|
||||
sc->mapping_table[target_id].device_info);
|
||||
|
||||
/* Take the fast path to completion */
|
||||
if (cm->cm_reply == NULL) {
|
||||
if (mpssas_get_ccbstatus(ccb) == CAM_REQ_INPROG) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue