A clarification on the -Z flag; this is not a panacea and it doesn't do
anything zany or ill-defined. It simply does this:
Permit probe descriptions that match zero probes. If the
-Z option is not specified, dtrace reports an error and
exits if any probe descriptions specified in D program
files (-s option) or on the command line (-P, -m, -f,
-n, or -i options) contain descriptions that do not
match any known probes.
In some situations you may need to use the -Z flag because the probe you
want to enable doesn't yet exist. For example, if a program dynamically opens
a module, specifying a probe in that as-to-yet unopened library will generate
an error. The -Z flag will suppress that error -- but you must still be
careful to accurately specify the probe. Here's an example of it's misuse:
# dtrace -n 'pid$target::mane:entry' -c date
dtrace: invalid probe specifier pid$target::mane:entry: probe description
pid741533::mane:entry does not match any probes
# dtrace -Z -n 'pid$target::mane:entry' -c date
dtrace: description 'pid$target::mane:entry' matched 0 probes
Tue Aug 26 09:17:26 PDT 2008
dtrace: pid 741535 has exited
I hope that helps.
Adam
--
Adam Leventhal, Fishworks http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
[email protected]