From: <vl...@us...> - 2007-11-26 16:24:36
|
Revision: 225 http://scst.svn.sourceforge.net/scst/?rev=225&view=rev Author: vlnb Date: 2007-11-26 08:23:50 -0800 (Mon, 26 Nov 2007) Log Message: ----------- - Fixes build problem in perf mode - Switches between debug modes made as Makefile targets, thanks Tomasz Chmielewski <ma...@wp...> for idea Modified Paths: -------------- trunk/Makefile trunk/iscsi-scst/README trunk/iscsi-scst/kernel/iscsi_dbg.h trunk/scst/README Removed Paths: ------------- trunk/debug2perf trunk/debug2release trunk/perf2debug trunk/release2debug Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/Makefile 2007-11-26 16:23:50 UTC (rev 225) @@ -64,6 +64,11 @@ @echo " usr_install : usr target: install" @echo " usr_uninstall : usr target: uninstall" @echo "" + @echo " debug2perf : changes debug state from full debug to full performance" + @echo " debug2release : changes debug state from full debug to release" + @echo " perf2debug : changes debug state from full performance to full debug" + @echo " release2debug : changes debug state from release to full debug" + @echo "" @echo " Note:" @echo " - install and uninstall may need root privileges" @@ -181,9 +186,38 @@ usr_extraclean: cd $(USR_DIR) && $(MAKE) extraclean +debug2perf: + echo "Changing current debug state from full debug to full performance" + patch -p0 <scst-full_perf.patch + patch -p0 <usr-full_perf.patch + patch -p0 <qla2x00t-full_perf.patch + patch -p0 <iscsi-full_perf.patch + +debug2release: + echo "Changing current debug state from full debug to release" + patch -p0 <scst-release.patch + patch -p0 <usr-release.patch + patch -p0 <qla2x00t-release.patch + patch -p0 <iscsi-release.patch + +perf2debug: + echo "Changing current debug state from full performance to full debug" + patch -p0 -R <scst-full_perf.patch + patch -p0 -R <usr-full_perf.patch + patch -p0 -R <qla2x00t-full_perf.patch + patch -p0 -R <iscsi-full_perf.patch + +release2debug: + echo "Changing current debug state from release to full debug" + patch -p0 -R <scst-release.patch + patch -p0 -R <usr-release.patch + patch -p0 -R <qla2x00t-release.patch + patch -p0 -R <iscsi-release.patch + .PHONY: all install uninstall clean extraclean help \ qla qla_install qla_uninstall qla_clean qla_extraclean \ lsi lsi_install lsi_uninstall lsi_clean lsi_extraclean \ iscsi iscsi_install iscsi_uninstall iscsi_clean iscsi_extraclean \ scst scst_install scst_uninstall scst_clean scst_extraclean \ - usr usr_install usr_uninstall usr_clean usr_extraclean + usr usr_install usr_uninstall usr_clean usr_extraclean \ + debug2perf, debug2release, perf2debug, release2debug Deleted: trunk/debug2perf =================================================================== --- trunk/debug2perf 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/debug2perf 2007-11-26 16:23:50 UTC (rev 225) @@ -1,8 +0,0 @@ -#!/bin/bash - -echo "Changing current debug state from full debug to full performance" - -patch -p0 <scst-full_perf.patch && \ -patch -p0 <usr-full_perf.patch && \ -patch -p0 <qla2x00t-full_perf.patch && \ -patch -p0 <iscsi-full_perf.patch Deleted: trunk/debug2release =================================================================== --- trunk/debug2release 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/debug2release 2007-11-26 16:23:50 UTC (rev 225) @@ -1,8 +0,0 @@ -#!/bin/bash - -echo "Changing current debug state from full debug to release" - -patch -p0 <scst-release.patch && \ -patch -p0 <usr-release.patch && \ -patch -p0 <qla2x00t-release.patch && \ -patch -p0 <iscsi-release.patch Modified: trunk/iscsi-scst/README =================================================================== --- trunk/iscsi-scst/README 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/iscsi-scst/README 2007-11-26 16:23:50 UTC (rev 225) @@ -153,5 +153,7 @@ * Alexey Kuznetsov <ku...@ms...> for comments and help in debugging + + * Tomasz Chmielewski <ma...@wp...> for testing and suggestions Vladislav Bolkhovitin <vs...@vl...>, http://scst.sourceforge.net Modified: trunk/iscsi-scst/kernel/iscsi_dbg.h =================================================================== --- trunk/iscsi-scst/kernel/iscsi_dbg.h 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/iscsi-scst/kernel/iscsi_dbg.h 2007-11-26 16:23:50 UTC (rev 225) @@ -99,6 +99,7 @@ #else /* defined(DEBUG) || defined(TRACING) */ #define TRACE_CONN_CLOSE(format, args...) {} +#define TRACE_CONN_CLOSE_DBG(format, args...) {} #define TRACE_NET_PAGE(format, args...) {} #endif Deleted: trunk/perf2debug =================================================================== --- trunk/perf2debug 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/perf2debug 2007-11-26 16:23:50 UTC (rev 225) @@ -1,8 +0,0 @@ -#!/bin/bash - -echo "Changing current debug state from full performance to full debug" - -patch -p0 -R <scst-full_perf.patch && \ -patch -p0 -R <usr-full_perf.patch && \ -patch -p0 -R <qla2x00t-full_perf.patch && \ -patch -p0 -R <iscsi-full_perf.patch Deleted: trunk/release2debug =================================================================== --- trunk/release2debug 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/release2debug 2007-11-26 16:23:50 UTC (rev 225) @@ -1,8 +0,0 @@ -#!/bin/bash - -echo "Changing current debug state from release to full debug" - -patch -p0 -R <scst-release.patch && \ -patch -p0 -R <usr-release.patch && \ -patch -p0 -R <qla2x00t-release.patch && \ -patch -p0 -R <iscsi-release.patch Modified: trunk/scst/README =================================================================== --- trunk/scst/README 2007-11-16 18:46:02 UTC (rev 224) +++ trunk/scst/README 2007-11-26 16:23:50 UTC (rev 225) @@ -594,9 +594,9 @@ ========= is optimized currently rather for development and bug hunting, than for performance. -If you use SCST version taken directly from its SVN repository, you can +If you use SCST version taken directly from the SVN repository, you can set the above options, except ALLOW_PASSTHROUGH_IO_SUBMIT_IN_SIRQ, using -debug2perf script file. +debug2perf Makefile target. 4. For kernel: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |