drcovlib.h File Reference

Header for DynamoRIO Code Coverage Library. More...

#include "drmgr.h"

Data Structures

struct  _drcovlib_options_t
 
struct  _drmodtrack_info_t
 

Typedefs

typedef struct _drcovlib_options_t drcovlib_options_t
 
typedef struct _drmodtrack_info_t drmodtrack_info_t
 

Enumerations

enum  drcovlib_status_t {
  DRCOVLIB_SUCCESS,
  DRCOVLIB_ERROR,
  DRCOVLIB_ERROR_INVALID_PARAMETER,
  DRCOVLIB_ERROR_INVALID_SETUP,
  DRCOVLIB_ERROR_FEATURE_NOT_AVAILABLE,
  DRCOVLIB_ERROR_NOT_FOUND,
  DRCOVLIB_ERROR_BUF_TOO_SMALL
}
 
enum  drcovlib_flags_t {
  DRCOVLIB_DUMP_AS_TEXT = 0x0001,
  DRCOVLIB_THREAD_PRIVATE = 0x0002
}
 

Functions

DR_EXPORT drcovlib_status_t drcovlib_init (drcovlib_options_t *ops)
 
DR_EXPORT drcovlib_status_t drcovlib_exit (void)
 
DR_EXPORT drcovlib_status_t drcovlib_logfile (void *drcontext, OUT const char **path)
 
DR_EXPORT drcovlib_status_t drcovlib_dump (void *drcontext)
 
DR_EXPORT drcovlib_status_t drmodtrack_init (void)
 
DR_EXPORT drcovlib_status_t drmodtrack_lookup (void *drcontext, app_pc pc, OUT uint *mod_index, OUT app_pc *mod_base)
 
DR_EXPORT drcovlib_status_t drmodtrack_lookup_segment (void *drcontext, app_pc pc, OUT uint *segment_index, OUT app_pc *segment_base)
 
DR_EXPORT drcovlib_status_t drmodtrack_dump (file_t file)
 
DR_EXPORT drcovlib_status_t drmodtrack_dump_buf (char *buf, size_t size, OUT size_t *wrote)
 
DR_EXPORT drcovlib_status_t drmodtrack_exit (void)
 
DR_EXPORT drcovlib_status_t drmodtrack_offline_read (file_t file, const char *map, OUT const char **next_line, OUT void **handle, OUT uint *num_mods)
 
DR_EXPORT drcovlib_status_t drmodtrack_offline_lookup (void *handle, uint index, OUT drmodtrack_info_t *info)
 
DR_EXPORT drcovlib_status_t drmodtrack_offline_write (void *handle, char *buf, size_t buf_size, OUT size_t *wrote)
 
DR_EXPORT drcovlib_status_t drmodtrack_offline_exit (void *handle)
 
DR_EXPORT drcovlib_status_t drmodtrack_add_custom_data (void *(*load_cb)(module_data_t *module, int seg_idx), int(*print_cb)(void *data, char *dst, size_t max_len), const char *(*parse_cb)(const char *src, OUT void **data), void(*free_cb)(void *data))
 

Detailed Description

Header for DynamoRIO Code Coverage Library.