]> code.delx.au - pulseaudio/commit
Subject: rtpoll: better support for DEBUG_TIMING logs
authorPierre-Louis Bossart <pierre-louis.bossart@intel.com>
Wed, 23 Dec 2009 19:57:03 +0000 (13:57 -0600)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Jan 2010 20:27:25 +0000 (21:27 +0100)
commit0e47065fe5a410bcb7c367c23fc4d99b71fd82b2
treedb673f61f6579b58a57ebedadbb1c54ec540c666
parenta282eadb88f26cea183399dba267d619bbdcd6df
Subject: rtpoll: better support for DEBUG_TIMING logs

On all the platforms I tested, PulseAudio is frequently awaken and
doesn't sleep for the duration specified for the poll timeout.
Sometimes wake-ups occur within milliseconds of the poll call for no
good reason; this seems to be related to ALSA issues (see my posts on
the ALSA mailing list on null poll events).
This patch enables a better log of requested sleep times v. actual
sleep times. Enable DEBUG_TIMING to see actual messages. Please let me
know if you see odd behaviors like the one below
- Pierre

E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 188 ms
E: rtpoll.c: Process time 0 ms; sleep time 48 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 139 ms
E: rtpoll.c: Process time 0 ms; sleep time 49 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 189 ms
E: rtpoll.c: Process time 0 ms; sleep time 0 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 189 ms
E: rtpoll.c: Process time 0 ms; sleep time 49 ms
src/pulsecore/rtpoll.c