#include "aprobe.h"
probe thread
{
    probe "IPC::ReadfromMsgQueue(Msg)"
    {
     int i, *my_ptr;
     on_entry
        my_ptr = (int*) $Msg; /* save the pointer */
     on_exit
        for (i=0;i<5;i++)
       { *my_ptr = 42;
           my_ptr++; }
     }
 }

Example 5: Corrupting the first five words of the buffer to be 42.

Back to Article