poll-loop: Log backtraces when CPU usage is high.
authorEthan Jackson <ethan@nicira.com>
Mon, 22 Oct 2012 23:53:54 +0000 (16:53 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 25 Oct 2012 18:14:07 +0000 (11:14 -0700)
commitf43e80e023378a2c1ef18d3caee9b76d6d2a6d23
tree26bde690227c3e3ded1a5fe140a25ac605b61186
parent7d1563e9612e2f99df5da488981b5bc05fb88180
poll-loop: Log backtraces when CPU usage is high.

Often when debugging Open vSwitch, one will see in the logs that
CPU usage has been high for some period of time, but it's totally
unclear why.  In an attempt to remedy the situation, this patch
logs backtraces taken at regular intervals as a poor man's
profiling alternative.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/poll-loop.c
lib/timeval.c
lib/timeval.h