Commit Graph

91 Commits

Author SHA1 Message Date
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
Bart Van Assche
2232922dd9 - The expression "defined(SCST_IO_CONTEXT)" is now replaced by "1".
- The following two lines and the first blank line below are now removed:
  +#define SCSI_EXEC_REQ_FIFO_DEFINED
  +#define SCST_IO_CONTEXT
- Hunks that do no longer contain any modifications because of the 
  previous steps are now removed from the output because patch otherwise
  complains.
- Added support for evaluating expressions containing the arithmetic
  operators *, /, +, -.
- Removed support for partial evaluation of expressions because it is too
  tricky to get this right due to operator precedence.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-14 18:26:58 +00:00
Bart Van Assche
edb8da8616 - Remove the line "+#define SCSI_EXEC_REQ_FIFO_DEFINED" from the generated
patch.
- Substitute "defined(SCSI_EXEC_REQ_FIFO_DEFINED)" by "1" in preprocessor
  statements.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1045 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-13 18:29:59 +00:00
Bart Van Assche
4d249a4112 Added command-line option -f, which allows to skip the test whether there is still data present.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1001 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-02 18:04:21 +00:00
Bart Van Assche
803e706181 Added a check for the device size before starting the test.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@962 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-19 07:18:51 +00:00
Bart Van Assche
b780be7a7b Various improvements:
- Display a clear warning if the user running this script does not have
  sufficient privileges to drop the VM caches.
- Made sure that header and data columns are aligned if dd reports an
  error, e.g. when trying to perform direct I/O on a device that does
  not support direct I/O.
- Made sure that header and data columns are aligned when running a
  read-only test (-r).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@961 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-18 11:55:59 +00:00
Bart Van Assche
29da0878e3 Added support for partial evaluation of && and || expressions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@957 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-15 15:55:20 +00:00
Bart Van Assche
950731c2e8 Simplified and generalized code for processing in-tree kernel patches.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@943 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 07:01:57 +00:00
Bart Van Assche
6947c6168e Added command-line option -t, which allows to drop the caches of the target too. Added dd flag conv=notrunc to write performance tests, which makes running blockdev-perftest on files instead of devices a lot easier.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-06 17:43:47 +00:00
Bart Van Assche
ed81fdc037 Fixed a bug that was introduced in the previous revision: the script entered an infinite loop when the size specified through -s was smaller than 64MB.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-03 19:54:09 +00:00
Bart Van Assche
9cc47f781a Ported from bash to sh and from GNU awk to POSIX awk. Runs now correctly on an unmodified Debian or Ubuntu system.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@924 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 17:55:32 +00:00
Bart Van Assche
992bff5645 Added readahead-${kernel_version}.patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@903 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 19:23:06 +00:00
Bart Van Assche
1f5216bc21 Split table header over two lines / columns are now lined up with the table header if all printed numbers are smaller than 10000.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 18:55:36 +00:00
Bart Van Assche
92dbb5eebf Made command-line option documentation more clear.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 10:59:54 +00:00
Bart Van Assche
5c4a41b656 - Added command-line option -i.
- Added additional columns with average transfer speed in MB/s, the
  standard deviation for this average, and the number of IOPS.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@897 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-11 18:59:00 +00:00
Bart Van Assche
29a7e1b926 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@882 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-22 11:02:45 +00:00
Bart Van Assche
706eee64fd Only apply patch d9ad8bc0ca823705413f75b50c442a88cc518b35 to kernels
2.6.29 up to and including 2.6.29.3 since this patch is included in
2.6.29.4 and higher and also in 2.6.30 and higher.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-20 16:48:14 +00:00
Bart Van Assche
0f13efa2b1 Added command-line option -r.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@852 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-12 18:53:11 +00:00
Bart Van Assche
69d545d77d Added the equivalent of #undef BACKPORT_LINUX_WORKQUEUE_TO_2_6_19.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@823 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 20:03:48 +00:00
Bart Van Assche
3e61c8b59e Bug fix: undefined macro's, e.g. RHEL_RELEASE_CODE, expand to the empty
string. The substitution for RHEL_RELEASE_CODE when it was not defined
was missing.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@788 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-18 09:12:39 +00:00
Bart Van Assche
9ad7406ef7 Added even more cache flushing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@766 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-10 18:41:48 +00:00
Bart Van Assche
624c2fb7e3 Flush all caches before starting a test.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@762 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-08 16:35:15 +00:00
Bart Van Assche
5bf646abe4 URL of sparse homepage is now printed in case sparse was not found.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@761 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-08 16:33:55 +00:00
Bart Van Assche
411301293a When multiple kernel versions have been specified in the argument list, only run checkpatch and sparse on the first specified kernel version. For the other kernel versions, compile the kernel source code but do not run checkpatch or sparse.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@757 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-08 08:11:06 +00:00
Bart Van Assche
fa075b2a77 - Added command-line option -q, which allows to suppress download messages.
- Disabled running "make headers_check" because it produces a lot of output
  with the 2.6.29 kernel, and none of the output applies to SCST.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@756 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-08 07:25:50 +00:00
Bart Van Assche
cd881f8729 Check for sparse before starting the regression tests.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@749 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-04 18:03:43 +00:00
Bart Van Assche
1541792b38 Changed usage slightly: kernel versions are now accepted without the switch -k.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@748 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-04 15:14:21 +00:00
Bart Van Assche
5687a49e80 Changes:
- Added command-line options -a, -d, -n and -s.
- If the syntax of the command-line options is incorrect, a usage text
  is displayed.
- Bug fix: log2_io_size is now honored even if the target device is larger
  than the specified size.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@747 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-04 09:12:20 +00:00
Bart Van Assche
92f2da2e57 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-29 08:50:52 +00:00
Bart Van Assche
9e5f29c3f6 - Added command-line option -d, which allows to specify a directory for
temporary regression test files.
- Added workaround for the problem that the branch profiling code in the
  2.6.29 kernel triggers a huge number of sparse warnings.
- Made sure that all tests print some output, even if successful.
- Improved summarizing of sparse warnings.
- Command-line option -j now works.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-24 19:08:29 +00:00
Bart Van Assche
1f2cbd53bb - Added command-line option -j (number of jobs that make should run
simultaneously).
- scripts/generate-kernel-patch is now only run once instead of three
  times per kernel version.
- Context imbalance warnings are no longer filtered from the output of
  sparse.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-23 19:58:18 +00:00