git: 6f8e117e5d78 - main - mps: Add a probe on completion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Jan 2026 06:14:36 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=6f8e117e5d78709ff70c19e5286949b35099fa9a
commit 6f8e117e5d78709ff70c19e5286949b35099fa9a
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-01-06 05:13:38 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-01-09 05:55:32 +0000
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
---
sys/dev/mps/mps_sas.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c
index 8631cc6cf9f3..fb591391f6a5 100644
--- a/sys/dev/mps/mps_sas.c
+++ b/sys/dev/mps/mps_sas.c
@@ -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) {