timeval: Add new "backtrace" appctl command.
authorEthan Jackson <ethan@nicira.com>
Fri, 12 Oct 2012 22:18:26 +0000 (15:18 -0700)
committerEthan Jackson <ethan@nicira.com>
Mon, 15 Oct 2012 02:36:39 +0000 (19:36 -0700)
commit9d232a6d578e1283c543b0a40f5915e39813ac21
tree1c440447059cab4c34202dad8c9df26bf5eb2a3b
parentb363bae4f802a07efec6e012075caf915e1e4fe5
timeval: Add new "backtrace" appctl command.

Often, it can be quite difficult to debug performance issues in
Open vSwitch.  Typically one needs to run something like gprof, but
that requires rebuilding and installing on the affected system
which is often problematic.  This patch adds a light weight
profiling solution which can be used in these situations.  The
ovs-appctl backtrace command prints out backtraces taken at 100
millisecond intervals over a 5 second period of time.  It is
currently only supported on systems which have the execinfo library
and enable time caching.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
configure.ac
lib/timeval.c