
444
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-O n
Override strace’s built-in timing estimates, and just subtract n
microseconds from the timing of each system call to adjust for
the time it takes to measure the call.
-p pid
Attach to the given process ID and begin tracking. strace can
track more than one process if more than one option -p is
given. Type Ctrl-C to end the trace.
-q Quiet mode. Suppress attach and detach messages from
strace.
-r Relative timestamp. Print time in microseconds between
system calls.
-s n
Print only the first n characters of a string. Default value is 32.
-S value
Sort output of -c option by the given value. value may be calls,
name, time, or nothing. Default is time.
-T Print time spent in each system call.
-t Print time of day on each line of output.
-tt Print time of day with microseconds on each line of output.
-ttt Print timestamp on each line as the number of seconds and
microseconds since the Epoch.
-u username
Run command as username. Needed when tracing setuid and
setgid programs.
-V Print version and exit.
-v Verbose. Do not abbreviate structure information.
-x Print all non-ASCII strings in hexadecimal.
-xx Print all strings in hexadecimal.
strfile
strfile [options] input_file [output_file]
unstr [-c delimiter] input_file[.ext] [output_file]
strfile creates a random-access file ...