/illumos-gate/usr/src/lib/libdtrace/sparc/ |
H A D | dt_isadep.c | 54 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) 57 ftp->ftps_pc = (uintptr_t)symp->st_value; 58 ftp->ftps_size = (size_t)symp->st_size; 73 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret) 80 if ((text = malloc(symp->st_size + 4)) == NULL) { 85 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 95 text[symp->st_size / 4] = 0; 98 ftp->ftps_pc = symp 53 dt_pid_create_entry_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) argument 72 dt_pid_create_return_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret) argument 278 dt_pid_create_offset_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, ulong_t off) argument 301 dt_pid_create_glob_offset_probes(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/i386/ |
H A D | dt_isadep.c | 62 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) 65 ftp->ftps_pc = (uintptr_t)symp->st_value; 66 ftp->ftps_size = (size_t)symp->st_size; 81 uint8_t *text, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) 94 size = dt_instr_size(&text[i], dtp, pid, symp->st_value + i, 125 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret) 137 if ((text = calloc(1, symp->st_size + 4)) == NULL) { 142 if (Pread(P, text, symp->st_size, symp->st_value) != symp 61 dt_pid_create_entry_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) argument 80 dt_pid_has_jump_table(struct ps_prochandle *P, dtrace_hdl_t *dtp, uint8_t *text, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) argument 124 dt_pid_create_return_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret) argument 268 dt_pid_create_offset_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, ulong_t off) argument 350 dt_pid_create_glob_offset_probes(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/common/ |
H A D | syms.c | 55 sym_tbl_t *symp; local 60 symp = &(mp->mi_symtab); 62 symp = &(mp->mi_dynsym); 66 strs = symp->st_strs; 68 for (i = 0; i < (int)symp->st_symn; i++) { 71 if (symtab_getsym(symp, i, &sym) == NULL) { 126 sym_tbl_t *symp; local 139 symp = &(mp->mi_symtab); 141 symp = &(mp->mi_dynsym); 149 for (i = 0; i < (int)symp 208 addr_to_sym(struct ps_prochandle *ph, ulong_t addr, GElf_Sym *symp, char **str) argument 220 str_to_sym(struct ps_prochandle *ph, const char *name, GElf_Sym *symp) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | symbindrep.c | 90 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, argument 94 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, 99 const char *sym_name = (const char *)symp->st_name; 105 return (symp->st_value);
|
H A D | truss.c | 185 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, argument 189 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, 194 const char *sym_name = (const char *)symp->st_name; 220 return (symp->st_value); 226 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, argument 231 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 235 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, 240 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 248 const char *sym_name = (const char *)symp->st_name; 271 return (symp 278 la_pltexit64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, uintptr_t *defcookie, uintptr_t retval, const char *sym_name) argument [all...] |
H A D | perfcnt.c | 171 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, argument 176 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 180 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, 185 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, 192 return (symp->st_value); 201 la_pltexit64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, argument 205 la_pltexit(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 213 const char *sym_name = (const char *)symp->st_name;
|
H A D | who.c | 282 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, argument 287 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 291 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, 296 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, 302 const char *sym_name = (const char *)symp->st_name; 322 return (symp->st_value);
|
H A D | bindings.c | 360 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcooke, argument 365 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, 369 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcooke, 374 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, 383 const char *sym_name = (const char *)symp->st_name; 392 return (symp->st_value); 515 return (symp->st_value);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_pservice.c | 157 const char *name, psaddr_t *symp) 163 return (ps_ops.ps_pglobal_lookup(P, object, name, symp)); 166 *symp = (psaddr_t)sym.st_value; 182 const char *name, ps_sym_t *symp) 189 return (ps_ops.ps_pglobal_sym(P, object, name, symp)); 192 symp->st_name = (Elf32_Word)sym.st_name; 193 symp->st_value = (Elf32_Addr)sym.st_value; 194 symp->st_size = (Elf32_Word)sym.st_size; 195 symp->st_info = ELF32_ST_INFO( 197 symp 156 ps_pglobal_lookup(struct ps_prochandle *P, const char *object, const char *name, psaddr_t *symp) argument 181 ps_pglobal_sym(struct ps_prochandle *P, const char *object, const char *name, ps_sym_t *symp) argument [all...] |
H A D | mdb_kproc.c | 569 const char *name, GElf_Sym *symp, mdb_syminfo_t *sip) 607 name, symp, &sip->sym_id) != 0) 610 symp->st_value += kpf->kpf_dyn_base; 612 if (symp->st_shndx != SHN_UNDEF) { 618 sym = *symp; 629 *symp = sym; 636 char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) 654 addr, flags, buf, nbytes, symp, &sip->sym_id) == 0) { 658 sym = *symp; 688 symp, 568 kp_lookup_by_name(mdb_tgt_t *t, const char *object, const char *name, GElf_Sym *symp, mdb_syminfo_t *sip) argument 635 kp_lookup_by_addr(mdb_tgt_t *t, uintptr_t addr, uint_t flags, char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) argument 734 kp_symtab_func(void *data, const GElf_Sym *symp, const char *name, uint_t id) argument [all...] |
H A D | mdb_nm.c | 438 nm_gelf_symtab_cb(void *data, const GElf_Sym *symp, const char *name, uint_t id) argument 444 return (ngsp->ngs_cb(ngsp->ngs_arg, symp, name, &ngsp->ngs_si, 562 nm_sym_t *syms, *symp; local 750 syms = symp = mdb_alloc(sizeof (nm_sym_t) * nsyms, 753 nii.nii_sympp = &symp; 785 for (symp = syms; nsyms-- != 0; symp++) { 786 nii.nii_fp = symp->nm_fp; 788 callback(&nii, &symp->nm_sym, symp [all...] |
H A D | mdb_gelf.c | 1468 const Elf32_Sym *symp; local 1484 symp = asmap[i]; 1485 v = symp->st_value; 1492 symp = asmap[i]; 1499 size = MAX(symp->st_size, 1); 1503 if (addr - symp->st_value < size) 1504 return (symp); 1513 const Elf64_Sym *symp; local 1529 symp = asmap[i]; 1530 v = symp 1725 GElf_Sym sym, *symp; local 1787 mdb_gelf_symtab_insert(mdb_gelf_symtab_t *gst, const char *name, const GElf_Sym *symp) argument 1838 mdb_gelf_symtab_delete(mdb_gelf_symtab_t *gst, const char *name, GElf_Sym *symp) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/unifdef/common/ |
H A D | unifdef.c | 321 char *symp; local 338 symp = keyword; 340 *symp = *cp++; 341 if (++symp >= &keyword[KWSIZE]) 344 *symp = '\0'; 373 for (symp = sym[symind], cp = scp; 374 *symp && *cp == *symp; cp++, symp++) { 378 if (*symp [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_module.c | 90 size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) 106 buf, nbytes, symp, &sip->sym_id) != 0 || 107 symp->st_value == 0) 120 if (sym_kmc == NULL || mdb_gelf_sym_closer(symp, &sym, addr)) { 122 sym = *symp; 130 *symp = sym; 139 name = mdb_gelf_sym_name(sym_kmc->kmc_symtab, symp); 153 kmdb_module_lookup_by_name(const char *obj, const char *name, GElf_Sym *symp, argument 162 symp, &sip->sym_id) == 0) { 89 kmdb_module_lookup_by_addr(uintptr_t addr, uint_t flags, char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) argument
|
/illumos-gate/usr/src/cmd/lockstat/ |
H A D | sym.c | 143 Sym *symtab, *symp, *lastsym; local 173 for (symp = symtab; symp < lastsym; symp++) 174 if ((uint_t)ELF32_ST_TYPE(symp->st_info) <= STT_FUNC && 175 symp->st_size != 0) 176 add_symbol(symp->st_name + strtab, 177 (uintptr_t)symp->st_value, (size_t)symp->st_size);
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_lookup.c | 191 const Elf32_Sym *symp = (Elf32_Sym *)sp->cts_data + symidx; local 192 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) 195 const Elf64_Sym *symp = (Elf64_Sym *)sp->cts_data + symidx; local 196 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) 254 const Elf32_Sym *symp = (Elf32_Sym *)sp->cts_data + symidx; local 255 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) 258 const Elf64_Sym *symp = (Elf64_Sym *)sp->cts_data + symidx; local 259 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC)
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab.c | 728 sym_tbl_t *symp; local 739 symp = fptr->file_ctf_dyn ? &fptr->file_dynsym : &fptr->file_symtab; 740 if (symp->sym_data_pri == NULL) 773 symtab.cts_type = symp->sym_hdr_pri.sh_type; 774 symtab.cts_flags = symp->sym_hdr_pri.sh_flags; 775 symtab.cts_data = symp->sym_data_pri->d_buf; 776 symtab.cts_size = symp->sym_hdr_pri.sh_size; 777 symtab.cts_entsize = symp->sym_hdr_pri.sh_entsize; 778 symtab.cts_offset = symp->sym_hdr_pri.sh_offset; 781 strtab.cts_type = symp 1460 GElf_Sym *symp, *syms; local 1755 sym_tbl_t *symp = shp->sh_type == SHT_SYMTAB ? local 2171 sym_by_addr_binary(sym_tbl_t *symtab, GElf_Addr addr, GElf_Sym *symp, uint_t *idp) argument 2245 GElf_Sym sym, *symp = NULL; local 2286 sym_by_addr(sym_tbl_t *symtab, GElf_Addr addr, GElf_Sym *symp, uint_t *idp) argument 2299 sym_by_name_binary(sym_tbl_t *symtab, const char *name, GElf_Sym *symp, uint_t *idp) argument 2338 sym_by_name_linear(sym_tbl_t *symtab, const char *name, GElf_Sym *symp, uint_t *idp) argument 2367 sym_by_name(sym_tbl_t *symtab, const char *name, GElf_Sym *symp, uint_t *idp) argument 2395 GElf_Sym *symp; local 2456 Pxlookup_by_addr(struct ps_prochandle *P, uintptr_t addr, char *buf, size_t bufsize, GElf_Sym *symp, prsyminfo_t *sip) argument 2463 Pxlookup_by_addr_resolved(struct ps_prochandle *P, uintptr_t addr, char *buf, size_t bufsize, GElf_Sym *symp, prsyminfo_t *sip) argument 2470 Plookup_by_addr(struct ps_prochandle *P, uintptr_t addr, char *buf, size_t size, GElf_Sym *symp) argument 2483 Pxlookup_by_name( struct ps_prochandle *P, Lmid_t lmid, const char *oname, const char *sname, GElf_Sym *symp, prsyminfo_t *sip) argument 2581 Plookup_by_name(struct ps_prochandle *P, const char *object, const char *symbol, GElf_Sym *symp) argument [all...] |
H A D | Pservice.c | 358 const char *sym_name, ps_sym_t *symp) 364 symp->st_name = (Elf32_Word)sym.st_name; 365 symp->st_value = (Elf32_Addr)sym.st_value; 366 symp->st_size = (Elf32_Word)sym.st_size; 367 symp->st_info = ELF32_ST_INFO( 369 symp->st_other = sym.st_other; 370 symp->st_shndx = sym.st_shndx; 375 if (Plookup_by_name(P, object_name, sym_name, symp) == 0) 357 ps_pglobal_sym(struct ps_prochandle *P, const char *object_name, const char *sym_name, ps_sym_t *symp) argument
|
/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | apptrace.c | 476 la_symbind64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcook, argument 480 la_symbind32(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcook, 485 char const *sym_name = (char const *) symp->st_name; 488 uintptr_t ret = symp->st_value; 493 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) 497 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) 557 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, argument 562 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 566 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, 571 la_i86_pltenter(Elf32_Sym *symp, uint_ 711 la_pltexit64(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, uintptr_t *defcookie, uintptr_t retval, const char *sym_name) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_module.c | 265 GElf_Sym *symp, uint_t *idp) 286 return (dt_module_symgelf32(sym, symp)); 295 GElf_Sym *symp, uint_t *idp) 316 return (dt_module_symgelf64(sym, symp)); 325 GElf_Sym *symp, uint_t *idp) 359 return (dt_module_symgelf32(sym, symp)); 367 GElf_Sym *symp, uint_t *idp) 401 return (dt_module_symgelf64(sym, symp)); 1249 GElf_Sym *symp, dtrace_syminfo_t *sip) 1279 if (symp 264 dt_module_symname32(dt_module_t *dmp, const char *name, GElf_Sym *symp, uint_t *idp) argument 294 dt_module_symname64(dt_module_t *dmp, const char *name, GElf_Sym *symp, uint_t *idp) argument 324 dt_module_symaddr32(dt_module_t *dmp, GElf_Addr addr, GElf_Sym *symp, uint_t *idp) argument 366 dt_module_symaddr64(dt_module_t *dmp, GElf_Addr addr, GElf_Sym *symp, uint_t *idp) argument 1248 dtrace_lookup_by_name(dtrace_hdl_t *dtp, const char *object, const char *name, GElf_Sym *symp, dtrace_syminfo_t *sip) argument 1330 dtrace_lookup_by_addr(dtrace_hdl_t *dtp, GElf_Addr addr, GElf_Sym *symp, dtrace_syminfo_t *sip) argument 1481 dtrace_symbol_type(dtrace_hdl_t *dtp, const GElf_Sym *symp, const dtrace_syminfo_t *sip, dtrace_typeinfo_t *tip) argument [all...] |
H A D | dt_pid.c | 106 dt_pid_per_sym(dt_pid_probe_t *pp, const GElf_Sym *symp, const char *func) argument 126 (symp->st_size - 1) * sizeof (ftp->ftps_offs[0])); 140 if (dt_pid_create_return_probe(pp->dpp_pr, dtp, ftp, symp, 152 if (dt_pid_create_entry_probe(pp->dpp_pr, dtp, ftp, symp) < 0) { 170 if (off >= symp->st_size) { 177 symp, off); 196 pp->dpp_dtp, ftp, symp, pp->dpp_name) < 0) { 214 dt_pid_sym_filt(void *arg, const GElf_Sym *symp, const char *func) argument 218 if (symp->st_shndx == SHN_UNDEF) 221 if (symp [all...] |
/illumos-gate/usr/src/cmd/sgs/ldprof/common/ |
H A D | profile.c | 621 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, argument 626 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 630 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, 635 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, 647 return (symp->st_value); 667 return (plt_cg_interp(symndx, (caddr_t)from, (caddr_t)symp->st_value));
|
/illumos-gate/usr/src/uts/intel/amd64/krtld/ |
H A D | kobj_reloc.c | 180 Sym * symp; local 181 symp = (Sym *) 188 (const char *)mp->strings + symp->st_name);
|
/illumos-gate/usr/src/uts/intel/ia32/krtld/ |
H A D | kobj_reloc.c | 176 Sym * symp; local 177 symp = (Sym *) 183 (const char *)mp->strings + symp->st_name);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 909 dhcp_symbol_t *symp; local 912 symp = inittab_getbycode( 915 if (symp != NULL) { 916 str = inittab_decode(symp, data, olen, B_TRUE); 929 free(symp); 1011 dhcp_symbol_t *symp; local 1028 symp = inittab_getbycode( 1031 if (symp != NULL) { 1032 str = inittab_decode(symp, data, olen, B_TRUE); 1039 free(symp); [all...] |