mieq: Provide better adaptability and diagnostics during mieq overflow
authorJeremy Huddleston <jeremyhu@apple.com>
Sun, 16 Oct 2011 05:51:30 +0000 (22:51 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Fri, 21 Oct 2011 07:32:03 +0000 (00:32 -0700)
commit7d153f25be678acf500236ae422b33d17e6cb7a6
treeb9b0cf496613185485e24dae57ffaec6fbc2a292
parent09eaa1f6f19f9a85a3cb74a18ac898162db451df
mieq: Provide better adaptability and diagnostics during mieq overflow

This patch changes from a static length event queue (512) to one that
starts at 128 and grows to 4096 as it overflows, logging each time it
grows.

This change also allows for multiple backtraces to be printed when the
server is wedged rather than just one.  This increased sampling should
help identify the true hog in cases where one backtrace might be
insufficient.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
mi/mieq.c