Home
last modified time | relevance | path

Searched refs:sym (Results 151 – 175 of 487) sorted by relevance

12345678910>>...20

/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Daudit.c820 Addr ovalue = sym->st_value; in _audit_pltenter()
836 sym->st_value = (Addr)(*alp->al_pltenter)(sym, ndx, in _audit_pltenter()
847 if (ovalue != sym->st_value) { in _audit_pltenter()
858 Sym nsym = *sym; in audit_pltenter()
891 Sym *sym, uint_t ndx) in _audit_pltexit() argument
952 rlmp, dlmp, sym, ndx); in audit_pltexit()
955 rlmp, dlmp, sym, ndx); in audit_pltexit()
985 Addr ovalue = sym->st_value; in _audit_symbind()
1015 sym->st_value = (*alp->al_symbind)(sym, ndx, racp == NULL ? in _audit_symbind()
1042 return (sym->st_value); in _audit_symbind()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_err_ptr_deref.c42 set_state(my_id, sm->name, sm->sym, &checked); in ok_to_use()
62 set_state(my_id, sm->name, sm->sym, &checked); in check_is_err_ptr()
75 struct symbol *sym; in set_param_dereferenced() local
78 name = get_variable_from_key(arg, key, &sym); in set_param_dereferenced()
79 if (!name || !sym) in set_param_dereferenced()
82 sm = get_sm_state(my_id, name, sym); in set_param_dereferenced()
89 estate = get_state(SMATCH_EXTRA, name, sym); in set_param_dereferenced()
94 set_state(my_id, sm->name, sm->sym, &checked); in set_param_dereferenced()
H A Dbuiltin.c61 struct symbol *sym; in eval_args() local
80 sym = expr->fn->ctype; in eval_args()
135 struct symbol *sym = arg->symbol; in expand_warning() local
136 if (sym->initializer && sym->initializer->type == EXPR_STRING) { in expand_warning()
358 struct symbol *sym; in init_builtins() local
360 sym->ctype.base_type = ptr->base_type; in init_builtins()
362 sym->op = ptr->op; in init_builtins()
363 sym->builtin = 1; in init_builtins()
375 sym->ctype.base_type = fun; in declare_builtin()
376 sym->ctype.modifiers = MOD_TOPLEVEL; in declare_builtin()
[all …]
H A Dcheck_readl_infinite_loops.c35 struct symbol *sym; in is_readl_call() local
42 sym = expr->fn->symbol; in is_readl_call()
43 if (!sym || !sym->ident) in is_readl_call()
45 if (strcmp(sym->ident->name, "readl") != 0) in is_readl_call()
H A Dsmatch_untracked_param.c88 … char *get_array_from_key(struct expression *expr, int param, const char *key, struct symbol **sym) in get_array_from_key() argument
102 return expr_to_var_sym(arg, sym); in get_array_from_key()
108 struct symbol *sym; in mark_untracked_lost() local
115 name = return_state_to_var_sym(expr, param, key, &sym); in mark_untracked_lost()
116 if (!name || !sym) { in mark_untracked_lost()
117 name = get_array_from_key(expr, param, key, &sym); in mark_untracked_lost()
118 if (!name || !sym) in mark_untracked_lost()
125 set_state(my_id, name, sym, &untracked); in mark_untracked_lost()
H A Dcheck_dma_on_stack.c25 struct symbol *sym; in match_dma_func() local
42 sym = get_type(arg); in match_dma_func()
43 if (!sym || sym->type != SYM_ARRAY) in match_dma_func()
H A Dsmatch_param_to_mtag_data.c116 struct symbol *sym; in propogate_assignment() local
121 name = get_variable_from_key(arg, key, &sym); in propogate_assignment()
122 if (!name || !sym) in propogate_assignment()
125 orig_param = get_param_num_from_sym(sym); in propogate_assignment()
130 set_state(my_id, name, sym, alloc_tag_data_state(tag, buf, offset)); in propogate_assignment()
198 param = get_param_num_from_sym(sm->sym); in print_stored_to_mtag()
H A Dsmatch_param_cleared.c42 struct symbol *sym; in db_param_cleared() local
51 name = get_variable_from_key(arg, key, &sym); in db_param_cleared()
52 if (!name || !sym) in db_param_cleared()
56 set_state(my_id, name, sym, &zeroed); in db_param_cleared()
58 set_state(my_id, name, sym, &cleared); in db_param_cleared()
83 param = get_param_num_from_sym(sm->sym); in print_return_value_param()
H A Dcheck_double_checking.c37 set_state(my_id, sm->name, sm->sym, &modified); in set_modified()
196 struct symbol *sym; in match_condition() local
201 name = expr_to_var_sym(expr, &sym); in match_condition()
205 set_state_stree(&to_check, my_id, name, sym, &checked); in match_condition()
250 sm = get_sm_state(my_id, check->name, check->sym); in after_loop()
264 static void match_func_end(struct symbol *sym) in match_func_end() argument
H A Dsmatch_mtag_data.c148 struct symbol *sym; in parent_is_fresh_alloc() local
150 sym = expr_to_sym(expr); in parent_is_fresh_alloc()
151 if (!sym || !sym->ident) in parent_is_fresh_alloc()
153 return is_fresh_alloc_var_sym(sym->ident->name, sym); in parent_is_fresh_alloc()
308 static void clear_cache(struct symbol *sym) in clear_cache() argument
H A Dsmatch_container_of.c220 struct symbol *container_sym, *sym; in get_container_name_helper() local
234 sym = expr_to_sym(expr); in get_container_name_helper()
236 if (!sym || !container_sym) in get_container_name_helper()
238 if (sym != container_sym) in get_container_name_helper()
372 set_state(param_id, name, sym, alloc_state_str(buf)); in db_passed_container()
383 static struct symbol *get_member_from_offset(struct symbol *sym, int offset) in get_member_from_offset() argument
388 type = get_real_base_type(sym); in get_member_from_offset()
410 base_type = get_real_base_type(sym); in get_member_type_from_offset()
416 member = get_member_from_offset(sym, offset); in get_member_type_from_offset()
612 set_state(sm->owner, sm->name, sm->sym, sm->state); in load_container_data()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dirm.c58 GElf_Sym sym; in check_irm_enabled() local
62 if (mdb_lookup_by_name("irm_enable", &sym) == -1) { in check_irm_enabled()
67 addr = (uintptr_t)sym.st_value; in check_irm_enabled()
80 GElf_Sym sym; in irmpools_walk_init() local
82 if (mdb_lookup_by_name("irm_pools_list", &sym) == -1) { in irmpools_walk_init()
87 wsp->walk_addr = (uintptr_t)sym.st_value; in irmpools_walk_init()
/illumos-gate/usr/src/cmd/mdb/common/modules/sppp/
H A Dsppp.c476 GElf_Sym sym; in tunll_walk_init() local
489 (uintptr_t)sym.st_value) == -1) { in tunll_walk_init()
491 (uintptr_t)sym.st_value); in tunll_walk_init()
498 twd->listhead = (void *)(uintptr_t)sym.st_value; in tunll_walk_init()
698 GElf_Sym sym; in _mdb_init() local
700 if (mdb_lookup_by_obj("sppp", "sppp_uwinit", &sym) == 0) in _mdb_init()
701 mdb_qops_install(&sppp_qops, (uintptr_t)sym.st_value); in _mdb_init()
712 GElf_Sym sym; in _mdb_fini() local
715 mdb_qops_remove(&sppptun_qops, (uintptr_t)sym.st_value); in _mdb_fini()
717 if (mdb_lookup_by_obj("sppp", "sppp_uwinit", &sym) == 0) in _mdb_fini()
[all …]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dsyms.c225 Dbg_syms_entered(Ofl_desc *ofl, Sym *sym, Sym_desc *sdp) in Dbg_syms_entered() argument
289 ofl->ofl_dehdr->e_machine, sym, 0, 0, NULL, in Dbg_syms_cap_convert()
310 ofl->ofl_dehdr->e_machine, sym, in Dbg_syms_cap_local()
390 Dbg_syms_new(Ofl_desc *ofl, Sym *sym, Sym_desc *sdp) in Dbg_syms_new() argument
583 Dbg_syminfo_entry(Lm_list *lml, Word ndx, Syminfo *sip, Sym *sym, in Dbg_syminfo_entry() argument
599 Dbg_demangle_name(strtab + sym->st_name), needed); in Dbg_syminfo_entry()
637 uchar_t type = ELF_ST_TYPE(sym->st_info); in Elf_syms_table_entry()
638 uchar_t bind = ELF_ST_BIND(sym->st_info); in Elf_syms_table_entry()
649 sec = conv_sym_shndx(osabi, mach, sym->st_shndx, in Elf_syms_table_entry()
653 conv_sym_value(mach, type, sym->st_value, &inv_buf1), in Elf_syms_table_entry()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_module.c91 GElf_Sym sym; in kmdb_module_lookup_by_addr() local
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()
220 kmdb_module_symtab_func(void *data, const GElf_Sym *sym, const char *name, in kmdb_module_symtab_func() argument
225 if (mdb_tgt_sym_match(sym, arg->sym_type)) { in kmdb_module_symtab_func()
228 return (arg->sym_cb(arg->sym_data, sym, name, &arg->sym_info, in kmdb_module_symtab_func()
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Drelocate.c105 Sym *_sym, *sym = (syms + rsymndx); in count_reloc() local
133 reloc->r_size = sym->st_size; in count_reloc()
160 (ELF_ST_BIND(sym->st_info) == STB_LOCAL)) in count_reloc()
268 name = strs + sym->st_name; in count_reloc()
282 0, rsymndx, sym, type, LKUP_STDRELOC); in count_reloc()
286 _sym = sym; in count_reloc()
289 sym = sr.sr_sym; in count_reloc()
386 reloc->r_value = sym->st_value; in count_reloc()
390 (sym->st_shndx != SHN_ABS)) in count_reloc()
392 reloc->r_size = sym->st_size; in count_reloc()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dsym.msg30 # Message file for elfedit 'sym' module
134 The sym argument supplies a numeric index into the symbol\n\
225 The sym:st_info command is used to display or alter the\n\
227 to the entire st_info value. Normally, the sym:st_bind or sym:st_type\n\
228 commands are used in preference to sym:st_info.\n\
240 The sym:st_name command is used to display or alter the\n\
269 command is used in preference to sym:st_other.\n\
302 The sym:st_size command is used to display or alter the\n\
316 The sym:st_type command is used to display or alter the\n\
382 @ MSG_STR_SYM "sym"
[all …]
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dreadelf.c401 is_function(Elf *elf, GElf_Sym *sym) in is_function() argument
412 if (sym->st_shndx == SHN_UNDEF) in is_function()
415 if (GELF_ST_TYPE(sym->st_info) == STT_FUNC) { in is_function()
416 if (GELF_ST_BIND(sym->st_info) == STB_GLOBAL) in is_function()
419 if (GELF_ST_BIND(sym->st_info) == STB_WEAK) in is_function()
422 if (!aflag && GELF_ST_BIND(sym->st_info) == STB_LOCAL) in is_function()
429 if (GELF_ST_TYPE(sym->st_info) != STT_NOTYPE) in is_function()
436 if (GELF_ST_BIND(sym->st_info) != STB_GLOBAL && in is_function()
437 GELF_ST_BIND(sym->st_info) != STB_WEAK && in is_function()
441 if (sym->st_shndx >= SHN_LORESERVE) in is_function()
[all …]
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/pcplusmp/
H A Dpcplusmp.c114 GElf_Sym sym; in _mdb_init() local
116 if (mdb_lookup_by_name("gld_intr", &sym) != -1) in _mdb_init()
117 if (GELF_ST_TYPE(sym.st_info) == STT_FUNC) in _mdb_init()
118 gld_intr_addr = (uintptr_t)sym.st_value; in _mdb_init()
/illumos-gate/usr/src/contrib/ast/src/lib/libdll/
H A Ddll_lib.c116 char sym[64]; in dll_lib() local
151 sfsprintf(sym, sizeof(sym), "%s_lib", names->id); in dll_lib()
152 if (!(libf = (Dll_lib_f)dlllook(dll, sym))) in dll_lib()
155 …dllerrorf)(NiL, disc, 2, "%s: %s: initialization function not found in library", names->path, sym); in dll_lib()
157 …l_lib: %s version %lu initialization function %s not found in library", names->name, version, sym); in dll_lib()
/illumos-gate/usr/src/cmd/mdb/common/modules/svc.startd/
H A Dstartd.c339 GElf_Sym sym; in logbuf() local
343 if (mdb_lookup_by_name("logbuf", &sym) == -1) { in logbuf()
348 buf = mdb_alloc(sym.st_size, UM_SLEEP | UM_GC); in logbuf()
350 if (mdb_vread(buf, sym.st_size, sym.st_value) == -1) { in logbuf()
361 if (cp >= buf + sym.st_size || in logbuf()
362 strchr(cp + 1, '\0') >= buf + sym.st_size) { in logbuf()
/illumos-gate/usr/src/contrib/zlib/
H A Dinfback.c87 unsigned sym, bits; in fixedtables() local
91 sym = 0; in fixedtables()
92 while (sym < 144) state->lens[sym++] = 8; in fixedtables()
93 while (sym < 256) state->lens[sym++] = 9; in fixedtables()
94 while (sym < 280) state->lens[sym++] = 7; in fixedtables()
95 while (sym < 288) state->lens[sym++] = 8; in fixedtables()
102 sym = 0; in fixedtables()
103 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
/illumos-gate/usr/src/uts/common/sys/
H A Delf.h795 #define ELF32_R_INFO(sym, type) (((sym)<<8)+(unsigned char)(type)) argument
799 #define ELF64_R_INFO(sym, type) (((Elf64_Xword)(sym)<<32)+(Elf64_Xword)(type)) argument
860 #define ELF32_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size)) argument
871 #define ELF64_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size)) argument
900 #define ELF32_C_INFO(sym, grp) (((sym)<<8)+(unsigned char)(grp)) argument
924 #define ELF64_C_INFO(sym, grp) (((Elf64_Xword)(sym)<<32)+(Elf64_Xword)(grp)) argument
/illumos-gate/usr/src/cmd/sgs/include/
H A Delfedit.h760 const elfedit_atoi_sym_t *sym);
762 const elfedit_atoui_sym_t *sym);
766 extern int elfedit_atoi2(const char *str, const elfedit_atoi_sym_t *sym,
768 extern int elfedit_atoui2(const char *str, const elfedit_atoui_sym_t *sym,
775 const elfedit_atoi_sym_t *sym);
778 const elfedit_atoui_sym_t *sym);
784 elfedit_atoi_t max, const elfedit_atoi_sym_t *sym, elfedit_atoi_t *v);
790 extern const char *elfedit_atoi_value_to_str(const elfedit_atoi_sym_t *sym,
797 extern void elfedit_cpl_atoi(void *cpldata, const elfedit_atoi_sym_t *sym);
957 const char *name, Elf32_Sym **sym, Elf32_Word *num,
[all …]
/illumos-gate/usr/src/boot/sys/i386/include/
H A Dasm.h100 #define WEAK_REFERENCE(sym, alias) \ argument
102 .equ CNAME(alias),CNAME(sym)
107 #define STRONG_ALIAS(alias,sym) \ argument
109 alias = sym

12345678910>>...20