diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-03-04 04:09:31 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-04-15 00:21:17 -0400 |
commit | 3e5ccd866fdf3a1e1d4d2c08c81f861ad6798d32 (patch) | |
tree | 7ef2a3270021ef71912e1970683ec429f93d38b7 /Documentation | |
parent | 851b7e16a07dfda6178d4e35fea9a9e3eb8954ae (diff) |
dmatest: return actual state in 'run' file
The following command should return actual state of the test.
% cat /sys/kernel/debug/dmatest/run
To wait for test done the user may perform a busy loop that checks the state.
% while [ $(cat /sys/kernel/debug/dmatest/run) = "Y" ]
> do
> echo -n "."
> sleep 1
> done
> echo
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/dmatest.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/dmatest.txt b/Documentation/dmatest.txt index 9a90729bdee6..3e17b55a8ba3 100644 --- a/Documentation/dmatest.txt +++ b/Documentation/dmatest.txt | |||
@@ -36,6 +36,18 @@ in the original code. | |||
36 | 36 | ||
37 | Note that running a new test will stop any in progress test. | 37 | Note that running a new test will stop any in progress test. |
38 | 38 | ||
39 | The following command should return actual state of the test. | ||
40 | % cat /sys/kernel/debug/dmatest/run | ||
41 | |||
42 | To wait for test done the user may perform a busy loop that checks the state. | ||
43 | |||
44 | % while [ $(cat /sys/kernel/debug/dmatest/run) = "Y" ] | ||
45 | > do | ||
46 | > echo -n "." | ||
47 | > sleep 1 | ||
48 | > done | ||
49 | > echo | ||
50 | |||
39 | Part 3 - When built-in in the kernel... | 51 | Part 3 - When built-in in the kernel... |
40 | 52 | ||
41 | The module parameters that is supplied to the kernel command line will be used | 53 | The module parameters that is supplied to the kernel command line will be used |