DynamoRIO
create_annotation.p3

To create the annotation source file, first copy core/lib/dr_annotations.c:

#include "dr_annotations.h"
DR_DEFINE_ANNOTATION(char, dynamorio_annotate_running_on_dynamorio, (void), return 0)
DR_DEFINE_ANNOTATION(unsigned int, dynamorio_annotate_log, (const char *format, ...),
return 0)

Note that the last argument to the macro specifies the body of the annotation function, which in the case of these annotations must contain a return statement because the annotations are non-void.

[ prev | next ]