| Version |
Releasedate |
Description
|
| v0.0.3 |
05.10.2011 |
#### 04.10.2011
v0.0.3 /bs #### added code to support mixed functions (with and without arg0) |
| v0.0.2 |
09/2011 |
initial public release |
Note:
To enhance the dtrace script used you can either use the parameter -i
and/or -d or use the parameter -k to keep the dtrace script created by
dtrace_syscall. You can than edit and reuse with "dtrace -s".
xtrnaw7@t61p:/data/download$ /data/develop/scripts/dtrace_syscall -v -h
[29.09.2011 11:46:20] dtrace_syscall v0.0.2 started on Thu Sep 29
11:46:20 CEST 2011
[29.09.2011 11:46:20] No config file ("dtrace_syscall.conf") found (use
-C to create a default config file)
dtrace_syscall v0.0.2 - dtrace one or more system calls
Usage: dtrace_syscall [-v|+v] [-q|+q] [-h] [-l logfile|+l]
[-y|+y] [-n|+n]
[-D|+D]
[-a|+a] [-O|+O] [-f|+f] [-C] [-H] [-S n] [-V] [-T]
[-X]
[-k|+k] [-t n] [-p n] [-P|+P] [-c cmd] [-i clause]
[-L
dtracelogfile] [-d drace_cmds] [-e|+e] [sysfunction1] [...
[sysfunction#] ]
Note: Use -{switch} or --{longswitch} to turn an option on;
use +{switch} or ++{longswitch} to
turn an option off
The long format of the parameter
(--parameter/++parameter) is not supported by all ksh implementations
Parameter:
-v|+v - turn verbose mode on/off;
current value: y
Long
format: --verbose / ++verbose
-q|+q - turn quiet mode on/off; current
value: n
Long
format: --quiet / ++quiet
-h - show usage
Long
format: --help
-X - view examples
Long
format: --list_examples
-l - set the logfile
current
value: /var/tmp/dtrace_syscall.LOG
Long
format: --logfile
+l - do not write a
logfile
Long
format: ++logfile
-y|+y - assume yes to all questions or
not
Long
format: --yes / ++yes
-n|+n - assume no to all questions or not
Long
format: --no /++no
-D|+D - run main in single step mode
(and turn colors on); current value: n
Long
format: --debug / ++debug
-a|+a - turn colors on/off; current
value: n
Long
format: --color / ++color
-O|+O - overwrite existing files or not;
current value: n
Long
format: --overwrite / ++overwrite
-f|+f - force; do it anyway; current
value: n
Long
format: --force / ++force
-C - write a default
config file in the current directory and exit
Long
format: --writeconfigfile
-H - write extended
usage to STDERR and exit
Long
format: --doc
-S n - print error/warning
summaries:
n
= 0 no summariess, 1 = print error msgs,
2
= print warning msgs, 3 = print error and warning mgs
Current
value: 0
Long
format: --summaries
-V - write version
number to STDOUT and exit
Long
format: --version
-T - append STDOUT and
STDERR to the file "/var/tmp/dtrace_syscall.1442.tee.log"
Long
format: --tee
-k|+k - do/do not delete the drace
script used; current value: n )
Long
format: --keep_dtrace_script / ++keep_dtrace_script
-t n - trace only n sec/min/hours;
current value: 0;
use
0 to trace until stopped with CTRL-C
Long
format: --time_to_trace
-p n - trace only the PID n; this
parameter can be used more than one time
current
value:
Long
format: --pid
-c cmd - trace only the command cmd
current
value:
Long
format: --cmd
Note:
Use either -p or -c but not both; for commands with parameter use
a script
-P|+P - print arg0 of the dtraced
function(s); current value: y
Long
format: --printarg0
-L logfile
-
log file for dtrace messages
current
value:
Long
format: --dtrace_logfile
-i clause
-
add. clause for dtrace
current
value:
Long
format: --add_clause
-d dtrace_commands
-
add. dtrace commands
current
value:
Long
format: --add_drace_cmds
-e|+e - log endless
current
value: n
Long
format: --endless
-X - view examples and
exit
Long
format: --list_examples
[29.09.2011 11:46:20] The log file used was
"/tmp/dtrace_syscall.1442.TEMP"
[29.09.2011 11:46:20] dtrace_syscall v0.0.2 ended on Thu Sep 29
11:46:20 CEST 2011.
[29.09.2011 11:46:20] The RC is 1.