cudbg_get_entity_hdr
struct cudbg_entity_hdr *cudbg_get_entity_hdr(void *outbuf, int i);
entity_hdr = cudbg_get_entity_hdr(buf, e->entity);