When exactly are the “on_entry” and “on_exit” parts of a function probe executed?
On AIX, Linux and Windows, the on_entry actions are executed before the first instruction of the function itself. In particular, the function’s local stack frame hasn’t been created yet. The on_entry actions are executed immediately after the SPARC save instruction has shifted the register window yet, but before any compiler-generated saves of parameters or other values. The on_exit actions are executed after the stack frame has been discarded, so local data is not available. The next (target program) instruction executed will be the one following the call to the probed function.