Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 25 of 495) sorted by relevance

12345678910>>...20

/illumos-gate/usr/src/tools/smatch/src/
H A Dctags.c71 stream_name(sym->pos.stream), sym->pos.line, (int)sym->kind); in show_symbol_tag()
92 if (ident == sym->ident && pos.line == sym->pos.line && in show_tags()
106 if (sym->ident && !sym->visited) { in add_tag()
126 if (!sym || sym->visited) in examine_symbol()
128 if (sym->ident && sym->ident->reserved) in examine_symbol()
133 add_tag(sym); in examine_symbol()
164 sym->namespace, sym->type); in examine_symbol()
166 if (!sym->kind) in examine_symbol()
175 if (sym->ident && sym->ident->reserved) in examine_namespace()
197 show_ident(sym->ident), sym->type); in examine_namespace()
[all …]
H A Dsymbol.c63 for (sym = ident->symbols; sym; sym = sym->next_id) { in lookup_symbol()
83 return sym; in alloc_symbol()
100 if (sym->ident || !is_bitfield_type(sym)) { in lay_out_union()
114 sym = sym->ctype.base_type; in bitfield_base_size()
116 sym = sym->ctype.base_type; in bitfield_base_size()
131 if (sym->ident || !is_bitfield_type(sym)) { in lay_out_struct()
287 merge_type(sym, sym->ctype.base_type); in merge_type()
364 } while ((sym = sym->same_symbol) != NULL); in get_symbol_initializer()
457 if (!sym) in examine_symbol_type()
636 if (sym->ident && sym->ident != ident) in bind_symbol()
[all …]
H A Dc2xml.c71 assert(sym != NULL); in new_sym_node()
90 if (sym->pos.stream != sym->endpos.stream) in new_sym_node()
93 sym->aux = node; in new_sym_node()
102 struct symbol *sym; in examine_members() local
176 if (!sym) in examine_symbol()
181 if (sym->ident && sym->ident->reserved) in examine_symbol()
184 child = new_sym_node(sym, get_type_name(sym->type), node); in examine_symbol()
206 switch (sym->type) { in examine_symbol()
246 sym->endpos = sym->pos; in examine_macro()
253 if (sym->ident && sym->ident->reserved) in examine_namespace()
[all …]
H A Dsmatch_type.c157 sym = get_real_base_type(sym); in get_symbol_from_deref()
235 sym = get_real_base_type(sym); in get_pointer_type()
419 sym = get_base_type(sym); in returns_unsigned()
420 if (!sym || sym->type != SYM_FN) in returns_unsigned()
422 sym = get_base_type(sym); in returns_unsigned()
435 sym = get_base_type(sym); in returns_pointer()
436 if (!sym || sym->type != SYM_FN) in returns_pointer()
438 sym = get_base_type(sym); in returns_pointer()
439 if (sym && sym->type == SYM_PTR) in returns_pointer()
645 sym = get_real_base_type(sym); in cur_func_return_type()
[all …]
H A Dshow-parse.c73 if (!sym) in do_debug_symbol()
77 sym->bit_size, sym->ctype.alignment, in do_debug_symbol()
80 sym, stream_name(sym->pos.stream), sym->pos.line, sym->pos.pos, in do_debug_symbol()
170 …"\t%s:%d:%ld at offset %ld.%d", show_ident(sym->ident), sym->bit_size, sym->ctype.alignment, sym->… in show_struct_member()
268 if (typenames[i].sym == sym) in builtin_typename()
278 if (typenames[i].sym == sym) in builtin_type_suffix()
303 if (!sym || (sym->type != SYM_NODE && sym->type != SYM_ARRAY && in do_show_type()
321 if (!sym) in do_show_type()
371 combine_address_space(sym->pos, &as, sym->ctype.as); in do_show_type()
416 sym = sym->ctype.base_type; in do_show_type()
[all …]
H A Dsmatch_var_sym.c28 tmp->sym = sym; in alloc_var_sym()
37 struct symbol *sym; in expr_to_vsl() local
69 if (!var || !sym) { in expr_to_vsl()
94 if (!b->sym && a->sym) in cmp_var_sym()
96 if (!a->sym && b->sym) in cmp_var_sym()
98 if (a->sym < b->sym) in cmp_var_sym()
100 if (a->sym > b->sym) in cmp_var_sym()
133 if (!var || !sym) in add_var_sym_expr()
151 if (tmp->sym == sym && strcmp(tmp->var, var) == 0) { in del_var_sym()
164 if (tmp->sym == sym && strcmp(tmp->var, var) == 0) in in_var_sym_list()
[all …]
H A Dgraph.c141 struct symbol * sym; in graph_calls() local
143 for (sym = insn->func->sym->ident->symbols; in graph_calls()
144 sym; sym = sym->next_id) { in graph_calls()
145 if (sym->namespace & NS_SYMBOL && sym->ep) in graph_calls()
149 if (sym) in graph_calls()
169 struct symbol *sym; in main() local
185 expand_symbol(sym); in main()
186 linearize_symbol(sym); in main()
190 if (sym->ep) { in main()
191 graph_ep(sym->ep); in main()
[all …]
H A Dcheck_syscall_arg_type.c53 struct symbol *sym; member
73 if (tl->sym || tl->failed) in typedef_lookup()
76 if (!tl->sym) in typedef_lookup()
86 if (!umode_t.sym) in is_mode_t()
89 if (type == umode_t.sym) in is_mode_t()
100 if (!pid_t.sym) in is_pid_t()
103 if (type == pid_t.sym) in is_pid_t()
112 if (is_mode_t(sym)) in get_arg_type_from_type()
114 if (is_pid_t(sym)) in get_arg_type_from_type()
147 if (!sym || !sym->ident) in get_syscall_arg_type()
[all …]
H A Dtest-dissect.c5 static inline char storage(struct symbol *sym) in storage() argument
7 int t = sym->type; in storage()
8 unsigned m = sym->ctype.modifiers; in storage()
47 print_usage(pos, sym, mode); in r_symbol()
49 if (!sym->ident) in r_symbol()
50 sym->ident = built_in_ident("__asm__"); in r_symbol()
53 sym->ident->len, sym->ident->name, in r_symbol()
54 show_typename(sym->ctype.base_type)); in r_symbol()
61 print_usage(pos, sym, mode); in r_member()
64 si = sym->ident ?: ni; in r_member()
[all …]
H A Dsmatch_states.c190 struct symbol *sym; in set_state_expr() local
195 if (!name || !sym) in set_state_expr()
385 struct symbol *sym; in get_state_expr() local
390 if (!name || !sym) in get_state_expr()
416 if (!name || !sym) in get_possible_states_expr()
443 if (!name || !sym) in get_sm_state_expr()
468 if (!name || !sym) in delete_state_expr()
481 if (sm->sym == sym) in delete_all_states_stree_sym()
595 if (!name || !sym) in set_true_false_states_expr()
616 sym = true_sm ? true_sm->sym : false_sm->sym; in __set_true_false_sm()
[all …]
H A Dsmatch_flow.c201 if (sym->stmt && sym->stmt->type == STMT_COMPOUND) { in inlinable()
208 if (sym->inline_stmt && sym->inline_stmt->type == STMT_COMPOUND) { in inlinable()
1052 __save_gotos(sym->ident->name, sym); in find_asm_gotos()
1235 if (!sym) in split_sym()
1253 split_sym(sym); in split_symlist()
1511 split_sym(sym); in split_declaration()
1576 if (sym->ident) in split_function()
1754 return sym; in get_last_scoped_symbol()
1756 return sym; in get_last_scoped_symbol()
1820 if (sym) in split_inlines()
[all …]
H A Dinline.c55 if (!sym) in copy_symbol()
56 return sym; in copy_symbol()
58 return sym; in copy_symbol()
59 if (!sym->replace) { in copy_symbol()
61 return sym; in copy_symbol()
69 struct symbol *sym; in copy_symbol_list() local
72 struct symbol *newsym = copy_symbol(sym->pos, sym); in copy_symbol_list()
163 expr->cast_type = alloc_symbol(sym->pos, sym->type); in copy_expression()
486 *sym = *orig; in create_copy_symbol()
490 orig = sym; in create_copy_symbol()
[all …]
H A Dcheck_info_leak.c30 name = expr_to_var_sym(expr, sym); in my_get_variable()
32 if (!name || !*sym) in my_get_variable()
35 return (*sym)->ident->name; in my_get_variable()
41 struct symbol *sym; in match_kmalloc() local
53 struct symbol *sym; in match_strcpy() local
56 name = my_get_variable(dest, &sym); in match_strcpy()
57 if (!name || !sym) in match_strcpy()
59 if (!get_state(my_id, name, sym)) in match_strcpy()
68 struct symbol *sym; in match_copy_to_user() local
72 name = my_get_variable(src, &sym); in match_copy_to_user()
[all …]
H A Dcheck_leaks.c60 if (!sym || !sym->ident) in alloc_parent_str()
76 if (!name || !*sym || !(*sym)->ident) { in get_parent_from_expr()
77 *sym = NULL; in get_parent_from_expr()
80 return alloc_parent_str(*sym); in get_parent_from_expr()
86 struct symbol *sym; in is_local() local
90 if (!name || !sym) in is_local()
103 struct symbol *sym; in is_param() local
108 if (!name || !sym) in is_param()
111 if (tmp == sym) { in is_param()
159 struct symbol *sym; in set_parent() local
[all …]
H A Dsmatch_tracker.c29 tmp->sym = sym; in alloc_tracker()
34 struct symbol *sym) in add_tracker() argument
40 tmp = alloc_tracker(owner, name, sym); in add_tracker()
47 struct symbol *sym; in add_tracker_expr() local
49 name = expr_to_var_sym(expr, &sym); in add_tracker_expr()
50 if (!name || !sym) in add_tracker_expr()
52 add_tracker(list, owner, name, sym); in add_tracker_expr()
64 struct symbol *sym) in del_tracker() argument
69 if (tmp->owner == owner && tmp->sym == sym in del_tracker()
79 struct symbol *sym) in in_tracker_list() argument
[all …]
H A Dcheck_puts_argument.c35 this_func = sym; in match_function_def()
43 if (sym == arg) in parent_is_arg()
52 struct symbol *sym; in match_put() local
57 name = expr_to_var_sym(tmp, &sym); in match_put()
59 if (parent_is_arg(sym) && sym->ident) in match_put()
60 set_state(my_id, sym->ident->name, sym, &putted); in match_put()
78 tmp->sym); in match_return()
85 tracker->sym); in match_return()
91 static void print_arg(struct symbol *sym) in print_arg() argument
97 if (sym == arg) { in print_arg()
[all …]
H A Dsmatch_equiv.c42 tmp->sym = sym; in alloc_relation()
65 if (a->sym > b->sym) in cmp_relation()
67 if (a->sym < b->sym) in cmp_relation()
111 .sym = sym in add_related()
123 new = alloc_relation(name, sym); in add_related()
132 .sym = sym, in del_related()
174 struct symbol *sym; in remove_from_equiv_expr() local
177 if (!name || !sym) in remove_from_equiv_expr()
179 remove_from_equiv(name, sym); in remove_from_equiv_expr()
226 left_sm->sym = left_sym; in set_equiv()
[all …]
/illumos-gate/usr/src/uts/common/krtld/
H A Dreloc.h246 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
252 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
258 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
264 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
270 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
278 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
288 ((sym) ? demangle(sym) : MSG_INTL(MSG_STR_UNKNOWN)), (int)(rtype)))
293 ((sym) ? demangle(sym) : MSG_INTL(MSG_STR_UNKNOWN)), (int)(size)))
303 ((sym) ? demangle(sym) : MSG_INTL(MSG_STR_UNKNOWN)), (nbits)))
308 ((sym) ? demangle(sym) : MSG_INTL(MSG_STR_UNKNOWN)), \
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dsym.c155 } sym; member
258 sym = symstate->sym.data + ndx; in dump_symtab()
440 sym = symstate->sym.data; in print_symstate()
447 for (sym += ndx; cnt--; sym++) { in print_symstate()
463 for (sym += ndx; cnt-- > 0; sym++) in print_symstate()
475 for (sym += ndx; cnt--; sym++) { in print_symstate()
488 for (sym += ndx; cnt-- > 0; sym++) in print_symstate()
520 for (sym += ndx; cnt--; sym++) in print_symstate()
530 for (sym += ndx; cnt--; sym++) { in print_symstate()
550 for (sym += ndx; cnt--; sym++) in print_symstate()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dlinker_set.h44 #define __GLOBL1(sym) __asm__(".globl " #sym) argument
45 #define __GLOBL(sym) __GLOBL1(sym) argument
49 #define __MAKE_SET(set, sym) \ argument
53 __set_##set##_sym_##sym __section("set_" #set) \
54 __used = &(sym)
59 #define TEXT_SET(set, sym) __MAKE_SET(set, sym) argument
60 #define DATA_SET(set, sym) __MAKE_SET(set, sym) argument
61 #define BSS_SET(set, sym) __MAKE_SET(set, sym) argument
62 #define ABS_SET(set, sym) __MAKE_SET(set, sym) argument
63 #define SET_ENTRY(set, sym) __MAKE_SET(set, sym) argument
/illumos-gate/usr/src/cmd/dis/
H A Ddis_target.c260 sym_entry_t *sym; in construct_symtab() local
324 sym->se_shndx = sym->se_sym.st_shndx; in construct_symtab()
353 sym++; in construct_symtab()
384 sym++; in construct_symtab()
693 addr < sym->se_sym.st_value + sym->se_sym.st_size && in dis_tgt_lookup()
695 osym = sym; in dis_tgt_lookup()
703 match = sym; in dis_tgt_lookup()
723 sym = osym; in dis_tgt_lookup()
751 sym_entry_t *sym; in dis_tgt_next_symbol() local
758 sym++; in dis_tgt_next_symbol()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/
H A Dmisc.c59 GElf_Sym sym; in umem_set_standalone() local
62 if (mdb_lookup_by_obj(UMEM_OBJNAME, "umem_alloc", &sym) == 0) in umem_set_standalone()
79 umem_lookup_by_name(const char *name, GElf_Sym *sym) in umem_lookup_by_name() argument
82 UMEM_OBJNAME), name, sym)); in umem_lookup_by_name()
89 GElf_Sym sym; in umem_readvar() local
91 if (umem_lookup_by_name(name, &sym)) in umem_readvar()
94 if (mdb_vread(buf, sym.st_size, (uintptr_t)sym.st_value) in umem_readvar()
95 == sym.st_size) in umem_readvar()
96 return ((ssize_t)sym.st_size); in umem_readvar()
102 is_umem_sym(const char *sym, const char *prefix) in is_umem_sym() argument
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfconst.c255 sym->sym_name = str; in libconv_fill_cb()
256 sym->sym_value = value; in libconv_fill_cb()
316 if ((sym->ste_alloc != NULL) && (fill_state.cnt > sym->ste_nelts)) { in libconv_fill()
317 free(sym->ste_alloc); in libconv_fill()
318 sym->ste_alloc = NULL; in libconv_fill()
319 sym->ste_nelts = 0; in libconv_fill()
431 sym_table_ent_t *sym; in invalidate_libconv_strings() local
470 sym->ste_arr = NULL; in invalidate_libconv_strings()
475 sym->ste_arr = NULL; in invalidate_libconv_strings()
502 sym_table_ent_t *sym; in elfedit_const_to_atoui() local
[all …]
H A Dutil.c90 for (; sym->sym_name != NULL; sym++) in elfedit_atoi_value_to_str()
92 return (sym->sym_name); in elfedit_atoi_value_to_str()
103 for (; sym->sym_name != NULL; sym++) in elfedit_atoui_value_to_str()
105 return (sym->sym_name); in elfedit_atoui_value_to_str()
149 for (; sym->sym_name != NULL; sym++) { in atoi_sym_process()
152 *value = sym->sym_value; in atoi_sym_process()
176 for (; sym->sym_name != NULL; sym++) { in atoui_sym_process()
196 for (; sym->sym_name != NULL; sym++) in elfedit_cpl_atoi()
202 for (; sym->sym_name != NULL; sym++) in elfedit_cpl_atoui()
242 if (sym && atoi_sym_process(str, sym, v)) in elfedit_atoi2()
[all …]
/illumos-gate/usr/src/lib/libm/common/C/
H A Dlibm.h55 .weak __/**/sym; \
57 __/**/sym = sym
84 #define PIC_SET(via,sym,dst) ldx [%via+sym],%dst argument
86 #define PIC_SET(via,sym,dst) ld [%via+sym],%dst argument
95 #define PIC_SET(via,sym,dst) setx sym,%g1,%dst argument
97 #define PIC_SET(via,sym,dst) set sym,%dst argument
154 .weak __/**/sym; \
156 __/**/sym = sym
166 movq PIC_G(sym),%dst; \
179 mov PIC_G(sym),%dst; \
[all …]

12345678910>>...20