From owner-svn-src-all@freebsd.org Mon Dec 7 04:14:31 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D7359A049C; Mon, 7 Dec 2015 04:14:31 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B3BB12ED; Mon, 7 Dec 2015 04:14:31 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB74ETHR085093; Mon, 7 Dec 2015 04:14:29 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB74ETa3085092; Mon, 7 Dec 2015 04:14:29 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201512070414.tB74ETa3085092@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Mon, 7 Dec 2015 04:14:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291920 - head/sys/cam X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 04:14:31 -0000 Author: imp Date: Mon Dec 7 04:14:29 2015 New Revision: 291920 URL: https://svnweb.freebsd.org/changeset/base/291920 Log: 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 Modified: head/sys/cam/cam_xpt.c Modified: head/sys/cam/cam_xpt.c ============================================================================== --- head/sys/cam/cam_xpt.c Mon Dec 7 04:03:01 2015 (r291919) +++ head/sys/cam/cam_xpt.c Mon Dec 7 04:14:29 2015 (r291920) @@ -2450,7 +2450,8 @@ void 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.path->bus->xport->action))(start_ccb); @@ -2464,7 +2465,8 @@ xpt_action_default(union ccb *start_ccb) int lock; 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) { case XPT_SCSI_IO: @@ -2618,7 +2620,11 @@ call_sim: lock = (mtx_owned(sim->mtx) == 0); if (lock) 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); + CAM_DEBUG(path, CAM_DEBUG_TRACE, + ("sim->sim_action: status=%#x\n", start_ccb->ccb_h.status)); if (lock) CAM_SIM_UNLOCK(sim); break;