On 10 July 2013 19:03, Ben Pfaff <b...@nicira.com> wrote:
> 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 <b...@nicira.com>

Acked-by: Ed Maste <ema...@freebsd.org>
X-CudaMail-Whitelist-To: dev@openvswitch.org
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to