Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When exactly are the “on_entry” and “on_exit” parts of a function probe executed?

0
10 Posted

When exactly are the “on_entry” and “on_exit” parts of a function probe executed?

0
10

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123