[ovs-dev] [PATCH] utilities: New helper ovs-backtrace-parse.

Ben Pfaff blp at nicira.com
Mon Oct 15 22:57:26 UTC 2012


On Mon, Oct 15, 2012 at 03:22:41PM -0700, Ethan Jackson wrote:
> The new ovs-backtrace-parse utility makes the output of ovs-appctl
> backtrace more human readable by removing duplicate traces and
> converting addresses to function names.
> 
> Signed-off-by: Ethan Jackson <ethan at nicira.com>

It's useful, but I had to work through a few issues.

It's hard to run on my desktop after copying out the backtrace output,
since I don't have ovs.dirs in $PYTHONPATH there.  But it doesn't
actually use ovs.dirs even though it imports it, so deleting the
import fixed that problem.

It's hard to run on XenServer, since XenServer doesn't have argparse
in its default $PYTHONPATH.  We do install it to
/usr/share/openvswitch/python (for that reason) on XenServer, so it
would be handy to automatically add that to the module load path
there.

It doesn't help if debug symbols are available but separated into
/usr/lib/debug (as we do on distro installs) and you forget to add "-e
/usr/lib/debug/usr/sbin/ovs-vswitchd.debug".

It could use at least a basic manpage (e.g. like ovs-parse-leaks.8),
otherwise this will make the Debian packaging insta-buggy if we
add it there.

We probably should distribute this everywhere we distribute
ovs-parse-leaks (you can grep for that).

Thanks for writing this!



More information about the dev mailing list