Searched refs:sym (Results 1 - 25 of 460) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/tools/smatch/src/
H A Dctags.c37 static void examine_symbol(struct symbol *sym);
68 static inline void show_symbol_tag(FILE *fp, struct symbol *sym) argument
70 fprintf(fp, "%s\t%s\t%d;\"\t%c\tfile:\n", show_ident(sym->ident),
71 stream_name(sym->pos.stream), sym->pos.line, (int)sym->kind);
76 struct symbol *sym; local
91 FOR_EACH_PTR(list, sym) {
92 if (ident == sym->ident && pos.line == sym
104 add_tag(struct symbol *sym) argument
114 struct symbol *sym; local
122 examine_symbol(struct symbol *sym) argument
171 examine_namespace(struct symbol *sym) argument
204 struct symbol *sym; local
[all...]
H A Dc2xml.c44 static void examine_symbol(struct symbol *sym, xmlNodePtr node);
65 static xmlNodePtr new_sym_node(struct symbol *sym, const char *name, xmlNodePtr parent) argument
68 const char *ident = show_ident(sym->ident);
71 assert(sym != NULL);
80 if (sym->ident && ident)
82 newProp(node, "file", stream_name(sym->pos.stream));
84 newNumProp(node, "start-line", sym->pos.line);
85 newNumProp(node, "start-col", sym->pos.pos);
87 if (sym->endpos.type) {
88 newNumProp(node, "end-line", sym
102 struct symbol *sym; local
109 examine_modifiers(struct symbol *sym, xmlNodePtr node) argument
158 examine_layout(struct symbol *sym, xmlNodePtr node) argument
170 examine_symbol(struct symbol *sym, xmlNodePtr node) argument
237 examine_macro(struct symbol *sym, xmlNodePtr node) argument
251 examine_namespace(struct symbol *sym) argument
290 struct symbol *sym; local
[all...]
H A Dtest-unssa.c31 struct symbol *sym = ep->name; local
32 const char *name = show_ident(sym->ident);
34 if (sym->ctype.modifiers & MOD_STATIC)
49 static int output_data(struct symbol *sym) argument
51 printf("symbol %s:\n", show_ident(sym->ident));
52 printf("\ttype = %d\n", sym->ctype.base_type->type);
53 printf("\tmodif= %lx\n", sym->ctype.modifiers);
60 struct symbol *sym; local
61 FOR_EACH_PTR(list, sym) {
63 expand_symbol(sym);
[all...]
H A Dcheck_syscall_arg_type.c53 struct symbol *sym; member in struct:typedef_lookup
73 if (tl->sym || tl->failed)
75 tl->sym = _typedef_lookup(tl->name);
76 if (!tl->sym)
80 static int is_mode_t(struct symbol *sym) argument
86 if (!umode_t.sym)
88 type = get_base_type(sym);
89 if (type == umode_t.sym)
94 static int is_pid_t(struct symbol *sym) argument
100 if (!pid_t.sym)
108 get_arg_type_from_type(struct symbol *sym) argument
142 get_syscall_arg_type(struct symbol *sym) argument
[all...]
H A Dcheck_info_leak.c26 static char *my_get_variable(struct expression *expr, struct symbol **sym) argument
30 name = expr_to_var_sym(expr, sym);
32 if (!name || !*sym)
35 return (*sym)->ident->name;
41 struct symbol *sym; local
43 name = my_get_variable(expr->left, &sym);
46 set_state(my_id, name, sym, &alloced);
53 struct symbol *sym; local
56 name = my_get_variable(dest, &sym);
57 if (!name || !sym)
68 struct symbol *sym; local
[all...]
H A Dsmatch_tracker.c22 struct tracker *alloc_tracker(int owner, const char *name, struct symbol *sym) argument
29 tmp->sym = sym;
34 struct symbol *sym)
38 if (in_tracker_list(*list, owner, name, sym))
40 tmp = alloc_tracker(owner, name, sym);
47 struct symbol *sym; local
49 name = expr_to_var_sym(expr, &sym);
50 if (!name || !sym)
52 add_tracker(list, owner, name, sym);
33 add_tracker(struct tracker_list **list, int owner, const char *name, struct symbol *sym) argument
63 del_tracker(struct tracker_list **list, int owner, const char *name, struct symbol *sym) argument
78 in_tracker_list(struct tracker_list *list, int owner, const char *name, struct symbol *sym) argument
[all...]
H A Dsymbol.c49 void access_symbol(struct symbol *sym) argument
51 if (sym->ctype.modifiers & MOD_INLINE) {
52 if (!sym->accessed) {
53 add_symbol(&translation_unit_used_list, sym);
54 sym->accessed = 1;
61 struct symbol *sym; local
63 for (sym = ident->symbols; sym; sym = sym
79 struct symbol *sym = __alloc_symbol(0); local
95 lay_out_union(struct symbol *sym, struct struct_union_info *info) argument
111 bitfield_base_size(struct symbol *sym) argument
123 lay_out_struct(struct symbol *sym, struct struct_union_info *info) argument
182 examine_struct_union_type(struct symbol *sym, int advance) argument
209 examine_base_type(struct symbol *sym) argument
228 examine_array_type(struct symbol *sym) argument
253 examine_bitfield_type(struct symbol *sym) argument
279 merge_type(struct symbol *sym, struct symbol *base_type) argument
359 get_symbol_initializer(struct symbol *sym) argument
385 examine_node_type(struct symbol *sym) argument
422 examine_enum_type(struct symbol *sym) argument
436 examine_pointer_type(struct symbol *sym) argument
455 examine_symbol_type(struct symbol * sym) argument
552 examine_pointer_target(struct symbol *sym) argument
592 check_declaration(struct symbol *sym) argument
622 bind_symbol(struct symbol *sym, struct ident *ident, enum namespace ns) argument
663 struct symbol *sym = lookup_symbol(ident, namespace); local
812 struct symbol *sym = ctype->ptr; local
[all...]
H A Dtest-dissect.c5 static inline char storage(struct symbol *sym) argument
7 int t = sym->type;
8 unsigned m = sym->ctype.modifiers;
11 return sym->pos.stream == dotc_stream ? 's' : 'g';
32 static void print_usage(struct position *pos, struct symbol *sym, unsigned mode) argument
42 pos->line, pos->pos, storage(sym), show_mode(mode));
45 static void r_symbol(unsigned mode, struct position *pos, struct symbol *sym) argument
47 print_usage(pos, sym, mode);
49 if (!sym->ident)
50 sym
57 r_member(unsigned mode, struct position *pos, struct symbol *sym, struct symbol *mem) argument
74 r_symdef(struct symbol *sym) argument
[all...]
H A Dobfuscate.c48 static void emit_symbol(struct symbol *sym) argument
51 ep = linearize_symbol(sym);
58 struct symbol *sym; local
60 FOR_EACH_PTR(list, sym) {
61 expand_symbol(sym);
62 emit_symbol(sym);
63 } END_FOR_EACH_PTR(sym);
H A Dgraph.c82 printf("%s store(%s)", s, show_ident(insn->src->sym->ident));
89 printf("%s load(%s)", s, show_ident(insn->src->sym->ident));
138 internal == !(insn->func->sym->ctype.modifiers & MOD_EXTERN)) {
141 struct symbol * sym; local
143 for (sym = insn->func->sym->ident->symbols;
144 sym; sym = sym->next_id) {
145 if (sym
169 struct symbol *sym; local
[all...]
H A Dcheck_puts_argument.c33 static void match_function_def(struct symbol *sym) argument
35 this_func = sym;
38 static int parent_is_arg(struct symbol *sym) argument
43 if (sym == arg)
52 struct symbol *sym; local
57 name = expr_to_var_sym(tmp, &sym);
59 if (parent_is_arg(sym) && sym->ident)
60 set_state(my_id, sym->ident->name, sym,
91 print_arg(struct symbol *sym) argument
105 match_end_func(struct symbol *sym) argument
[all...]
H A Dsmatch_ignore.c25 void add_ignore(int owner, const char *name, struct symbol *sym) argument
27 set_state_stree(&ignored, owner, name, sym, &ignore);
30 int is_ignored(int owner, const char *name, struct symbol *sym) argument
32 return !!get_state_stree(ignored, owner, name, sym);
37 struct symbol *sym; local
40 name = expr_to_str_sym(expr, &sym);
41 if (!name || !sym)
43 add_ignore(owner, name, sym);
49 struct symbol *sym; local
53 name = expr_to_str_sym(expr, &sym);
[all...]
H A Dsmatch_param_used.c28 static void get_state_hook(int owner, const char *name, struct symbol *sym) argument
38 arg = get_param_num_from_sym(sym);
41 if (param_was_set_var_sym(name, sym))
43 set_state_stree(&used_stree, my_id, name, sym, &used);
48 struct symbol *sym; local
55 name = get_variable_from_key(arg, key, &sym);
56 if (!name || !sym)
59 arg_nr = get_param_num_from_sym(sym);
62 if (param_was_set_var_sym(name, sym))
64 set_state_stree(&used_stree, my_id, name, sym,
94 match_function_def(struct symbol *sym) argument
[all...]
H A Dcheck_frees_argument.c33 static void match_function_def(struct symbol *sym) argument
35 this_func = sym;
38 static int is_arg(char *name, struct symbol *sym) argument
45 if (sym == arg && !strcmp(name, arg_name))
54 struct symbol *sym; local
59 name = expr_to_var_sym(tmp, &sym);
60 if (is_arg(name, sym)) {
61 set_state(my_id, name, sym, &freed);
81 tmp->sym);
85 tmp = get_sm_state(my_id, tracker->name, tracker->sym);
93 print_arg(struct symbol *sym) argument
107 match_end_func(struct symbol *sym) argument
115 match_after_func(struct symbol *sym) argument
[all...]
H A Dcheck_release_resource.c35 struct symbol *sym; local
40 name = expr_to_var_sym(arg_expr, &sym);
41 if (!name || !sym)
43 add_tracker(&resource_list, my_id, name, sym);
53 struct symbol *sym; local
61 name = expr_to_var_sym(arg_expr, &sym);
62 if (!name || !sym)
64 if (in_tracker_list(resource_list, my_id, name, sym))
71 static void match_end_func(struct symbol *sym) argument
H A Dsmatch_type.c26 struct symbol *get_real_base_type(struct symbol *sym) argument
30 if (!sym)
32 if (sym->type == SYM_BASETYPE)
33 return sym;
34 ret = get_base_type(sym);
145 struct symbol *sym; local
151 sym = get_type(expr->deref);
152 if (!sym) {
156 if (sym->type == SYM_PTR)
157 sym
229 struct symbol *sym; local
246 struct symbol *sym; local
393 struct symbol *sym; local
405 struct symbol *sym; local
415 returns_unsigned(struct symbol *sym) argument
431 returns_pointer(struct symbol *sym) argument
557 struct symbol *sym; local
573 struct symbol *sym; local
613 struct symbol *sym; local
687 struct symbol *sym; local
740 struct symbol *sym; member in struct:__anon12
776 base_type_str(struct symbol *sym) argument
[all...]
H A Dscope.c43 void bind_scope(struct symbol *sym, struct scope *scope) argument
45 sym->scope = scope;
46 add_symbol(&scope->symbols, sym);
49 void rebind_scope(struct symbol *sym, struct scope *new) argument
51 struct scope *old = sym->scope;
57 delete_ptr_list_entry((struct ptr_list**) &old->symbols, sym, 1);
59 bind_scope(sym, new);
96 static void remove_symbol_scope(struct symbol *sym) argument
98 struct symbol **ptr = &sym->ident->symbols;
100 while (*ptr != sym)
109 struct symbol *sym; local
[all...]
H A Dsmatch_function_info.c28 static void match_def(struct symbol *sym) argument
34 FOR_EACH_PTR(sym->ctype.base_type->arguments, arg) {
H A Dsmatch_var_sym.c22 struct var_sym *alloc_var_sym(const char *var, struct symbol *sym) argument
28 tmp->sym = sym;
37 struct symbol *sym; local
68 var = expr_to_var_sym(expr, &sym);
69 if (!var || !sym) {
73 add_var_sym(&ret, var, sym);
94 if (!b->sym && a->sym)
96 if (!a->sym
106 add_var_sym(struct var_sym_list **list, const char *var, struct symbol *sym) argument
130 struct symbol *sym; local
146 del_var_sym(struct var_sym_list **list, const char *var, struct symbol *sym) argument
159 in_var_sym_list(struct var_sym_list *list, const char *var, struct symbol *sym) argument
[all...]
/illumos-gate/usr/src/tools/ctf/common/
H A Dsymbol.c35 ignore_symbol(GElf_Sym *sym, const char *name) argument
37 uchar_t type = GELF_ST_TYPE(sym->st_info);
43 if (sym->st_shndx == SHN_UNDEF || sym->st_name == 0)
58 if (type == STT_OBJECT && sym->st_shndx == SHN_ABS &&
59 sym->st_value == 0)
H A Dsymbol.h38 int ignore_symbol(GElf_Sym *sym, const char *name);
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/
H A Dmisc.c59 GElf_Sym sym; local
62 if (mdb_lookup_by_obj(UMEM_OBJNAME, "umem_alloc", &sym) == 0)
64 else if (mdb_lookup_by_obj(MDB_OBJ_EXEC, "umem_alloc", &sym) == 0)
79 umem_lookup_by_name(const char *name, GElf_Sym *sym) argument
82 UMEM_OBJNAME), name, sym));
89 GElf_Sym sym; local
91 if (umem_lookup_by_name(name, &sym))
94 if (mdb_vread(buf, sym.st_size, (uintptr_t)sym.st_value)
95 == sym
102 is_umem_sym(const char *sym, const char *prefix) argument
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dlinker_set.h44 #define __GLOBL1(sym) __asm__(".globl " #sym)
45 #define __GLOBL(sym) __GLOBL1(sym)
49 #define __MAKE_SET(set, sym) \
53 __set_##set##_sym_##sym __section("set_" #set) \
54 __used = &(sym)
59 #define TEXT_SET(set, sym) __MAKE_SET(set, sym)
60 #define DATA_SET(set, sym) __MAKE_SE
[all...]
/illumos-gate/usr/src/boot/sys/sys/
H A Dlinker_set.h57 #define __MAKE_SET(set, sym) \
61 __set_##set##_sym_##sym __section("set_" #set) \
62 __used = &(sym)
67 #define __MAKE_SET(set, sym) extern void const * const (__set_##set##_sym_##sym)
73 #define TEXT_SET(set, sym) __MAKE_SET(set, sym)
74 #define DATA_SET(set, sym) __MAKE_SET(set, sym)
75 #define BSS_SET(set, sym) __MAKE_SE
[all...]
/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c56 GElf_Sym sym; local
58 if (gelf_getsym(symtab, i, &sym) == NULL)
61 if ((GELF_ST_TYPE(sym.st_info) != STT_FUNC &&
62 GELF_ST_TYPE(sym.st_info) != STT_OBJECT) ||
63 sym.st_shndx == SHN_UNDEF)
66 if (addr - sym.st_value < sym.st_size) {
69 sym.st_name)) == NULL)
70 elfdie("failed to get name for sym %d", i);
71 *offp = addr - sym
[all...]

Completed in 297 milliseconds

1234567891011>>