diff options
-rw-r--r-- | strace.1 | 4 | ||||
-rw-r--r-- | strace.c | 7 |
2 files changed, 10 insertions, 1 deletions
@@ -220,7 +220,8 @@ Here the second argument represents the full set of all signals. .B \-c Count time, calls, and errors for each system call and report a summary on program exit. On Linux, this attempts to show system time (CPU time spent -running in the kernel) independent of wall clock time. +running in the kernel) independent of wall clock time. If -c is used with +-f or -F (below), only aggregate totals for all traced processes are kept. .TP .B \-d Show some debugging output of @@ -254,6 +255,7 @@ If the option is in effect, each processes trace is written to .I filename.pid where pid is the numeric process id of each process. +This is incompatible with -c, since no per-process counts are kept. .TP .B \-F Attempt to follow @@ -314,6 +314,13 @@ char *argv[]; if ((optind == argc) == !pflag_seen) usage(stderr, 1); + if (followfork > 1 && cflag) { + fprintf(stderr, + "%s: -c and -ff are mutually exclusive options\n", + progname); + exit(1); + } + /* See if they want to run as another user. */ if (username != NULL) { struct passwd *pent; |