Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/memory-model: Make checkghlitmus.sh use mselect7

The checkghlitmus.sh script currently uses grep to ignore non-C-language
litmus tests, which is a bit fragile. This commit therefore enlists the
aid of "mselect7 -arch C", given Luc Maraget's recent modifications that
allow mselect7 to operate in filter mode.

This change requires herdtools 7.52-32-g1da3e0e50977 or later.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

+1 -1
+1 -1
tools/memory-model/scripts/checkghlitmus.sh
··· 41 41 42 42 # Create a list of C-language litmus tests with "Result:" commands and 43 43 # no more than the specified number of processes. 44 - find litmus -name '*.litmus' -exec grep -l -m 1 "^C " {} \; > $T/list-C 44 + find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C 45 45 xargs < $T/list-C -r egrep -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' > $T/list-C-result 46 46 xargs < $T/list-C-result -r grep -L "^P${LKMM_PROCS}" > $T/list-C-result-short 47 47