diff options
author | mav <mav@FreeBSD.org> | 2013-09-01 17:37:19 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-09-01 17:37:19 +0000 |
commit | 7351998cf8dfb6696100874613c8237166a17c86 (patch) | |
tree | 70e1770181c928438fd3c1e01a6bd11d5027405a /sys/cam/cam_debug.h | |
parent | f9897c6dd3d2e00bc25d5857c3c6b2be50c7efea (diff) | |
download | FreeBSD-src-7351998cf8dfb6696100874613c8237166a17c86.zip FreeBSD-src-7351998cf8dfb6696100874613c8237166a17c86.tar.gz |
Add debug trace points for freeze/release device queue.
Diffstat (limited to 'sys/cam/cam_debug.h')
-rw-r--r-- | sys/cam/cam_debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/cam/cam_debug.h b/sys/cam/cam_debug.h index e072ec1..ecfeb3a 100644 --- a/sys/cam/cam_debug.h +++ b/sys/cam/cam_debug.h @@ -99,6 +99,17 @@ extern u_int32_t cam_debug_delay; DELAY(cam_debug_delay); \ } +#define CAM_DEBUG_DEV(dev, flag, printfargs) \ + if (((flag) & (CAM_DEBUG_COMPILE) & cam_dflags) \ + && (cam_dpath != NULL) \ + && (xpt_path_comp_dev(cam_dpath, dev) >= 0) \ + && (xpt_path_comp_dev(cam_dpath, dev) < 2)) { \ + xpt_print_device(dev); \ + printf printfargs; \ + if (cam_debug_delay != 0) \ + DELAY(cam_debug_delay); \ + } + #define CAM_DEBUG_PRINT(flag, printfargs) \ if (((flag) & (CAM_DEBUG_COMPILE) & cam_dflags)) { \ printf("cam_debug: "); \ |