timeval: Remove backtrace feature.
authorBen Pfaff <blp@nicira.com>
Fri, 12 Jul 2013 00:02:12 +0000 (17:02 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 12 Jul 2013 00:02:12 +0000 (17:02 -0700)
commit94f3e5269e93e85001b078fd475217c997bbba70
treed5f2ce407cc50458ca69bf885ff21969b0a1987d
parentbc7ad7d4740b10d08249b2e8017c766396ff53ce
timeval: Remove backtrace feature.

The backtrace feature of timeval is useful because it provides a "poor
man's profile" view of Open vSwitch.  But it is not likely to be useful in
a multithreaded process, because signal delivery doesn't necessarily follow
the profile when there is more than one thread.  (A signal in a
multithreaded process are delivered to an arbitrary thread.)

Another problem with the backtrace feature is that it is difficult for
format_backtraces() to synchronize properly with the signal handler in a
multithreaded process.  In a single-threaded process, it can just block
the signal handler, but in a multithreaded process this does not prevent
signal delivery to threads other than the one running format_backtrace().

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ed Maste <emaste@freebsd.org>
lib/poll-loop.c
lib/timeval.c
lib/timeval.h