/titanic_41/usr/src/lib/libdtrace/i386/ |
H A D | dt_isadep.c | 62 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) in dt_pid_create_entry_probe() argument 65 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 66 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_entry_probe() 81 uint8_t *text, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) in dt_pid_has_jump_table() argument 94 size = dt_instr_size(&text[i], dtp, pid, symp->st_value + i, in dt_pid_has_jump_table() 125 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret) in dt_pid_create_return_probe() argument 137 if ((text = calloc(1, symp->st_size + 4)) == NULL) { in dt_pid_create_return_probe() 142 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 149 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_return_probe() 150 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_return_probe() [all …]
|
/titanic_41/usr/src/lib/libdtrace/sparc/ |
H A D | dt_isadep.c | 54 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) in dt_pid_create_entry_probe() argument 57 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 58 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_entry_probe() 73 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret) in dt_pid_create_return_probe() argument 80 if ((text = malloc(symp->st_size + 4)) == NULL) { in dt_pid_create_return_probe() 85 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 95 text[symp->st_size / 4] = 0; in dt_pid_create_return_probe() 98 ftp->ftps_pc = symp->st_value; in dt_pid_create_return_probe() 99 ftp->ftps_size = symp->st_size; in dt_pid_create_return_probe() 102 for (i = 0; i < symp->st_size / 4; i++) { in dt_pid_create_return_probe() [all …]
|
/titanic_41/usr/src/cmd/sgs/librtld_db/demo/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 …]
|
/titanic_41/usr/src/cmd/sgs/link_audit/common/ |
H A D | truss.c | 185 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64() argument 189 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64() 194 const char *sym_name = (const char *)symp->st_name; in la_symbind64() 220 return (symp->st_value); in la_symbind64() 226 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() argument 231 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 235 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 240 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 248 const char *sym_name = (const char *)symp->st_name; in la_sparcv9_pltenter() 271 return (symp->st_value); in la_sparcv9_pltenter() [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()
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_pservice.c | 157 const char *name, psaddr_t *symp) in ps_pglobal_lookup() argument 163 return (ps_ops.ps_pglobal_lookup(P, object, name, symp)); in ps_pglobal_lookup() 166 *symp = (psaddr_t)sym.st_value; in ps_pglobal_lookup() 182 const char *name, ps_sym_t *symp) in ps_pglobal_sym() argument 189 return (ps_ops.ps_pglobal_sym(P, object, name, symp)); in ps_pglobal_sym() 192 symp->st_name = (Elf32_Word)sym.st_name; in ps_pglobal_sym() 193 symp->st_value = (Elf32_Addr)sym.st_value; in ps_pglobal_sym() 194 symp->st_size = (Elf32_Word)sym.st_size; in ps_pglobal_sym() 195 symp->st_info = ELF32_ST_INFO( in ps_pglobal_sym() 197 symp->st_other = sym.st_other; in ps_pglobal_sym() [all …]
|
H A D | mdb_kproc.c | 569 const char *name, GElf_Sym *symp, mdb_syminfo_t *sip) in kp_lookup_by_name() argument 607 name, symp, &sip->sym_id) != 0) in kp_lookup_by_name() 610 symp->st_value += kpf->kpf_dyn_base; in kp_lookup_by_name() 612 if (symp->st_shndx != SHN_UNDEF) { in kp_lookup_by_name() 618 sym = *symp; in kp_lookup_by_name() 629 *symp = sym; in kp_lookup_by_name() 636 char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) in kp_lookup_by_addr() argument 654 addr, flags, buf, nbytes, symp, &sip->sym_id) == 0) { in kp_lookup_by_addr() 658 sym = *symp; in kp_lookup_by_addr() 688 symp, &sip->sym_id) != 0) in kp_lookup_by_addr() [all …]
|
H A D | mdb_nm.c | 438 nm_gelf_symtab_cb(void *data, const GElf_Sym *symp, const char *name, uint_t id) in nm_gelf_symtab_cb() argument 444 return (ngsp->ngs_cb(ngsp->ngs_arg, symp, name, &ngsp->ngs_si, in nm_gelf_symtab_cb() 562 nm_sym_t *syms, *symp; in cmd_nm() local 750 syms = symp = mdb_alloc(sizeof (nm_sym_t) * nsyms, in cmd_nm() 753 nii.nii_sympp = &symp; in cmd_nm() 785 for (symp = syms; nsyms-- != 0; symp++) { in cmd_nm() 786 nii.nii_fp = symp->nm_fp; in cmd_nm() 788 callback(&nii, &symp->nm_sym, symp->nm_name, in cmd_nm() 789 &symp->nm_si, symp->nm_object); in cmd_nm()
|
H A D | mdb_gelf.c | 1468 const Elf32_Sym *symp; in gelf32_sym_search() local 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() 1499 size = MAX(symp->st_size, 1); in gelf32_sym_search() 1503 if (addr - symp->st_value < size) in gelf32_sym_search() 1504 return (symp); in gelf32_sym_search() 1513 const Elf64_Sym *symp; in gelf64_sym_search() local 1529 symp = asmap[i]; in gelf64_sym_search() 1530 v = symp->st_value; in gelf64_sym_search() [all …]
|
/titanic_41/usr/src/cmd/lockstat/ |
H A D | sym.c | 143 Sym *symtab, *symp, *lastsym; in symtab_init() local 173 for (symp = symtab; symp < lastsym; symp++) in symtab_init() 174 if ((uint_t)ELF32_ST_TYPE(symp->st_info) <= STT_FUNC && in symtab_init() 175 symp->st_size != 0) in symtab_init() 176 add_symbol(symp->st_name + strtab, in symtab_init() 177 (uintptr_t)symp->st_value, (size_t)symp->st_size); in symtab_init()
|
/titanic_41/usr/src/lib/libproc/common/ |
H A D | Psymtab.c | 728 sym_tbl_t *symp; in Pbuild_file_ctf() local 739 symp = fptr->file_ctf_dyn ? &fptr->file_dynsym : &fptr->file_symtab; in Pbuild_file_ctf() 740 if (symp->sym_data_pri == NULL) in Pbuild_file_ctf() 773 symtab.cts_type = symp->sym_hdr_pri.sh_type; in Pbuild_file_ctf() 774 symtab.cts_flags = symp->sym_hdr_pri.sh_flags; in Pbuild_file_ctf() 775 symtab.cts_data = symp->sym_data_pri->d_buf; in Pbuild_file_ctf() 776 symtab.cts_size = symp->sym_hdr_pri.sh_size; in Pbuild_file_ctf() 777 symtab.cts_entsize = symp->sym_hdr_pri.sh_entsize; in Pbuild_file_ctf() 778 symtab.cts_offset = symp->sym_hdr_pri.sh_offset; in Pbuild_file_ctf() 781 strtab.cts_type = symp->sym_strhdr.sh_type; in Pbuild_file_ctf() [all …]
|
H A D | Pservice.c | 358 const char *sym_name, ps_sym_t *symp) in ps_pglobal_sym() argument 364 symp->st_name = (Elf32_Word)sym.st_name; in ps_pglobal_sym() 365 symp->st_value = (Elf32_Addr)sym.st_value; in ps_pglobal_sym() 366 symp->st_size = (Elf32_Word)sym.st_size; in ps_pglobal_sym() 367 symp->st_info = ELF32_ST_INFO( in ps_pglobal_sym() 369 symp->st_other = sym.st_other; in ps_pglobal_sym() 370 symp->st_shndx = sym.st_shndx; in ps_pglobal_sym() 375 if (Plookup_by_name(P, object_name, sym_name, symp) == 0) in ps_pglobal_sym()
|
/titanic_41/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_module.c | 90 size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) in kmdb_module_lookup_by_addr() argument 106 buf, nbytes, symp, &sip->sym_id) != 0 || in kmdb_module_lookup_by_addr() 107 symp->st_value == 0) in kmdb_module_lookup_by_addr() 120 if (sym_kmc == NULL || mdb_gelf_sym_closer(symp, &sym, addr)) { in kmdb_module_lookup_by_addr() 122 sym = *symp; in kmdb_module_lookup_by_addr() 130 *symp = sym; in kmdb_module_lookup_by_addr() 139 name = mdb_gelf_sym_name(sym_kmc->kmc_symtab, symp); in kmdb_module_lookup_by_addr() 153 kmdb_module_lookup_by_name(const char *obj, const char *name, GElf_Sym *symp, in kmdb_module_lookup_by_name() argument 162 symp, &sip->sym_id) == 0) { in kmdb_module_lookup_by_name()
|
/titanic_41/usr/src/lib/abi/apptrace/common/ |
H A D | apptrace.c | 476 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64() argument 480 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, in la_symbind64() 485 char const *sym_name = (char const *) symp->st_name; in la_symbind64() 488 uintptr_t ret = symp->st_value; in la_symbind64() 493 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in la_symbind64() 497 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in la_symbind64() 557 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() argument 562 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 566 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 571 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() [all …]
|
/titanic_41/usr/src/common/ctf/ |
H A D | ctf_lookup.c | 191 const Elf32_Sym *symp = (Elf32_Sym *)sp->cts_data + symidx; in ctf_lookup_by_symbol() local 192 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 195 const Elf64_Sym *symp = (Elf64_Sym *)sp->cts_data + symidx; in ctf_lookup_by_symbol() local 196 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 254 const Elf32_Sym *symp = (Elf32_Sym *)sp->cts_data + symidx; in ctf_func_info() local 255 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info() 258 const Elf64_Sym *symp = (Elf64_Sym *)sp->cts_data + symidx; in ctf_func_info() local 259 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info()
|
/titanic_41/usr/src/cmd/sgs/unifdef/common/ |
H A D | unifdef.c | 321 char *symp; in checkline() local 338 symp = keyword; in checkline() 340 *symp = *cp++; in checkline() 341 if (++symp >= &keyword[KWSIZE]) in checkline() 344 *symp = '\0'; in checkline() 373 for (symp = sym[symind], cp = scp; in checkline() 374 *symp && *cp == *symp; cp++, symp++) { in checkline() 378 if (*symp == '\0' && endsym(chr)) { in checkline()
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_module.c | 265 GElf_Sym *symp, uint_t *idp) in dt_module_symname32() argument 286 return (dt_module_symgelf32(sym, symp)); in dt_module_symname32() 295 GElf_Sym *symp, uint_t *idp) in dt_module_symname64() argument 316 return (dt_module_symgelf64(sym, symp)); in dt_module_symname64() 325 GElf_Sym *symp, uint_t *idp) in dt_module_symaddr32() argument 359 return (dt_module_symgelf32(sym, symp)); in dt_module_symaddr32() 367 GElf_Sym *symp, uint_t *idp) in dt_module_symaddr64() argument 401 return (dt_module_symgelf64(sym, symp)); in dt_module_symaddr64() 1249 GElf_Sym *symp, dtrace_syminfo_t *sip) in dtrace_lookup_by_name() argument 1279 if (symp == NULL) in dtrace_lookup_by_name() [all …]
|
H A D | dt_pid.c | 106 dt_pid_per_sym(dt_pid_probe_t *pp, const GElf_Sym *symp, const char *func) in dt_pid_per_sym() argument 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() 152 if (dt_pid_create_entry_probe(pp->dpp_pr, dtp, ftp, symp) < 0) { 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() 214 dt_pid_sym_filt(void *arg, const GElf_Sym *symp, const char *func) in dt_pid_sym_filt() argument 218 if (symp->st_shndx == SHN_UNDEF) in dt_pid_sym_filt() 221 if (symp->st_size == 0) { in dt_pid_sym_filt() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 909 dhcp_symbol_t *symp; in show_options() local 912 symp = inittab_getbycode( in show_options() 915 if (symp != NULL) { in show_options() 916 str = inittab_decode(symp, data, olen, B_TRUE); in show_options() 929 free(symp); in show_options() 1011 dhcp_symbol_t *symp; in show_options() local 1028 symp = inittab_getbycode( in show_options() 1031 if (symp != NULL) { in show_options() 1032 str = inittab_decode(symp, data, olen, B_TRUE); in show_options() 1039 free(symp); in show_options()
|
/titanic_41/usr/src/cmd/sgs/ldprof/common/ |
H A D | profile.c | 621 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() argument 626 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 630 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 635 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() 647 return (symp->st_value); in la_sparcv9_pltenter() 667 return (plt_cg_interp(symndx, (caddr_t)from, (caddr_t)symp->st_value)); in la_sparcv9_pltenter()
|
/titanic_41/usr/src/common/mc/mc-amd/ |
H A D | mcamd_synd.c | 227 mcamd_cksynd_decode(struct mcamd_hdl *hdl, uint32_t synd, uint_t *symp, in mcamd_cksynd_decode() argument 241 *symp = i; in mcamd_cksynd_decode()
|
/titanic_41/usr/src/uts/intel/ia32/krtld/ |
H A D | kobj_reloc.c | 176 Sym * symp; in do_relocate() local 177 symp = (Sym *) in do_relocate() 183 (const char *)mp->strings + symp->st_name); in do_relocate()
|