Date: Fri, 09 Jan 2026 06:14:37 +0000 From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0e80273f0d86 - main - mpr: Add a probe on completion Message-ID: <69609ccd.3a3f7.57baa47@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0e80273f0d864d28bd3c3ae9dafd58e637743910 commit 0e80273f0d864d28bd3c3ae9dafd58e637743910 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2026-01-06 05:13:38 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2026-01-09 06:03:38 +0000 mpr: Add a probe on completion cam::mpr:complete(union ccb *, struct mpr_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/mpr/mpr_sas.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/dev/mpr/mpr_sas.c b/sys/dev/mpr/mpr_sas.c index 6338a19b1984..f0470de3efcf 100644 --- a/sys/dev/mpr/mpr_sas.c +++ b/sys/dev/mpr/mpr_sas.c @@ -85,6 +85,12 @@ #define MPRSAS_DISCOVERY_TIMEOUT 20 #define MPRSAS_MAX_DISCOVERY_TIMEOUTS 10 /* 200 seconds */ +#include <sys/sdt.h> + +/* SDT Probes */ +SDT_PROBE_DEFINE4(cam, , mpr, complete, "union ccb *", + "struct mpr_command *", "u_int", "u32"); + /* * static array to check SCSI OpCode for EEDP protection bits */ @@ -2539,6 +2545,9 @@ mprsas_scsiio_complete(struct mpr_softc *sc, struct mpr_command *cm) sc->SSU_refcount--; } + SDT_PROBE4(cam, , mpr, complete, ccb, cm, sassc->flags, + sc->mapping_table[target_id].device_info); + /* Take the fast path to completion */ if (cm->cm_reply == NULL) { if (mprsas_get_ccbstatus(ccb) == CAM_REQ_INPROG) {home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69609ccd.3a3f7.57baa47>
