poll-loop: Add support for logging the reason for wakeups.
authorBen Pfaff <blp@nicira.com>
Wed, 4 Feb 2009 18:54:32 +0000 (10:54 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 6 Feb 2009 23:07:50 +0000 (15:07 -0800)
commit399ebef23f38d1fc6a1c65b21f15b2999c9663fc
tree4fc8841f94abb27086c6310a2d7f5f9f2973bd45
parent10cd7694a4948e613d308448646b73da9a848cc7
poll-loop: Add support for logging the reason for wakeups.

It is useful to log the reason for wakeups, to debug why a program is
waking up more often than it should (for example, consuming 100% CPU load
for no apparent reason).  This adds that logging at DBG level in the
poll loop.
lib/poll-loop.c