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 */ }