This is a nonsensical script that watches a PID from the time the script was started until the PID exits, then reports the time. This is kind of like the ÒwaitÓ command. The point here is to demonstrate several different probe definitions.
NOTE: timeinsec fell out of scope in the syscall action block when run on TL3. I initially printed elapsed time in the syscall action block to save space in the slide Ð but consistently got a value of 0. Explicit global declarations and references made no difference to the outcome. This problem disappeared once the system went to TL4.