summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ioat/ioatcontrol.87
-rw-r--r--tools/tools/ioat/ioatcontrol.c20
2 files changed, 18 insertions, 9 deletions
diff --git a/tools/tools/ioat/ioatcontrol.8 b/tools/tools/ioat/ioatcontrol.8
index 9e156fd..59539f7 100644
--- a/tools/tools/ioat/ioatcontrol.8
+++ b/tools/tools/ioat/ioatcontrol.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 14, 2015
+.Dd May 27, 2016
.Dt IOATCONTROL 8
.Os
.Sh NAME
@@ -62,7 +62,8 @@ driver on a specific hardware channel.
The arguments are as follows:
.Bl -tag -width Ds
.It Fl c Ar period
-Configure the channel's interrupt coalescing period, in microseconds.
+Configure the channel's interrupt coalescing period, in microseconds
+(defaults to 0).
.It Fl E
Test non-contiguous 8k copy.
.It Fl f
@@ -92,7 +93,7 @@ is a kernel virtual address (by default,
.Ar address
is assumed to be a physical address)
.It Fl V
-Dump the resulting hex to syslog
+Verify copies/fills for accuracy
.It Fl w
Write to the specified
.Ar address
diff --git a/tools/tools/ioat/ioatcontrol.c b/tools/tools/ioat/ioatcontrol.c
index 32decc7..8556217 100644
--- a/tools/tools/ioat/ioatcontrol.c
+++ b/tools/tools/ioat/ioatcontrol.c
@@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
#include <sysexits.h>
#include <unistd.h>
@@ -48,14 +49,19 @@ static void
usage(void)
{
- printf("Usage: %s [-E|-f|-m] OPTIONS <channel #> <txns> [<bufsize> "
+ printf("Usage: %s [-c period] [-EfmVz] channel-number num-txns [<bufsize> "
"[<chain-len> [duration]]]\n", getprogname());
- printf(" %s -r [-v] OPTIONS <channel #> <addr> [<bufsize>]\n\n",
+ printf(" %s -r [-c period] [-vVwz] channel-number address [<bufsize>]\n\n",
getprogname());
- printf(" OPTIONS:\n");
- printf(" -c <period> - Enable interrupt coalescing (us)\n");
- printf(" -V - Enable verification\n");
- printf(" -z - Zero device stats before test\n");
+ printf(" -c period - Enable interrupt coalescing (us) (default: 0)\n");
+ printf(" -E - Test non-contiguous 8k copy.\n");
+ printf(" -f - Test block fill (default: DMA copy).\n");
+ printf(" -m - Test memcpy instead of DMA.\n");
+ printf(" -r - Issue DMA to or from a specific address.\n");
+ printf(" -V - Enable verification\n");
+ printf(" -v - <address> is a kernel virtual address\n");
+ printf(" -w - Write to the specified address\n");
+ printf(" -z - Zero device stats before test\n");
exit(EX_USAGE);
}
@@ -104,6 +110,8 @@ main(int argc, char **argv)
bool fflag, rflag, Eflag, mflag;
unsigned modeflags;
+ memset(&t, 0, sizeof(t));
+
fflag = rflag = Eflag = mflag = false;
modeflags = 0;
OpenPOWER on IntegriCloud