In this tutorial we'll create a simple client that will compute the average size of basic blocks executed (in instructions) weighted by their execution frequency. We start with an empty DynamoRIO client.

#include "dr_api.h"

DR_EXPORT void 
dr_init(client_id_t id)
{
    /* empty */
}

[ prev | next ]


  DynamoRIO API version 2.0.0 --- Thu Apr 22 00:18:19 2010