alsa-utils/axfer/test
Takashi Sakamoto 2314d746b9 axfer: test: use memfd_create() for container-test
The container test program writes audio data frame to file, and read
them from the file, then validate them. For the operations, usage of
any in-memory file is good to shorten time of overall operations.

This commit uses shm via memfd_create(). As a result, overall time to
run is shorten one half of before, depending on machine environment.

I note that we can achieve the same result by using O_TMPFILE flag in
open(2) system call, however the implementation of O_TMPFILE is to add
i-node without name on underling file system, thus it has overhead
depending on implementation in each file system. On the other hand,
memfd_create() is directly relevant to shm and expected to be less
overhead.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-03-11 09:30:02 +01:00
..
container-test.c axfer: test: use memfd_create() for container-test 2021-03-11 09:30:02 +01:00
generator.c axfer: test: fix invalid comparison of 64 bit storage in ILP32 data type 2019-07-31 15:58:46 +02:00
generator.h axfer: add unit test for container interface 2018-11-13 12:04:25 +01:00
Makefile.am axfer: add missing header file of unit test to distribution 2019-01-29 16:48:00 +01:00
mapper-test.c axfer: maintain lifetime of file descriptor outside of container module 2021-03-11 09:28:12 +01:00
run-test-in-tmpdir.sh axfer: test - add run-test-in-tmpdir.sh script 2021-03-06 08:37:16 +01:00