Skip to content

Commit

Permalink
automated: linux: rcutorture: drop config checking
Browse files Browse the repository at this point in the history
No need to check for fragments since it can be built into the kernel and
then run on boot.
If the module is built into the kernel and no output is showing up, the
dmesg buffer might have been overwritten and then the buffer size can be
changed by adding 'log_buf_len=5M' to the kernel cmdline.

Signed-off-by: Anders Roxell <[email protected]>
  • Loading branch information
roxell committed Aug 1, 2023
1 parent 2e57db5 commit e253847
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions automated/linux/rcutorture/rcutorture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ done
install_deps "gzip" "${SKIP_INSTALL}"
create_out_dir "${OUTPUT}"

# Check kernel config.
if [ -f "/proc/config.gz" ]; then
test_cmd="gunzip -c /proc/config.gz | grep CONFIG_RCU_TORTURE_TEST=m"
elif [ -f "/boot/config-$(uname -r)" ]; then
test_cmd="grep CONFIG_RCU_TORTURE_TEST=m /boot/config-$(uname -r)"
fi
if [ -n "${test_cmd}" ]; then
tc_id="check-kernel-config"
skip_list="modprobe-rcutorture rctorture-start rmmod-rcutorture rcutorture-end"
run_test_case "${test_cmd}" "${tc_id}" "${skip_list}"
fi

# Insert rcutoruture kernel module.
dmesg -c > /dev/null
if lsmod | grep rcutorture; then
Expand Down

0 comments on commit e253847

Please sign in to comment.