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:
Warner Losh 2026-01-05 22:13:38 -07:00
parent d650b2ceda
commit 6f8e117e5d

View file

@ -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) {