Searched refs:sym_name_is (Results 1 – 15 of 15) sorted by relevance
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_type_val.c | 314 if (sym_name_is("kmalloc", expr->fn)) in is_ignored_function() 316 if (sym_name_is("vmalloc", expr->fn)) in is_ignored_function() 318 if (sym_name_is("kvmalloc", expr->fn)) in is_ignored_function() 320 if (sym_name_is("kmalloc_array", expr->fn)) in is_ignored_function() 322 if (sym_name_is("vmalloc_array", expr->fn)) in is_ignored_function() 324 if (sym_name_is("kvmalloc_array", expr->fn)) in is_ignored_function() 327 if (sym_name_is("mmu_memory_cache_alloc", expr->fn)) in is_ignored_function() 329 if (sym_name_is("kmem_alloc", expr->fn)) in is_ignored_function() 331 if (sym_name_is("alloc_pages", expr->fn)) in is_ignored_function() 334 if (sym_name_is("netdev_priv", expr->fn)) in is_ignored_function() [all …]
|
H A D | smatch_strlen.c | 113 if (left->type == EXPR_CALL && sym_name_is("strlen", left->fn)) { in match_strlen_condition() 117 if (right->type == EXPR_CALL && sym_name_is("strlen", right->fn)) { in match_strlen_condition()
|
H A D | check_dev_queue_xmit.c | 51 if (tmp->type == EXPR_CALL && sym_name_is("kfree_skb", tmp->fn)) in valid_use()
|
H A D | smatch_helper.c | 621 int sym_name_is(const char *name, struct expression *expr) in sym_name_is() function 794 if (sym_name_is("__builtin_expect", expr->fn) || in strip_expr_helper() 795 sym_name_is("__builtin_bswap16", expr->fn) || in strip_expr_helper() 796 sym_name_is("__builtin_bswap32", expr->fn) || in strip_expr_helper() 797 sym_name_is("__builtin_bswap64", expr->fn)) { in strip_expr_helper()
|
H A D | smatch_math.c | 1221 if (sym_name_is("__builtin_constant_p", expr->fn)) in handle_call_rl() 1224 if (sym_name_is("__builtin_choose_expr", expr->fn)) in handle_call_rl() 1227 if (sym_name_is("__builtin_expect", expr->fn) || in handle_call_rl() 1228 sym_name_is("__builtin_bswap16", expr->fn) || in handle_call_rl() 1229 sym_name_is("__builtin_bswap32", expr->fn) || in handle_call_rl() 1230 sym_name_is("__builtin_bswap64", expr->fn)) { in handle_call_rl() 1237 if (sym_name_is("strlen", expr->fn)) in handle_call_rl()
|
H A D | smatch_fresh_alloc.c | 124 if (sym_name_is(kernel_allocation_funcs[i].fn, expr->fn)) in is_fresh_alloc()
|
H A D | smatch_flow.c | 304 if (sym_name_is("__builtin_add_overflow", expr->fn)) in handle_builtin_overflow_func() 306 else if (sym_name_is("__builtin_sub_overflow", expr->fn)) in handle_builtin_overflow_func() 308 else if (sym_name_is("__builtin_mul_overflow", expr->fn)) in handle_builtin_overflow_func() 326 if (!sym_name_is("__builtin_choose_expr", expr->fn)) in handle__builtin_choose_expr() 350 if (!sym_name_is("__builtin_choose_expr", right->fn)) in handle__builtin_choose_expr_assigns() 529 if (sym_name_is("__builtin_constant_p", expr->fn)) in __split_expr()
|
H A D | smatch_nul_terminator.c | 295 if (!sym_name_is("strnlen", left->fn)) in match_strnlen_test()
|
H A D | smatch_function_ptrs.c | 44 if (!sym_name_is("__symbol_get", expr->fn)) in get_from__symbol_get()
|
H A D | check_atomic_inc_dec.c | 185 if (sym_name_is(primitive_funcs[i], expr->fn)) in is_inc_dec_primitive()
|
H A D | smatch_conditions.c | 117 if (sym_name_is("__builtin_expect", expr->fn)) { in ignore_builtin_expect()
|
H A D | smatch_type.c | 185 if (sym_name_is("__builtin_choose_expr", expr->fn)) in get_return_type()
|
H A D | smatch_kernel_user_data.c | 418 if (sym_name_is(returns_pointer_to_user_data[i], expr)) in is_points_to_user_data_fn()
|
H A D | smatch.h | 405 int sym_name_is(const char *name, struct expression *expr);
|
H A D | smatch_extra.c | 1177 if (right->type == EXPR_CALL && sym_name_is("__builtin_expect", right->fn)) in match_assign()
|