DR_EXPORT void dr_init() { dr_probe_status_t stat; probe_def_init(); dr_register_probes(&probes[0], NUM_PROBES); dr_get_probe_status(probes[0].id, &stat); }
DR_EXPORT void dr_init(client_id_t client_id) { dr_probe_status_t stat; probe_def_init(); if ( ! dr_register_probes(&probes[0], NUM_PROBES) ) { dr_printf("register failed\n"); } if (probes[0].status==DR_PROBE_STATUS_UNSUPPORTED) { dr_printf("UN_SU_POR_TED\n"); } int rv = dr_get_probe_status(probes[0].id, &stat); if (!rv && stat==DR_PROBE_STATUS_INVALID_ID) { dr_printf("Failed to register probe: %d\n", probes[0].id); } }