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.c62 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 …]
/illumos-gate/usr/src/lib/libdtrace/sparc/
H A Ddt_isadep.c52 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp) in dt_pid_create_entry_probe() argument
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()
71 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret) in dt_pid_create_return_probe() argument
78 if ((text = malloc(symp->st_size + 4)) == NULL) { in dt_pid_create_return_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()
[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()
228 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() argument
233 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
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()
[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
160 return (ps_ops.ps_pglobal_lookup(P, object, name, symp)); in ps_pglobal_lookup()
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()
[all …]
H A Dmdb_kproc.c571 const char *name, GElf_Sym *symp, mdb_syminfo_t *sip) in kp_lookup_by_name() argument
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()
638 char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) in kp_lookup_by_addr() argument
656 addr, flags, buf, nbytes, symp, &sip->sym_id) == 0) { in kp_lookup_by_addr()
660 sym = *symp; in kp_lookup_by_addr()
690 symp, &sip->sym_id) != 0) in kp_lookup_by_addr()
[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.c1468 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 …]
/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
760 symp = fptr->file_ctf_dyn ? &fptr->file_dynsym : &fptr->file_symtab; in Pbuild_file_ctf()
761 if (symp->sym_data_pri == NULL) in Pbuild_file_ctf()
794 symtab.cts_type = symp->sym_hdr_pri.sh_type; in Pbuild_file_ctf()
795 symtab.cts_flags = symp->sym_hdr_pri.sh_flags; in Pbuild_file_ctf()
796 symtab.cts_data = symp->sym_data_pri->d_buf; in Pbuild_file_ctf()
797 symtab.cts_size = symp->sym_hdr_pri.sh_size; in Pbuild_file_ctf()
798 symtab.cts_entsize = symp->sym_hdr_pri.sh_entsize; in Pbuild_file_ctf()
799 symtab.cts_offset = symp->sym_hdr_pri.sh_offset; in Pbuild_file_ctf()
802 strtab.cts_type = symp->sym_strhdr.sh_type; in Pbuild_file_ctf()
[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()
555 la_sparcv9_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter() argument
560 la_sparcv8_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
564 la_amd64_pltenter(Elf64_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
569 la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcookie, in la_sparcv9_pltenter()
[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.c1119 const Elf32_Sym *symp = (Elf32_Sym *)symbase + i; in ctf_object_iter() local
1120 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_object_iter()
1123 symp->st_name != 0) in ctf_object_iter()
1124 name = (char *)(strbase + symp->st_name); in ctf_object_iter()
1128 const Elf64_Sym *symp = (Elf64_Sym *)symbase + i; in ctf_object_iter() local
1129 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_object_iter()
1132 symp->st_name != 0) in ctf_object_iter()
1133 name = (char *)(strbase + symp->st_name); in ctf_object_iter()
1174 const Elf32_Sym *symp = (Elf32_Sym *)symbase + i; in ctf_function_iter() local
1175 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_function_iter()
[all …]
H A Dctf_create.c294 ctf_sect_t cts, *symp, *strp; in ctf_update() local
396 const Elf32_Sym *symp = (Elf32_Sym *)symbase + i; in ctf_update() local
398 type = ELF32_ST_TYPE(symp->st_info); in ctf_update()
399 if (ctf_sym_valid(strbase, type, symp->st_shndx, in ctf_update()
400 symp->st_value, symp->st_name) == B_FALSE) in ctf_update()
403 const Elf64_Sym *symp = (Elf64_Sym *)symbase + i; in ctf_update() local
405 type = ELF64_ST_TYPE(symp->st_info); in ctf_update()
406 if (ctf_sym_valid(strbase, type, symp->st_shndx, in ctf_update()
407 symp->st_value, symp->st_name) == B_FALSE) in ctf_update()
597 const Elf32_Sym *symp = (Elf32_Sym *)symbase + i; in ctf_update() local
[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
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 Ddt_pid.c106 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 …]
/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