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 moduleobject. The information is returned by using thedtoargument. Seedtrace_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
namein the moduleobject. The ELF information for the symbol is returned insymp. The DTrace information is returned insip. Seedtrace_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 insymp. The DTrace information is returned insip. Seedtrace_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
namein the moduleobject. The information returned intipcontains a handle to the CTF container and the ID for that type within that container. Seedtrace_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
sympandsip. Seedtrace_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 indtp, and returns a reference to that type intip. Seedtrace_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 indtp, and returns a reference to that type intip. Seedtrace_type_fcompile(3DTRACE).