Object, Type, and Symbol APIs

int dtrace_object_iter(dtrace_hdl_t *dtp, dtrace_obj_f *func, void *data)

Iterates the object files that DTrace has knowledge of and calls the specified function. See dtrace_object_iter(3DTRACE).

int dtrace_object_info(dtrace_hdl_t *dtp, const char *object, dtrace_objinfo_t *dto)

Returns the object information as described for dtrace_object_iter() for the named module object. The information is returned by using the dto argument. See dtrace_object_info(3DTRACE).

int dtrace_lookup_by_name(dtrace_hdl_t *dtp, const char *object, const char *name, GElf_Sym *symp, dtrace_syminfo_t *sip)

Performs a lookup of the symbol name in the module object. The ELF information for the symbol is returned in symp. The DTrace information is returned in sip. See dtrace_lookup_by_name(3DTRACE).

int dtrace_lookup_by_addr(dtrace_hdl_t *dtp, GElf_Addr addr, GElf_Sym *symp, dtrace_syminfo_t *sip)

Performs a lookup of the symbol at the specified address addr. The ELF information for the symbol is returned in symp. The DTrace information is returned in sip. See dtrace_lookup_by_addr(3DTRACE).

int dtrace_lookup_by_type(dtrace_hdl_t *dtp, const char *object, const char *name, dtrace_typeinfo_t *tip)

Performs a lookup of the type name in the module object. The information returned in tip contains a handle to the CTF container and the ID for that type within that container. See dtrace_lookup_by_type(3DTRACE).

int dtrace_symbol_type(dtrace_hdl_t *dtp, const GElf_Sym *symp, const dtrace_syminfo_t *sip, dtrace_typeinfo_t *tip)

Returns the type information for the symbol described by symp and sip. See dtrace_symbol_type(3DTRACE).

int dtrace_type_strcompile(dtrace_hdl_t *dtp, const char *s, dtrace_typeinfo_t *dtt)

Takes a D language type in a string s, adds the type information to the information stored in dtp, and returns a reference to that type in tip. See dtrace_type_strcompile(3DTRACE).

int dtrace_type_fcompile(dtrace_hdl_t *dtp, FILE *fp, dtrace_typeinfo_t *dtt)

Takes a D language type in a file referred to by fp, adds the type information to the information stored in dtp, and returns a reference to that type in tip. See dtrace_type_fcompile(3DTRACE).