ovs-ctl: Add additional options to strace wrapper.
authorEthan Jackson <ethan@nicira.com>
Wed, 27 Jun 2012 20:41:17 +0000 (13:41 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 27 Jun 2012 20:47:20 +0000 (13:47 -0700)
It's useful to know how long each system call took, and at what
time each system call happened.  In addition this patch causes
strace to print strings more fully allowing log messages to be seen
in the output.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
utilities/ovs-lib.in

index f8e2609..04ab85a 100644 (file)
@@ -118,7 +118,7 @@ start_daemon () {
             ;;
         strace)
             if (strace -V) > /dev/null 2>&1; then
-                set strace -D -ff -o "$logdir/$daemon.strace.log" "$@"
+                set strace -tt -T -s 256 -D -ff -o "$logdir/$daemon.strace.log" "$@"
             else
                 log_failure_msg "strace not installed, running $daemon without it"
             fi