/illumos-gate/usr/src/lib/libdtrace/i386/ |
H A D | dt_isadep.c | 142 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 D | dt_isadep.c | 55 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 D | syms.c | 55 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 D | truss.c | 188 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 D | perfcnt.c | 171 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 D | symbindrep.c | 90 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 D | who.c | 282 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 D | bindings.c | 360 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 D | mdb_pservice.c | 154 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 D | mdb_kproc.c | 609 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 D | mdb_nm.c | 442 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 D | mdb_gelf.c | 1484 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 D | sym.c | 141 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 D | kmdb_module.c | 88 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 D | Psymtab.c | 749 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 D | Pservice.c | 409 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 D | apptrace.c | 474 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 D | unifdef.c | 319 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 D | ctf_lookup.c | 194 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 D | ctf_types.c | 1123 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 D | ctf_create.c | 294 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 D | check-merge-static.c | 49 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 D | dt_module.c | 265 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 D | dt_pid.c | 126 (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 D | snoop_dhcpv6.c | 910 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()
|