[LTP] Test library API changes

Cyril Hrubis chrubis@suse.cz
Tue Feb 16 22:19:58 CET 2016


Hi!
The up to date code is at the same place as usual.
(https://github.com/metan-ucw/ltp)

Apart from added support of acquiring a device, checkpoints and
resource files the IPC was rewritten to shared memory.

Now the library, before the test is started, mmaps a page backed by a
file on /dev/shm/. The first few bytes are used for shared struct
results, the rest is used by checkpoints if checkpoints are needed. The
struct result values are incremented by gcc atomic operations (which is
thread safe as well), the open question is if we need a fallback to
inline assembler if these are not supported. Then there is a special
function to open checkpoint shm file from a process started by a exec (a
few of the testcases does so) since it must open the shm rather than a
file in a temporary directory.

There are still some rough edges and the code should be reviewed, but at
least 90% of the functionality is there and working.

As usuall comments are welcome :)

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list