Commit Graph

121 Commits

Author SHA1 Message Date
Bart Van Assche
9c8f290140 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1509 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-15 17:34:22 +00:00
Bart Van Assche
2032370cca svn merge -c1492 https://scst.svn.sourceforge.net/svnroot/scst/branches/srpt-separate-rx-tx-buffers/scripts
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-07 09:06:03 +00:00
Bart Van Assche
30fef168be Moved comma's in table header to the proper place.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-17 17:36:50 +00:00
Vladislav Bolkhovitin
23accb2e12 When converting the SCST source code into a series of upstream patches, SCST
is built via the kbuild infastructure. In kernel version 2.6.24 (commit
f77bf01425b11947eeb3b5b54685212c302741b8) the kbuild variable ccflags-y has
been introduced and the use of EXTRA_CFLAGS in kbuild makefiles has been
deprecated. The patch below converts SCST's in-tree makefiles such that these
use ccflags-y instead of EXTRA_CFLAGS when generating kernel patches for
kernel 2.6.24 or later.

Additionally, this patch removes the "default n" from the file
scst/kernel/in-tree/Kconfig.scst since this statement is superfluous.

The patch below has been tested by verifying the output of the following
command:
for ((v=23;v<=32;v++)); do rm -rf re* && scripts/run-regression-tests 2.6.$v; done

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-11 19:16:38 +00:00
Bart Van Assche
af5ae6eeb7 Do not try to include files marked for deletion.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1427 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-04 20:05:53 +00:00
Bart Van Assche
4a72d7efa3 Added command-line option -w.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1321 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 13:17:14 +00:00
Bart Van Assche
7f1e235150 Added command-line options -m and -M.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1316 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-04 12:52:17 +00:00
Bart Van Assche
a907dc6d2e Made sure that all double blank lines are converted into single blank lines.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1293 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 13:18:03 +00:00
Bart Van Assche
e63fbfd2f0 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1292 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 13:17:13 +00:00
Bart Van Assche
a068429f5d Delete double blank lines from the input.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1287 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-28 10:54:11 +00:00
Bart Van Assche
9389987264 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1286 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-28 10:43:22 +00:00
Bart Van Assche
12c4889bfa Option -f is now a per-kernel option instead of a global option.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1278 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-25 13:28:02 +00:00
Bart Van Assche
9d89f0a77f Updated copyright statement.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-25 13:27:17 +00:00
Bart Van Assche
9b1c4bd639 TRACE_ENTRY() / TRACE_EXIT*() statements are now filtered from the output
when option -u has been specified.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1276 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-25 13:26:49 +00:00
Bart Van Assche
0c9d80e58e - TRACE_EXIT_HRES() statements are now also filtered.
- Hunk headers are now updated properly. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1275 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-25 13:25:10 +00:00
Bart Van Assche
4b26187063 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1274 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-25 12:39:10 +00:00
Bart Van Assche
a0aec0ddc1 Added per-kernel options -nc and -ns, which allow to disable the
checkpatch and the sparse run respectively.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1272 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-25 10:33:09 +00:00
Bart Van Assche
0c3c7bc193 run-regression-tests:
- Adding the suffix "-u" to a kernel version will make the tests to be run
  with generate-kernel-patch -u ${kernel_version} instead of
  generate-kernel-patch ${kernel_version}.
generate-kernel-patch:
- sBUG(...) and sBUG_ON(...) are now replaced by BUG(...) and BUG_ON(...)
  respectively.
- Option -n does no longer disable the above substitution.
- Source file scst/src/scst_proc.c is now excluded when option -u is specified.
specialize-patch:
- Replaced variable delete_disabled_code by blank_deleted_lines. While setting
  the former variable had the effect of deleting disabled code, the latter
  has the effect of replacing disabled code by blank lines.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1271 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-25 09:46:40 +00:00
Bart Van Assche
51892c42d8 The generate-kernel-patch option -u does now enable #undef CONFIG_SCST_PROC.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1265 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-24 07:48:44 +00:00
Bart Van Assche
b08548b174 Added debug2perf and disable_proc configurations to the regression tests.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 10:57:36 +00:00
Bart Van Assche
f1c41721ea Re-enabled the debug2release build.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1251 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 19:14:47 +00:00
Bart Van Assche
ef11d133df Prepared switch to "make debug2release".
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 19:05:21 +00:00
Bart Van Assche
64803db9f1 When command-line option -u is passed to scripts/generate-kernel-patch,
undefine the preprocessor symbol
CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 18:26:19 +00:00
Bart Van Assche
a8414808ab Only extract the kernel tree when it's needed, i.e. for the 2.6.26.* kernels.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-21 20:03:39 +00:00
Bart Van Assche
7c9a154e05 Added support for continued lines.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1234 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-21 19:45:35 +00:00
Bart Van Assche
99d9057717 Temporarily disabled release build testing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-21 19:43:48 +00:00
Bart Van Assche
c0cc23e7f8 Fixed typo.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-15 07:48:39 +00:00
Bart Van Assche
c821d226f3 Run a full check not only on the first specified kernel version but also on kernel version 2.6.26.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1219 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-15 07:15:56 +00:00
Bart Van Assche
b9528d1407 Added variable generating_upstream_patch_defined. When set to 1, this
variable tells the script specialize-patch to treat the preprocessor
symbol GENERATING_UPSTREAM_PATCH as defined.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1218 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-15 07:14:54 +00:00
Bart Van Assche
c031d72333 Added command-line option -u to scripts/generate-kernel-patch, which has
the following effect:
- Exclude the put_page_callback patch.
- Enable #define GENERATING_UPSTREAM_PATCH.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-15 07:12:09 +00:00
Bart Van Assche
68e136e779 Made sure that patch generation also works for other kernel versions than 2.6.26.8.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-14 17:10:46 +00:00
Bart Van Assche
23aeb6590f Apply the 2.6.31 kmemcheck patch not only to current but also to future 2.6.31.* kernels since the change is small that the submitted patch will be integrated.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1210 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-14 14:21:19 +00:00
Bart Van Assche
2a359798cf Applied fix for sparse warning to 2.6.31.4 too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1209 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-14 07:07:53 +00:00
Bart Van Assche
45523183e4 Made sure all per-hunk state variables are initialized properly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-12 17:40:24 +00:00
Bart Van Assche
17c48b03f4 Reverted r1199: this revision was an attempt to eliminate the differences
in patch order between the systems on which this script is run. Since the
applied changes did not have any effect, I'm reverting this commit.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-12 17:17:03 +00:00
Bart Van Assche
bf91df1ad6 Sort patch names alphabetically.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1199 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-11 16:18:21 +00:00
Bart Van Assche
ebc6c27bde Reworked qla2x00t patch generation process:
- Moved qla2x00t patch generation code from qla2x00t/Makefile to
  qla2x00t/extract-qla2xxx-orig and qla2x00t/generate-in-tree-patches.
  Restored qla2x00t/Makefile to r1104.
