Home
last modified time | relevance | path

Searched refs:retp (Results 1 – 25 of 31) sorted by relevance

12

/external/ltrace/
Dlibrary.c47 os_library_clone(struct library *retp, struct library *lib) in os_library_clone() argument
66 arch_library_clone(struct library *retp, struct library *lib) in arch_library_clone() argument
85 os_library_symbol_clone(struct library_symbol *retp, in os_library_symbol_clone() argument
105 arch_library_symbol_clone(struct library_symbol *retp, in arch_library_symbol_clone() argument
135 strdup_if(const char **retp, const char *str, int whether) in strdup_if() argument
143 *retp = str; in strdup_if()
205 library_symbol_clone(struct library_symbol *retp, struct library_symbol *libsym) in library_symbol_clone() argument
213 private_library_symbol_init(retp, libsym->enter_addr, in library_symbol_clone()
217 if (os_library_symbol_clone(retp, libsym) < 0) { in library_symbol_clone()
219 private_library_symbol_destroy(retp); in library_symbol_clone()
[all …]
Dltrace-elf.h149 int elf_read_u8(Elf_Data *data, GElf_Xword offset, uint8_t *retp);
150 int elf_read_u16(Elf_Data *data, GElf_Xword offset, uint16_t *retp);
151 int elf_read_u32(Elf_Data *data, GElf_Xword offset, uint32_t *retp);
152 int elf_read_u64(Elf_Data *data, GElf_Xword offset, uint64_t *retp);
156 int elf_read_uleb128(Elf_Data *data, GElf_Xword offset, uint64_t *retp);
160 int elf_read_next_u8(Elf_Data *data, GElf_Xword *offset, uint8_t *retp);
161 int elf_read_next_u16(Elf_Data *data, GElf_Xword *offset, uint16_t *retp);
162 int elf_read_next_u32(Elf_Data *data, GElf_Xword *offset, uint32_t *retp);
163 int elf_read_next_u64(Elf_Data *data, GElf_Xword *offset, uint64_t *retp);
164 int elf_read_next_uleb128(Elf_Data *data, GElf_Xword *offset, uint64_t *retp);
Dvalue.c189 value_clone(struct value *retp, const struct value *val) in value_clone() argument
191 *retp = *val; in value_clone()
194 retp->type = malloc(sizeof(struct arg_type_info)); in value_clone()
195 if (type_clone (retp->type, val->type) < 0) { in value_clone()
196 free(retp->type); in value_clone()
206 if (retp->own_type) { in value_clone()
207 type_destroy(retp->type); in value_clone()
208 free(retp->type); in value_clone()
213 retp->u.address = malloc(size); in value_clone()
214 if (retp->u.address == NULL) in value_clone()
[all …]
Dbackend.h238 int os_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp);
247 int arch_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp);
255 int os_library_clone(struct library *retp, struct library *lib);
263 int arch_library_clone(struct library *retp, struct library *lib);
272 int os_library_symbol_clone(struct library_symbol *retp,
282 int arch_library_symbol_clone(struct library_symbol *retp,
291 int os_process_clone(struct process *retp, struct process *proc);
302 int arch_process_clone(struct process *retp, struct process *proc);
405 int os_get_config_dirs(int private, const char ***retp);
416 int os_get_ltrace_conf_filenames(struct vect *retp);
Dproc.c53 os_process_clone(struct process *retp, struct process *proc) in os_process_clone() argument
78 arch_process_clone(struct process *retp, struct process *proc) in arch_process_clone() argument
358 process_clone(struct process *retp, struct process *proc, pid_t pid) in process_clone() argument
360 if (process_bare_init(retp, proc->filename, pid, 0) < 0) { in process_clone()
367 retp->tracesysgood = proc->tracesysgood; in process_clone()
368 retp->e_machine = proc->e_machine; in process_clone()
369 retp->e_class = proc->e_class; in process_clone()
372 if (retp->leader != retp) in process_clone()
378 struct library **nlibp = &retp->libraries; in process_clone()
388 process_bare_destroy(retp, 0); in process_clone()
[all …]
Dprototype.c365 const char *key, struct protolib **retp) in load_dash_F_dirs() argument
378 *retp = data.result; in load_dash_F_dirs()
384 const char *key, int private, struct protolib **retp) in load_config() argument
394 *retp = plib; in load_config()
548 struct protolib **retp) in protolib_cache_maybe_load() argument
550 if (DICT_FIND_VAL(&cache->protolibs, &key, retp) == 0) in protolib_cache_maybe_load()
559 *retp = NULL; in protolib_cache_maybe_load()
560 if (load_dash_F_dirs(cache, key, retp) < 0 in protolib_cache_maybe_load()
561 || (*retp == NULL && allow_private in protolib_cache_maybe_load()
562 && load_config(cache, key, 1, retp) < 0) in protolib_cache_maybe_load()
[all …]
Dbreakpoints.c139 os_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp) in os_breakpoint_clone() argument
158 arch_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp) in arch_breakpoint_clone() argument
211 breakpoint_clone(struct breakpoint *retp, struct process *new_proc, in breakpoint_clone() argument
220 breakpoint_init_base(retp, bp->addr, libsym); in breakpoint_clone()
221 memcpy(retp->orig_value, bp->orig_value, sizeof(bp->orig_value)); in breakpoint_clone()
222 retp->enabled = bp->enabled; in breakpoint_clone()
223 if (os_breakpoint_clone(retp, bp) < 0) in breakpoint_clone()
225 if (arch_breakpoint_clone(retp, bp) < 0) { in breakpoint_clone()
226 os_breakpoint_destroy(retp); in breakpoint_clone()
229 breakpoint_set_callbacks(retp, bp->cbs); in breakpoint_clone()
Dread_config_file.c85 char **str, struct arg_type_info **retp, int *ownp);
557 char **str, struct arg_type_info **retp, int *ownp) in parse_string() argument
656 *retp = info; in parse_string()
713 char **str, struct arg_type_info **retp, int *ownp, in parse_alias() argument
723 return parse_string(plib, loc, str, retp, ownp); in parse_alias()
731 if (parse_string(plib, loc, str, retp, ownp) < 0) in parse_alias()
738 return parse_enum(plib, loc, str, retp, ownp); in parse_alias()
741 *retp = NULL; in parse_alias()
789 struct arg_type_info **retp, int *ownp) in parse_enum() argument
796 *retp = parse_nonpointer_type(plib, loc, str, NULL, 0, ownp, 0); in parse_enum()
[all …]
Dtype.c283 struct arg_type_info *retp = data; in clone_struct_add_field() local
292 if (type_struct_add(retp, info, field->own_info) < 0) { in clone_struct_add_field()
302 type_clone(struct arg_type_info *retp, const struct arg_type_info *info) in type_clone() argument
306 type_init_struct(retp); in type_clone()
308 clone_struct_add_field, retp) != NULL) { in type_clone()
309 type_destroy(retp); in type_clone()
321 type_init_array(retp, elt_type, info->u.array_info.own_info, in type_clone()
331 type_init_pointer(retp, ninfo, info->u.ptr_info.own_info); in type_clone()
344 *retp = *info; in type_clone()
349 retp->lens = info->lens; in type_clone()
[all …]
Dexpr.c189 expr_clone(struct expr_node *retp, const struct expr_node *node) in expr_clone() argument
191 *retp = *node; in expr_clone()
202 return value_clone(&retp->u.value, &node->u.value); in expr_clone()
206 && (retp->u.name.s = strdup(node->u.name.s)) == NULL) in expr_clone()
223 retp->lhs = nlhs; in expr_clone()
224 retp->u.node.n = nrhs; in expr_clone()
231 retp->u.call.rhs = nrhs; in expr_clone()
245 retp->lhs = nlhs; in expr_clone()
Dvalue.h130 int value_clone(struct value *retp, const struct value *val);
140 int value_extract_word(struct value *val, long *retp,
Dlibrary.h85 int library_symbol_clone(struct library_symbol *retp,
181 int library_clone(struct library *retp, struct library *lib);
Dltrace-elf.c283 NAME(Elf_Data *data, GElf_Xword offset, uint##SIZE##_t *retp) \
289 *retp = 0; \
298 *retp = u.dst; \
311 NAME(Elf_Data *data, GElf_Xword *offset, uint##SIZE##_t *retp) \
313 int rc = elf_read_u##SIZE(data, *offset, retp); \
328 elf_read_next_uleb128(Elf_Data *data, GElf_Xword *offset, uint64_t *retp) in elf_read_next_uleb128() argument
348 if (retp != NULL) in elf_read_next_uleb128()
349 *retp = result; in elf_read_next_uleb128()
354 elf_read_uleb128(Elf_Data *data, GElf_Xword offset, uint64_t *retp) in elf_read_uleb128() argument
356 return elf_read_next_uleb128(data, &offset, retp); in elf_read_uleb128()
Dglob.c101 glob_to_regex(const char *glob, char **retp) in glob_to_regex() argument
175 *retp = buf; in glob_to_regex()
Dtype.h116 int type_clone(struct arg_type_info *retp, const struct arg_type_info *info);
Dbreakpoint.h109 int breakpoint_clone(struct breakpoint *retp, struct process *new_proc,
Dexpr.h130 int expr_clone(struct expr_node *retp, const struct expr_node *node);
/external/ltrace/sysdeps/linux-gnu/
Dhooks.c76 os_get_config_dirs(int private, const char ***retp) in os_get_config_dirs() argument
90 if (retp != NULL) { in os_get_config_dirs()
92 *retp = VECT_ELEMENT(&dirs, const char *, 0); in os_get_config_dirs()
94 *retp = VECT_ELEMENT(&dirs, const char *, in os_get_config_dirs()
178 os_get_ltrace_conf_filenames(struct vect *retp) in os_get_ltrace_conf_filenames() argument
208 if (VECT_PUSHBACK(retp, &homepath) < 0 in os_get_ltrace_conf_filenames()
209 || VECT_PUSHBACK(retp, &syspath) < 0) in os_get_ltrace_conf_filenames()
/external/ltrace/sysdeps/linux-gnu/ppc/
Dplt.c1115 arch_library_clone(struct library *retp, struct library *lib) in arch_library_clone() argument
1141 arch_library_symbol_clone(struct library_symbol *retp, in arch_library_symbol_clone() argument
1144 retp->arch = libsym->arch; in arch_library_symbol_clone()
1193 arch_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp) in arch_breakpoint_clone() argument
1195 retp->arch = sbp->arch; in arch_breakpoint_clone()
1213 arch_process_clone(struct process *retp, struct process *proc) in arch_process_clone() argument
1215 retp->arch = proc->arch; in arch_process_clone()
1217 if (retp->arch.dl_plt_update_bp != NULL) { in arch_process_clone()
1221 retp->arch.dl_plt_update_bp in arch_process_clone()
1222 = address2bpstruct(retp, in arch_process_clone()
[all …]
/external/ltrace/sysdeps/linux-gnu/arm/
Dbreakpoint.c111 arch_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp) in arch_breakpoint_clone() argument
113 retp->arch.thumb_mode = sbp->arch.thumb_mode; in arch_breakpoint_clone()
Dplt.c249 arch_library_clone(struct library *retp, struct library *lib) in arch_library_clone() argument
251 retp->arch = lib->arch; in arch_library_clone()
/external/ppp/pppd/
Dccp.c1076 u_char *p0, *retp; local
1086 retp = p0 = p;
1330 retp = p0;
1332 if (p != retp)
1333 BCOPY(p, retp, clen);
1334 retp += clen;
1342 if (ret == CONFREJ && *lenp == retp - p0)
1345 *lenp = retp - p0;
/external/ltrace/sysdeps/linux-gnu/mips/
Dplt.c418 arch_library_symbol_clone(struct library_symbol *retp, in arch_library_symbol_clone() argument
421 retp->arch = libsym->arch; in arch_library_symbol_clone()
/external/elfutils/libdwfl/
Ddwfl_segment_report_module.c100 const void **ptrp, const void *end, uint64_t *retp) in buf_read_ulong() argument
114 if (retp == NULL) in buf_read_ulong()
125 *retp = u.u32; in buf_read_ulong()
127 *retp = u.u64; in buf_read_ulong()
/external/elfutils/libdw/
Ddwarf_getmacros.c43 get_offset_from (Dwarf_Die *die, int name, Dwarf_Word *retp) in get_offset_from() argument
51 return INTUSE(dwarf_formudata) (&attr, retp); in get_offset_from()

12