#include "aprobe.h"
probe thread
{
    probe "compute_factorial"
    {
      on_entry
        if ($n <0) {
            log ("Error: factorial called with", $n);
           ap_LogTraceback(99); 
           exit(-1);} 
     }
}

Example 7: Adding an assertion.

Back to Article