Home
last modified time | relevance | path

Searched refs:deref (Results 1 – 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/
H A Dparser.py56 def _deref_to_tuple(self, deref): argument
58 struct, member = deref.split('->')
68 lambda deref: self._deref_to_tuple(deref),
84 for deref in derefs:
85 if deref in GLOBAL_BLACKLIST: # ignore spammy structs
87 d[syscall].add(deref)
103 for deref in intersection:
104 self.deref_counter[deref] += 1
145 for deref, count in sorted(self.deref_counter.iteritems(), key=lambda (k,v): (v,k)):
146 print "%s: %d" % (deref, count)
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_helper.c187 struct expression *deref; in __get_variable_from_expr() local
190 deref = expr->deref; in __get_variable_from_expr()
191 op = deref->op; in __get_variable_from_expr()
192 if (deref->type == EXPR_PREOP && op == '*') { in __get_variable_from_expr()
193 struct expression *unop = strip_expr(deref->unop); in __get_variable_from_expr()
196 deref = unop->unop; in __get_variable_from_expr()
199 if (!is_pointer(deref) && !is_pointer(deref->unop)) in __get_variable_from_expr()
201 deref = deref->unop; in __get_variable_from_expr()
205 __get_variable_from_expr(sym_ptr, buf, deref, len, complicated); in __get_variable_from_expr()
526 return get_complication_score(expr->deref); in get_complication_score()
[all …]
H A Dcheck_memcpy_overflow.c51 struct expression *deref; in bytes_to_end_of_struct() local
65 deref = expr->deref; in bytes_to_end_of_struct()
66 if (deref->type == EXPR_PREOP && deref->op == '*') in bytes_to_end_of_struct()
67 deref = deref->unop; in bytes_to_end_of_struct()
68 struct_bytes = get_array_size_bytes_max(deref); in bytes_to_end_of_struct()
70 type = get_type(expr->deref); in bytes_to_end_of_struct()
H A Dexpression.c508 struct expression *deref = alloc_expression(token->pos, EXPR_PREOP); in postfix_expression() local
511 deref->op = '*'; in postfix_expression()
512 deref->unop = add; in postfix_expression()
518 expr = deref; in postfix_expression()
539 struct expression *deref = alloc_expression(token->pos, EXPR_DEREF); in postfix_expression() local
540 deref->op = '.'; in postfix_expression()
541 deref->deref = expr; in postfix_expression()
547 deref->member = token->ident; in postfix_expression()
548 deref->member_offset = -1; in postfix_expression()
550 expr = deref; in postfix_expression()
H A Dsmatch_expressions.c64 struct expression *member_expression(struct expression *deref, int op, struct ident *member) in member_expression() argument
68 expr = alloc_tmp_expression(deref->pos, EXPR_DEREF); in member_expression()
70 expr->deref = deref; in member_expression()
H A Dsmatch_flow.c479 expr_set_parent_expr(expr->deref, expr); in __split_expr()
482 __split_expr(expr->deref); in __split_expr()
1377 struct expression *deref, *assign, *tmp, *right; in fake_member_assigns_helper() local
1401 deref = NULL; in fake_member_assigns_helper()
1407 if (deref) in fake_member_assigns_helper()
1408 deref = member_expression(deref, '.', member); in fake_member_assigns_helper()
1410 deref = member_expression(symbol, '.', member); in fake_member_assigns_helper()
1414 deref = member_expression(symbol, '.', member); in fake_member_assigns_helper()
1419 type = get_type(deref); in fake_member_assigns_helper()
1421 fake_element_assigns_helper(deref, right->expr_list, fake_cb); in fake_member_assigns_helper()
[all …]
H A Dcheck_implicit_dependencies.c156 sym = get_type(expr->deref); in print_read_member_type()
191 sym = get_type(expr->deref); in print_write_member_type()
H A Dinline.c150 struct expression *deref = copy_expression(expr->deref); in copy_expression() local
152 expr->deref = deref; in copy_expression()
H A Dsmatch_container_of.c109 expr = expr->deref; in get_deref_count()
124 expr = expr->deref; in get_partial_deref()
146 expr = expr->deref; in partial_deref_to_offset_str()
H A Devaluate.c2064 struct expression *deref = expr->deref, *add; in evaluate_member_dereference() local
2069 if (!evaluate_expression(deref)) in evaluate_member_dereference()
2076 ctype = deref->ctype; in evaluate_member_dereference()
2082 combine_address_space(deref->pos, &address_space, ctype->ctype.as); in evaluate_member_dereference()
2116 if (!lvalue_expression(deref)) { in evaluate_member_dereference()
2117 if (deref->type != EXPR_SLICE) { in evaluate_member_dereference()
2118 expr->base = deref; in evaluate_member_dereference()
2121 expr->base = deref->base; in evaluate_member_dereference()
2122 expr->r_bitpos = deref->r_bitpos; in evaluate_member_dereference()
2132 deref = deref->unop; in evaluate_member_dereference()
[all …]
H A Dcheck_kernel.c340 expr = expr->deref; in get_val_expr()
399 dest = dest->deref; in match__read_once_size()
H A Dsmatch_recurse.c65 ret = recurse(expr->deref, func, param, nr); in recurse()
H A Dexpression.h190 struct expression *deref; member
H A Dsmatch_var_sym.c65 return expr_to_vsl(expr->deref); in expr_to_vsl()
H A Dsmatch_mtag_data.c99 type = get_type(expr->deref); in is_head_next()
H A Dsmatch_address.c137 type = get_type(expr->deref); in get_member_offset_from_deref()
H A Dsmatch_mtag.c367 expr = strip_expr(expr->deref); in expr_to_mtag_offset()
H A Dsmatch_extra.c104 struct expression *deref, *member_expr; in set_union_info() local
123 deref = strip_expr(expr->deref); in set_union_info()
124 type = get_type(deref); in set_union_info()
153 member_expr = deref; in set_union_info()
372 expr = strip_expr(expr->deref); in chunk_get_array_base()
H A Dsmatch_extra.h212 struct expression *member_expression(struct expression *deref, int op, struct ident *member);
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dtype1.c11 static inline int deref(const char *s) in deref() function
22 return deref(arg->array); in test()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldapdelete.c71 int rc, deref, optind; in main() local
104 deref = LDAP_DEREF_NEVER; /* prudent, but probably unnecessary */ in main()
105 ldap_set_option( ld, LDAP_OPT_DEREF, &deref ); in main()
H A Dldapmodrdn.c40 int rc, havedn, deref, optind; in main() local
115 deref = LDAP_DEREF_NEVER; /* this seems prudent */ in main()
116 ldap_set_option( ld, LDAP_OPT_DEREF, &deref ); in main()
H A Dldapsearch.c138 static int includeufn, allow_binary, vals2tmp, ldif, scope, deref; variable
168 deref = LDAP_DEREF_NEVER; in main()
270 ldap_set_option( ld, LDAP_OPT_DEREF, &deref ); in main()
421 deref = LDAP_DEREF_NEVER; in options_callback()
423 deref = LDAP_DEREF_SEARCHING; in options_callback()
425 deref = LDAP_DEREF_FINDING; in options_callback()
427 deref = LDAP_DEREF_ALWAYS; in options_callback()
H A Dldapmodify.c242 int rc, use_ldif, deref; in process() local
252 deref = LDAP_DEREF_NEVER; /* this seems prudent */ in process()
253 ldap_set_option( ld, LDAP_OPT_DEREF, &deref ); in process()
/illumos-gate/usr/src/lib/libadutils/common/
H A Dldap_ping.c132 int scope = LDAP_SCOPE_BASE, deref = LDAP_DEREF_NEVER, in cldap_build_request() local
180 LDAP_REQ_SEARCH, basedn, scope, deref, in cldap_build_request()

12