- scripts/run-regression-tests now passes the full kernel version (including
  patch level) to scripts/generate-kernel-patch.
- scripts/generate-kernel-patch can now generate patches for the files
  in drivers/scsi/qla2xxx for any kernel version instead of only 2.6.26.8.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1198 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-11 15:54:04 +00:00
Bart Van Assche
19d5af487e Added a reference to the submitted kernel patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-11 11:42:34 +00:00
Bart Van Assche
2337301ddc Added command-line option -k, which makes run-regression-tests consume
less disk space when running the regression test for multiple kernel
versions.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-11 09:48:36 +00:00
Bart Van Assche
955405ff6b Added a kernel patch for a 2.6.31 regression.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1193 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-10 18:04:02 +00:00
Bart Van Assche
9d10da40b9 Made sure that ls does not print an error message when no matches are
found for the specified file pattern.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-10 17:55:37 +00:00
Vladislav Bolkhovitin
6e2c69c4c4 The current status of the QLogic target driver in the SCST project is as
follows:
- Building the QLogic target driver is possible by following the instructions
 in qla2x00t/qla2x00-target/README.
- Some but not all of the qla2x00-target code is included in the output of
 scripts/generate-kernel-patch. This is unfortunate because it is the output
 of this script that is posted to the LKML each time SCST is submitted for
 review.
- Most of the qla2x00-target code is checked during the nightly build by
 checkpatch. None of the qla2x00-target code is checked during the nightly
 build by sparse.

The patch below makes sure that all of the qla2x00-target code is included in
the generate-kernel-patch output and also that all of the qla2x00-target code
is checked during the nightly build by both checkpatch and sparse. This has
been realized by including the diff of the linux-2.6.26.8/drivers/scsi/qla2xxx
source files and the source files in qla2x00t/*[ch] as individual patches under
qla2x00t/in-tree-patches. These patches are generated from downloaded
linux-2.6.26.8 sources and the sources in the SCST SVN repository.

The next step is to fix the checkpatch and sparse warnings triggered by the
qla2x00-target code and to port the latest qla2xxx patches to the SCST
qla2x00t implementation.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-08 16:53:17 +00:00
Bart Van Assche
393c423380 Excluded qla2x00t from local build because compiling it is only possible after having modified the local kernel headers.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 07:03:29 +00:00
Bart Van Assche
192e2eff4f Added qla2x00t to the nightly build.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 18:27:54 +00:00
Bart Van Assche
81bf548098 - Added command-line option -j, which allows to use fio for measuring
I/O times instead of dd.
- For asynchronous (buffered) write tests with dd, switched from
  sync-after-every-write to sync-at-end.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1121 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-20 12:11:12 +00:00
Bart Van Assche
a003cea218 Do not only remove references of SCSI_EXEC_REQ_FIFO_DEFINED / SCST_IO_CONTEXT
but also their definition.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-06 12:02:49 +00:00
Bart Van Assche
9d4e2f9399 Refinements / bug fixes of the changes introduced in the previous commit:
- Only replace sBUG/sBUG_ON by BUG/BUG_ON when this macro is being used, not
  in its definition.
- Fixed bugs in algorithm for preserving the original code during a sparse run.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-06 11:09:21 +00:00
Bart Van Assche
aaf2ed455d Modified scripts invoked during a regression test run such that the line numbers printed by sparse match those of the SCST source files present in the Subversion repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1068 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-02 16:42:26 +00:00
Bart Van Assche
d9bc8bbff8 Fixed bug introduced in the previous revision of the specialize-patch
script: empty lines after #if ... #else ... #endif blocks were deleted.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1058 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-16 12:18:52 +00:00
Bart Van Assche
8c029b22ec Whether or not SCSI_EXEC_REQ_FIFO_DEFINED and SCST_IO_CONTEXT are defined
does now depend on their definition in the per kernel-version patches.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-14 19:34:55 +00:00