Andrew Gallatin writes: > OK, so recursion does not work, and the probe will fire only once. > Drat. I'll just have to put up with a script that looks like something > I'd have flunked as a CS1 TA.. But if the language doesn't support > it, I guess there's not much to do.
The thing to remember is that it's intentional. The TA who passed remembers that the halting problem is undecidable (and also NP-hard but not NP-complete), and therefore it's not possible to know whether a given D script (a program) containing loops would be safe (would ever halt). Since one of the fundamental rules of dtrace is that it's safe to use, scripts that run forever cannot be allowed. -- James Carlson, Solaris Networking <[EMAIL PROTECTED]> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 _______________________________________________ dtrace-discuss mailing list [email protected]
