-
Notifications
You must be signed in to change notification settings - Fork 173
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
short_description: > | ||
|
||
description: > | ||
|
||
homepage: | ||
|
||
parameters: | ||
runtime: | ||
scale_type: | ||
|
||
results: | ||
|
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
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 | ||
|
There was a problem hiding this comment.
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.