Skip to content

Signed-off-by: Ray Karrenbauer <[email protected]> #504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions jobs/dmatest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
suite: dmatest
testcase: dmatest
category: functional

dmatest:
timeout:
- 2000
iterations:
- 1
# channel:
# - dma0chan0
run:
- 1
2 changes: 1 addition & 1 deletion lib/stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LinuxTestcasesTableSet
autonuma-benchmark adrestia kernbench rt-app migratepages intel-ipsec-mb
simd-stress bpftrace stress-ng coremark tinymembench pybench phpbench lz4-test openssl-speed].freeze
LINUX_TESTCASES =
%w[analyze-suspend boot blktests cpu-hotplug ext4-frags ftq ftrace-onoff fwq
%w[analyze-suspend boot blktests cpu-hotplug dmatest ext4-frags ftq ftrace-onoff fwq
galileo irda-kernel kernel-builtin kernel-selftests kvm-unit-tests kvm-unit-tests-qemu
leaking-addresses lkvs locktorture ltp mce-test otc-ddt piglit pm-qa nvml qat
qemu rcuscale rcutorture suspend suspend-stress trinity ndctl nfs-test hwsim
Expand Down
12 changes: 12 additions & 0 deletions programs/dmatest/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
short_description: >

description: >

homepage:

parameters:
runtime:
scale_type:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, these 2 parameters are not aligned to dmatest.yaml, maybe need rename to use iterations or update dmatest.yaml.


results:

22 changes: 22 additions & 0 deletions programs/dmatest/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
# - timeout
# - iterations
# - run

# checks if dmatest is an existing module, and if it is, run it
if modinfo dmatest | grep -q "ERROR: Module dmatest not found"; then
echo "ERROR: Module dmatest not found."
exit 1
else
# clear the kernel log, since dmatest writes to it and we wanna see what it outputs
dmesg -c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, usually we'd like to keep all dmesg since there could be other boot warnings before test run. And in order to analyze the dmatest results, one approach is to grep the needed info to output, like

dmesg | grep "qat_dev.* started .* acceleration engines"
dmesg | grep torture:

Then it requires programs/dmatest/parse to analyze the output to generate test stats, refer to programs/rcutorture/parse

echo "Running dmatest..."
modprobe dmatest timeout=$timeout iterations=$iterations run=$run
dmesg
# dmatest has been run, now remove the module
# echo "dmatest complete, now removing..."
modprobe -r dmatest
echo "Done."
exit 0
fi