svn commit: r289080 - head/usr.bin/truss

Bryan Drewery bdrewery at FreeBSD.org
Fri Oct 9 20:47:31 UTC 2015


Author: bdrewery
Date: Fri Oct  9 20:47:29 2015
New Revision: 289080
URL: https://svnweb.freebsd.org/changeset/base/289080

Log:
  Let -c imply -S (hide signal output).
  
  Without this, the signals are shown seemingly randomly in the output before
  the final summary is shown.  This is especially noticeable when there is
  not much output from the application being traced.
  
  Discussed with:	jhb
  Relnotes:	yes

Modified:
  head/usr.bin/truss/main.c
  head/usr.bin/truss/truss.1

Modified: head/usr.bin/truss/main.c
==============================================================================
--- head/usr.bin/truss/main.c	Fri Oct  9 19:38:53 2015	(r289079)
+++ head/usr.bin/truss/main.c	Fri Oct  9 20:47:29 2015	(r289080)
@@ -111,7 +111,7 @@ main(int ac, char **av)
 			trussinfo->flags |= EXECVEARGS;
 			break;
 		case 'c': /* Count number of system calls and time. */
-			trussinfo->flags |= COUNTONLY;
+			trussinfo->flags |= (COUNTONLY | NOSIGS);
 			break;
 		case 'e': /* Print execve() environment strings. */
 			trussinfo->flags |= EXECVEENVS;

Modified: head/usr.bin/truss/truss.1
==============================================================================
--- head/usr.bin/truss/truss.1	Fri Oct  9 19:38:53 2015	(r289079)
+++ head/usr.bin/truss/truss.1	Fri Oct  9 20:47:29 2015	(r289080)
@@ -1,6 +1,6 @@
 .\" $FreeBSD$
 .\"
-.Dd October 5, 2015
+.Dd October 9, 2015
 .Dt TRUSS 1
 .Os
 .Sh NAME
@@ -37,7 +37,7 @@ Show the argument strings that are passe
 .Xr execve 2
 system call.
 .It Fl c
-Do not display individual system calls.
+Do not display individual system calls or signals.
 Instead, before exiting, print a summary containing for each system call:
 the total system time used,
 the number of times the call was invoked,


More information about the svn-src-head mailing list