Package: strace
Version: 4.5.14-2
Severity: normal

[EMAIL PROTECTED]:~$ strace -T sleep 2 2>&1 | grep nanosleep
nanosleep({2, 0}, NULL)                 = 0 <2.000024>
[EMAIL PROTECTED]:~$ strace -T -c sleep 2 2>&1 | grep nanosleep
   nan    0.000000           0         1           nanosleep

Note that even though -T says the nanosleep() syscall takes about two full 
seconds, -c still 
says nanosleep took zero seconds.

Quoting the man page:
"
 -T  Show the time spent in system  calls.  This  records  the  time  difference
     between the beginning and the end of each system call.

 -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.
"

Either a fix (preferred) or a clarification of the man page to explain *why* -c 
ignores the -T 
option on Linux would be nice.

  Thanks! //Johan

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-686 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages strace depends on:
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries

strace recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to