Home
last modified time | relevance | path

Searched refs:symp (Results 1 – 25 of 57) sorted by relevance

123

/illumos-gate/usr/src/lib/libdtrace/i386/
H A Ddt_isadep.c142 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe()
169 symp->st_value + i, dmodel); in dt_pid_create_return_probe()
202 symp->st_value + i, dmodel); in dt_pid_create_return_probe()
238 symp->st_size <= in dt_pid_create_return_probe()
290 if (Pread(P, text, symp->st_size, symp->st_value) != in dt_pid_create_offset_probe()
291 symp->st_size) { in dt_pid_create_offset_probe()
324 symp->st_value + i, dmodel); in dt_pid_create_offset_probe()
355 ulong_t i, end = symp->st_size; in dt_pid_create_glob_offset_probes()
369 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_glob_offset_probes()
389 symp->st_value + i, dmodel); in dt_pid_create_glob_offset_probes()
[all …]
/illumos-gate/usr/src/lib/libdtrace/sparc/
H A Ddt_isadep.c55 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe()
56 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_entry_probe()
83 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe()
93 text[symp->st_size / 4] = 0; in dt_pid_create_return_probe()
96 ftp->ftps_pc = symp->st_value; in dt_pid_create_return_probe()
97 ftp->ftps_size = symp->st_size; in dt_pid_create_return_probe()
100 for (i = 0; i < symp->st_size / 4; i++) { in dt_pid_create_return_probe()
110 instr.ftiq_pc = symp->st_value + i * 4; in dt_pid_create_return_probe()
244 (uintptr_t)symp->st_size) { in dt_pid_create_return_probe()
284 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_offset_probe()
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dsyms.c55 sym_tbl_t *symp; in str_map_sym() local
60 symp = &(mp->mi_symtab); in str_map_sym()
62 symp = &(mp->mi_dynsym); in str_map_sym()
66 strs = symp->st_strs; in str_map_sym()
68 for (i = 0; i < (int)symp->st_symn; i++) { in str_map_sym()
71 if (symtab_getsym(symp, i, &sym) == NULL) { in str_map_sym()
126 sym_tbl_t *symp; in addr_map_sym() local
139 symp = &(mp->mi_symtab); in addr_map_sym()
141 symp = &(mp->mi_dynsym); in addr_map_sym()
149 for (i = 0; i < (int)symp->st_symn; i++) { in addr_map_sym()
[all …]
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dtruss.c188 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64() argument
192 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64()
197 const char *sym_name = (const char *)symp->st_name; in la_symbind64()
222 return (symp->st_value); in la_symbind64()
237 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
242 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
250 const char *sym_name = (const char *)symp->st_name; in la_sparcv9_pltenter()
273 return (symp->st_value); in la_sparcv9_pltenter()
280 la_pltexit64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_pltexit64() argument
284 la_pltexit(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_pltexit64()
[all …]
H A Dperfcnt.c171 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() argument
176 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
180 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
185 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, in la_sparcv9_pltenter()
192 return (symp->st_value); in la_sparcv9_pltenter()
201 la_pltexit64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_pltexit64() argument
205 la_pltexit(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_pltexit64()
213 const char *sym_name = (const char *)symp->st_name; in la_pltexit64()
H A Dsymbindrep.c90 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64() argument
94 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64()
99 const char *sym_name = (const char *)symp->st_name; in la_symbind64()
105 return (symp->st_value); in la_symbind64()
H A Dwho.c282 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() argument
287 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
291 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
296 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, in la_sparcv9_pltenter()
302 const char *sym_name = (const char *)symp->st_name; in la_sparcv9_pltenter()
322 return (symp->st_value); in la_sparcv9_pltenter()
H A Dbindings.c360 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcooke, in la_sparcv9_pltenter() argument
365 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, in la_sparcv9_pltenter()
369 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcooke, in la_sparcv9_pltenter()
374 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, in la_sparcv9_pltenter()
383 const char *sym_name = (const char *)symp->st_name; in la_sparcv9_pltenter()
392 return (symp->st_value); in la_sparcv9_pltenter()
515 return (symp->st_value); in la_sparcv9_pltenter()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_pservice.c154 const char *name, psaddr_t *symp) in ps_pglobal_lookup() argument
163 *symp = (psaddr_t)sym.st_value; in ps_pglobal_lookup()
179 const char *name, ps_sym_t *symp) in ps_pglobal_sym() argument
186 return (ps_ops.ps_pglobal_sym(P, object, name, symp)); in ps_pglobal_sym()
189 symp->st_name = (Elf32_Word)sym.st_name; in ps_pglobal_sym()
190 symp->st_value = (Elf32_Addr)sym.st_value; in ps_pglobal_sym()
191 symp->st_size = (Elf32_Word)sym.st_size; in ps_pglobal_sym()
192 symp->st_info = ELF32_ST_INFO( in ps_pglobal_sym()
194 symp->st_other = sym.st_other; in ps_pglobal_sym()
195 symp->st_shndx = sym.st_shndx; in ps_pglobal_sym()
[all …]
H A Dmdb_kproc.c609 name, symp, &sip->sym_id) != 0) in kp_lookup_by_name()
612 symp->st_value += kpf->kpf_dyn_base; in kp_lookup_by_name()
614 if (symp->st_shndx != SHN_UNDEF) { in kp_lookup_by_name()
620 sym = *symp; in kp_lookup_by_name()
631 *symp = sym; in kp_lookup_by_name()
660 sym = *symp; in kp_lookup_by_addr()
690 symp, &sip->sym_id) != 0) in kp_lookup_by_addr()
693 symp->st_value += kpf->kpf_dyn_base; in kp_lookup_by_addr()
702 sym = *symp; in kp_lookup_by_addr()
739 if (mdb_tgt_sym_match(symp, argp->sym_type)) { in kp_symtab_func()
[all …]
H A Dmdb_nm.c442 nm_gelf_symtab_cb(void *data, const GElf_Sym *symp, const char *name, uint_t id) in nm_gelf_symtab_cb() argument
448 return (ngsp->ngs_cb(ngsp->ngs_arg, symp, name, &ngsp->ngs_si, in nm_gelf_symtab_cb()
566 nm_sym_t *syms = NULL, *symp; in cmd_nm() local
754 syms = symp = mdb_alloc(sizeof (nm_sym_t) * nsyms, in cmd_nm()
757 nii.nii_sympp = &symp; in cmd_nm()
789 for (symp = syms; nsyms-- != 0; symp++) { in cmd_nm()
790 nii.nii_fp = symp->nm_fp; in cmd_nm()
792 (void) callback(&nii, &symp->nm_sym, symp->nm_name, in cmd_nm()
793 &symp->nm_si, symp->nm_object); in cmd_nm()
H A Dmdb_gelf.c1484 symp = asmap[i]; in gelf32_sym_search()
1485 v = symp->st_value; in gelf32_sym_search()
1492 symp = asmap[i]; in gelf32_sym_search()
1504 return (symp); in gelf32_sym_search()
1529 symp = asmap[i]; in gelf64_sym_search()
1530 v = symp->st_value; in gelf64_sym_search()
1537 symp = asmap[i]; in gelf64_sym_search()
1549 return (symp); in gelf64_sym_search()
1725 GElf_Sym sym, *symp; in mdb_gelf_symtab_iter() local
1763 if (func(private, symp, sbase + symp->st_name, i) == -1) in mdb_gelf_symtab_iter()
[all …]
/illumos-gate/usr/src/cmd/lockstat/
H A Dsym.c141 Sym *symtab, *symp, *lastsym; in symtab_init() local
171 for (symp = symtab; symp < lastsym; symp++) in symtab_init()
172 if ((uint_t)ELF32_ST_TYPE(symp->st_info) <= STT_FUNC && in symtab_init()
173 symp->st_size != 0) in symtab_init()
174 add_symbol(symp->st_name + strtab, in symtab_init()
175 (uintptr_t)symp->st_value, (size_t)symp->st_size); in symtab_init()
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_module.c88 size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) in kmdb_module_lookup_by_addr() argument
104 buf, nbytes, symp, &sip->sym_id) != 0 || in kmdb_module_lookup_by_addr()
105 symp->st_value == 0) in kmdb_module_lookup_by_addr()
118 if (sym_kmc == NULL || mdb_gelf_sym_closer(symp, &sym, addr)) { in kmdb_module_lookup_by_addr()
120 sym = *symp; in kmdb_module_lookup_by_addr()
128 *symp = sym; in kmdb_module_lookup_by_addr()
137 name = mdb_gelf_sym_name(sym_kmc->kmc_symtab, symp); in kmdb_module_lookup_by_addr()
151 kmdb_module_lookup_by_name(const char *obj, const char *name, GElf_Sym *symp, in kmdb_module_lookup_by_name() argument
160 symp, &sip->sym_id) == 0) { in kmdb_module_lookup_by_name()
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab.c749 sym_tbl_t *symp; in Pbuild_file_ctf() local
1543 for (i = 0, symp = syms; i < symn; i++, symp++) { in optimize_symtab()
2633 *symp = sym; in sym_by_addr_binary()
2636 return (symp); in sym_by_addr_binary()
2661 symp, strs + symp->st_name, in sym_by_addr_linear()
2725 return (symp); in sym_by_name_binary()
2756 return (symp); in sym_by_name_linear()
2798 GElf_Sym *symp; in i_Pxlookup_by_addr() local
2839 *symbolp = *symp; in i_Pxlookup_by_addr()
2965 sym = *symp; in Pxlookup_by_name()
[all …]
H A DPservice.c409 const char *sym_name, ps_sym_t *symp) in ps_pglobal_sym() argument
415 symp->st_name = (Elf32_Word)sym.st_name; in ps_pglobal_sym()
416 symp->st_value = (Elf32_Addr)sym.st_value; in ps_pglobal_sym()
417 symp->st_size = (Elf32_Word)sym.st_size; in ps_pglobal_sym()
418 symp->st_info = ELF32_ST_INFO( in ps_pglobal_sym()
420 symp->st_other = sym.st_other; in ps_pglobal_sym()
421 symp->st_shndx = sym.st_shndx; in ps_pglobal_sym()
426 if (Plookup_by_name(P, object_name, sym_name, symp) == 0) in ps_pglobal_sym()
/illumos-gate/usr/src/lib/abi/apptrace/common/
H A Dapptrace.c474 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64() argument
478 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64()
483 char const *sym_name = (char const *) symp->st_name; in la_symbind64()
486 uintptr_t ret = symp->st_value; in la_symbind64()
491 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in la_symbind64()
495 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in la_symbind64()
577 char const *sym_name = (char const *)symp->st_name; in la_sparcv9_pltenter()
690 return (symp->st_value); in la_sparcv9_pltenter()
703 return (symp->st_value); in la_sparcv9_pltenter()
713 la_pltexit(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_pltexit64()
[all …]
/illumos-gate/usr/src/cmd/sgs/unifdef/common/
H A Dunifdef.c319 char *symp; in checkline() local
336 symp = keyword; in checkline()
338 *symp = *cp++; in checkline()
339 if (++symp >= &keyword[KWSIZE]) in checkline()
342 *symp = '\0'; in checkline()
371 for (symp = sym[symind], cp = scp; in checkline()
372 *symp && *cp == *symp; cp++, symp++) { in checkline()
376 if (*symp == '\0' && endsym(chr)) { in checkline()
/illumos-gate/usr/src/common/ctf/
H A Dctf_lookup.c194 const Elf32_Sym *symp = (Elf32_Sym *)sp->cts_data + symidx; in ctf_lookup_by_symbol() local
195 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol()
198 const Elf64_Sym *symp = (Elf64_Sym *)sp->cts_data + symidx; in ctf_lookup_by_symbol() local
199 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol()
257 const Elf32_Sym *symp = (Elf32_Sym *)sp->cts_data + symidx; in ctf_func_info() local
258 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info()
261 const Elf64_Sym *symp = (Elf64_Sym *)sp->cts_data + symidx; in ctf_func_info() local
262 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info()
H A Dctf_types.c1123 symp->st_name != 0) in ctf_object_iter()
1124 name = (char *)(strbase + symp->st_name); in ctf_object_iter()
1132 symp->st_name != 0) in ctf_object_iter()
1133 name = (char *)(strbase + symp->st_name); in ctf_object_iter()
1175 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_function_iter()
1178 name = (char *)(strbase + symp->st_name); in ctf_function_iter()
1183 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_function_iter()
1186 name = (char *)(strbase + symp->st_name); in ctf_function_iter()
1237 ELF32_ST_TYPE(symp->st_info) != STT_FUNC) { in ctf_symbol_name()
1241 if (symp->st_name == 0) { in ctf_symbol_name()
[all …]
H A Dctf_create.c294 ctf_sect_t cts, *symp, *strp; in ctf_update() local
398 type = ELF32_ST_TYPE(symp->st_info); in ctf_update()
400 symp->st_value, symp->st_name) == B_FALSE) in ctf_update()
405 type = ELF64_ST_TYPE(symp->st_info); in ctf_update()
407 symp->st_value, symp->st_name) == B_FALSE) in ctf_update()
598 type = ELF32_ST_TYPE(symp->st_info); in ctf_update()
601 symp->st_value, symp->st_name) == B_FALSE) in ctf_update()
605 type = ELF64_ST_TYPE(symp->st_info); in ctf_update()
607 symp->st_value, symp->st_name) == B_FALSE) in ctf_update()
658 symp = NULL; in ctf_update()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/ctf/
H A Dcheck-merge-static.c49 check_file_to_type(GElf_Sym *symp, const char *file, const char *name) in check_file_to_type() argument
53 if (ELF32_ST_BIND(symp->st_info) == STB_GLOBAL) { in check_file_to_type()
74 check_global(ctf_file_t *fp, GElf_Sym *symp, int symid, const char *file, in check_global() argument
81 if ((type = check_file_to_type(symp, file, name)) == NULL) { in check_global()
107 check_mumble(ctf_file_t *fp, GElf_Sym *symp, int symid, const char *file, in check_mumble() argument
114 if ((type = check_file_to_type(symp, file, name)) == NULL) { in check_mumble()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_module.c265 GElf_Sym *symp, uint_t *idp) in dt_module_symname32() argument
295 GElf_Sym *symp, uint_t *idp) in dt_module_symname64() argument
1279 if (symp == NULL) in dtrace_lookup_by_name()
1280 symp = &sym; in dtrace_lookup_by_name()
1301 if (symp != &sym) { in dtrace_lookup_by_name()
1303 symp->st_info = in dtrace_lookup_by_name()
1305 symp->st_other = 0; in dtrace_lookup_by_name()
1307 symp->st_value = 0; in dtrace_lookup_by_name()
1308 symp->st_size = in dtrace_lookup_by_name()
1354 if (symp != NULL) { in dtrace_lookup_by_addr()
[all …]
H A Ddt_pid.c126 (symp->st_size - 1) * sizeof (ftp->ftps_offs[0])); in dt_pid_per_sym()
140 if (dt_pid_create_return_probe(pp->dpp_pr, dtp, ftp, symp, in dt_pid_per_sym()
170 if (off >= symp->st_size) { in dt_pid_per_sym()
177 symp, off); in dt_pid_per_sym()
196 pp->dpp_dtp, ftp, symp, pp->dpp_name) < 0) { in dt_pid_per_sym()
218 if (symp->st_shndx == SHN_UNDEF) in dt_pid_sym_filt()
221 if (symp->st_size == 0) { in dt_pid_sym_filt()
227 symp->st_value != pp->dpp_last.st_value || in dt_pid_sym_filt()
228 symp->st_size != pp->dpp_last.st_size) { in dt_pid_sym_filt()
240 pp->dpp_last = *symp; in dt_pid_sym_filt()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcpv6.c910 dhcp_symbol_t *symp; in show_options() local
913 symp = inittab_getbycode( in show_options()
916 if (symp != NULL) { in show_options()
917 str = inittab_decode(symp, data, olen, B_TRUE); in show_options()
930 free(symp); in show_options()
1012 dhcp_symbol_t *symp; in show_options() local
1029 symp = inittab_getbycode( in show_options()
1032 if (symp != NULL) { in show_options()
1033 str = inittab_decode(symp, data, olen, B_TRUE); in show_options()
1040 free(symp); in show_options()

123