Skip to content

Commit

Permalink
Turn afutests README usage text into code block.
Browse files Browse the repository at this point in the history
This fixes issue OpenCAPI#24.

Signed-off-by: Philippe Bergheaud <[email protected]>
  • Loading branch information
philippe56 committed Jan 15, 2019
1 parent 8ea4b9a commit 4bc19f6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
57 changes: 29 additions & 28 deletions afutests/afp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,32 @@ Usage

$ ../../afuobj/ocxl_afp3

Usage: ocxl_afp3 [ options ]
--tags_ld Number of tags for loads. Default=0
--tags_st Number of tags for stores. Default=0
0 - 0 tags (disabled)
1 - 1 tag
2 - 2 tags
3 - 4 tags
4 - 16 tags
5 - 64 tags
6 - 256 tags
7 - 512 tags
--size_ld Data size, in Bytes, for loads.
Supported values: 64, 128, 256. Default=128
--size_st Data size, in Bytes, for stores.
Supported values: 64, 128, 256. Default=128
--npu_ld Use rd_wnitc.n for loads. Default is rd_wnitc
--npu_st Use dma_w.n for stores. Default is dma_w
--num Number of times to check perf counts. Default is 3
--wait Amount of seconds to wait between perf count reads.
Default is 2
--prefetch Initialize buffer memory
--offsetmask Determines how much of buffer to use.
Default 512kB. Valid Range: 4K-512M.
Format: NumberLetter, e.g. 4K, 512K, 1M, 512M
--timeout Default=1 seconds
--verbose Verbose output
--help Print this message

```
Usage: ocxl_afp3 [ options ]
--tags_ld Number of tags for loads. Default=0
--tags_st Number of tags for stores. Default=0
0 - 0 tags (disabled)
1 - 1 tag
2 - 2 tags
3 - 4 tags
4 - 16 tags
5 - 64 tags
6 - 256 tags
7 - 512 tags
--size_ld Data size, in Bytes, for loads.
Supported values: 64, 128, 256. Default=128
--size_st Data size, in Bytes, for stores.
Supported values: 64, 128, 256. Default=128
--npu_ld Use rd_wnitc.n for loads. Default is rd_wnitc
--npu_st Use dma_w.n for stores. Default is dma_w
--num Number of times to check perf counts. Default is 3
--wait Amount of seconds to wait between perf count reads.
Default is 2
--prefetch Initialize buffer memory
--offsetmask Determines how much of buffer to use.
Default 512kB. Valid Range: 4K-512M.
Format: NumberLetter, e.g. 4K, 512K, 1M, 512M
--timeout Default=1 seconds
--verbose Verbose output
--help Print this message
```
3 changes: 2 additions & 1 deletion afutests/memcpy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Usage
$ ../../afuobj/ocxl_memcpy -A # Test memcpy AFU atomic compare and swap
$ ../../afuobj/ocxl_memcpy -a # Test memcpy AFU increment

```
Usage: ocxl_memcpy [ options ]
Options:
-A Run the atomic compare and swap test
Expand All @@ -27,4 +28,4 @@ Usage
-r Reallocate the destination buffer in between 2 loops
-s <bufsize> Copy this number of bytes (default 2048)
-t <timeout> Seconds to wait for the AFU to signal completion

```

0 comments on commit 4bc19f6

Please sign in to comment.