[ovs-dev] [PATCH] ovs-ctl: Add additional options to strace wrapper.

Ethan Jackson ethan at nicira.com
Wed Jun 27 20:44:00 UTC 2012


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 at nicira.com>
---
 utilities/ovs-lib.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
index f8e2609..04ab85a 100644
--- a/utilities/ovs-lib.in
+++ b/utilities/ovs-lib.in
@@ -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
-- 
1.7.10.2




More information about the dev mailing list