pulseaudio/src/tests
Ahmed S. Darwish 27d0a3b388 pstream: Support memfd blocks transport
Now that we have the necessary infrastructure to memexport and
mempimport a memfd memblock, extend that support higher up in the
chain with pstreams.

A PA endpoint can now _transparently_ send a memfd memblock to the
other end by simply calling pa_pstream_send_memblock() – provided
the block's memfd pool was earlier registered with the pstream.

If the pipe does not support memfd transfers, we fall back to
sending the block's full data instead of just its reference.

** Further details:

A single pstream connection usually transfers blocks from multiple
pools including the server's srbchannel mempool, the client's
audio data mempool, and the server's global core mempool.

If these mempools are memfd-backed, we now require registering
them with the pstream before sending any blocks they cover. This
is done to minimize fd passing overhead and avoid fd leaks.

Moreover, to support all these pools without hard-coding their
number or nature in the Pulse communication protocol itself, a new
REGISTER_MEMFD_SHMID command is introduced. That command can be
sent _anytime_ during the pstream's lifetime and is used for
creating on demand SHM ID to memfd mappings.

Suggested-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
2016-04-02 05:55:14 +02:00
..
alsa-mixer-path-test.c Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
alsa-time-test.c alsa-time-test: Make constants for channels and rate 2014-09-18 11:51:47 +02:00
asyncmsgq-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
asyncq-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
channelmap-test.c tests: modify channelmap-tets to use 'check' framework 2012-08-20 07:05:59 +05:30
close-test.c add a small test program for pa_close_all() 2008-05-18 19:12:59 +00:00
connect-stress.c pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
cpu-mix-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
cpu-remap-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
cpu-sconv-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
cpu-volume-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
cpulimit-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
extended-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
flist-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
format-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
get-binary-name-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
gtk-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
hook-list-test.c tests: modify hook-list-test to use 'check' framework 2012-08-20 07:05:59 +05:30
interpol-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
ipacl-test.c tests: modify ipacl-test to use 'check' framework 2012-08-20 07:06:00 +05:30
ladspa-dbus.py ladspa: Added a python script for testing. 2012-06-28 15:05:31 +03:00
lfe-filter-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
lo-latency-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
lo-test-util.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
lo-test-util.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
lock-autospawn-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
mainloop-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
Makefile build-sys: readd stub makefiles to subdirectories to make building with emacs easier 2012-05-15 14:17:58 +02:00
mcalign-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
memblock-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
memblockq-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
mix-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
mult-s16-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
once-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
pacat-simple.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
parec-simple.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
proplist-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
queue-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
remix-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
resampler-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
rtpoll-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
rtstutter.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
runtime-test-util.h tests: Extract PA_CPU_TEST* macros to separate header 2013-11-01 15:02:24 +01:00
sig2str-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
sigbus-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
smoother-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
srbchannel-test.c pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
stripnul.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
strlist-test.c Rename functions with "tostring" in the name to one with "to_string" to conform with the convention. 2015-09-25 17:29:02 +05:30
sync-playback.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
test-daemon.sh tests: Indicate failure in test-daemon.sh by returning 1 if any test fails. 2013-02-06 14:15:09 +02:00
thread-mainloop-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
thread-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
usergroup-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
utf8-test.c tests: modify utf8-test to use new 'check' test framework 2012-08-04 08:23:34 +02:00
volume-test.c tests: Fix test-suite failure on Alpha 2015-09-17 08:12:49 +02:00
volume-ui.py tests: show dB in volume-ui.py 2009-05-22 01:31:26 +02:00