| 1 |
Persistent Memory Development Kit |
| 2 |
|
| 3 |
This is src/test/pmem_is_pmem_posix/README. |
| 4 |
|
| 5 |
This test is Posix specific. |
| 6 |
|
| 7 |
This directory contains a unit test for pmem_is_pmem(). |
| 8 |
|
| 9 |
The program in pmem_is_pmem_posix.c takes a list of fake memory regions |
| 10 |
(an address and a length) and modifies the internal file map tracking list by adding |
| 11 |
or removing given region, depending on the op argument ('a' - add, 'r' - remove). |
| 12 |
It arranges for pmem_is_pmem() to use this fake list of file mappings when |
| 13 |
looking up the range. |
| 14 |
|
| 15 |
usage: pmem_is_pmem_posix op addr len [op addr len]... |
| 16 |
|
| 17 |
op is one of: 'a' (add), 'r' (remove), 't' (test), |
| 18 |
'f' (fault_injection for util_range_register), |
| 19 |
's' (fault_injection for util_range_split) |
| 20 |
addr is interpreted as a hex value, len as a decimal value unless it |
| 21 |
starts with 0x. If op argument is 't', then addr/len pair is tested against |
| 22 |
the current list of memory regions. |