![]() |
|
|||
0001 #!/bin/sh 0002 # SPDX-License-Identifier: GPL-2.0+ 0003 # 0004 # Runs the C-language litmus tests matching the specified criteria. 0005 # Generates the output for each .litmus file into a corresponding 0006 # .litmus.out file, and does not judge the result. 0007 # 0008 # sh initlitmushist.sh 0009 # 0010 # Run from the Linux kernel tools/memory-model directory. 0011 # See scripts/parseargs.sh for list of arguments. 0012 # 0013 # This script can consume significant wallclock time and CPU, especially as 0014 # the value of --procs rises. On a four-core (eight hardware threads) 0015 # 2.5GHz x86 with a one-minute per-run timeout: 0016 # 0017 # --procs wallclock CPU timeouts tests 0018 # 1 0m11.241s 0m1.086s 0 19 0019 # 2 1m12.598s 2m8.459s 2 393 0020 # 3 1m30.007s 6m2.479s 4 2291 0021 # 4 3m26.042s 18m5.139s 9 3217 0022 # 5 4m26.661s 23m54.128s 13 3784 0023 # 6 4m41.900s 26m4.721s 13 4352 0024 # 7 5m51.463s 35m50.868s 13 4626 0025 # 8 10m5.235s 68m43.672s 34 5117 0026 # 9 15m57.80s 105m58.101s 69 5156 0027 # 10 16m14.13s 103m35.009s 69 5165 0028 # 20 27m48.55s 198m3.286s 156 5269 0029 # 0030 # Increasing the timeout on the 20-process run to five minutes increases 0031 # the runtime to about 90 minutes with the CPU time rising to about 0032 # 10 hours. On the other hand, it decreases the number of timeouts to 101. 0033 # 0034 # Note that there are historical tests for which herd7 will fail 0035 # completely, for example, litmus/manual/atomic/C-unlock-wait-00.litmus 0036 # contains a call to spin_unlock_wait(), which no longer exists in either 0037 # the kernel or LKMM. 0038 0039 . scripts/parseargs.sh 0040 0041 T=/tmp/initlitmushist.sh.$$ 0042 trap 'rm -rf $T' 0 0043 mkdir $T 0044 0045 if test -d litmus 0046 then 0047 : 0048 else 0049 git clone https://github.com/paulmckrcu/litmus 0050 ( cd litmus; git checkout origin/master ) 0051 fi 0052 0053 # Create any new directories that have appeared in the github litmus 0054 # repo since the last run. 0055 if test "$LKMM_DESTDIR" != "." 0056 then 0057 find litmus -type d -print | 0058 ( cd "$LKMM_DESTDIR"; sed -e 's/^/mkdir -p /' | sh ) 0059 fi 0060 0061 # Create a list of the C-language litmus tests with no more than the 0062 # specified number of processes (per the --procs argument). 0063 find litmus -name '*.litmus' -exec grep -l -m 1 "^C " {} \; > $T/list-C 0064 xargs < $T/list-C -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short 0065 0066 scripts/runlitmushist.sh < $T/list-C-short 0067 0068 exit 0
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |