Home
last modified time | relevance | path

Searched refs:sym_name_is (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_type_val.c314 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 Dsmatch_strlen.c113 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 Dcheck_dev_queue_xmit.c51 if (tmp->type == EXPR_CALL && sym_name_is("kfree_skb", tmp->fn)) in valid_use()
H A Dsmatch_helper.c621 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 Dsmatch_math.c1221 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 Dsmatch_fresh_alloc.c124 if (sym_name_is(kernel_allocation_funcs[i].fn, expr->fn)) in is_fresh_alloc()
H A Dsmatch_flow.c304 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 Dsmatch_nul_terminator.c295 if (!sym_name_is("strnlen", left->fn)) in match_strnlen_test()
H A Dsmatch_function_ptrs.c44 if (!sym_name_is("__symbol_get", expr->fn)) in get_from__symbol_get()
H A Dcheck_atomic_inc_dec.c185 if (sym_name_is(primitive_funcs[i], expr->fn)) in is_inc_dec_primitive()
H A Dsmatch_conditions.c117 if (sym_name_is("__builtin_expect", expr->fn)) { in ignore_builtin_expect()
H A Dsmatch_type.c185 if (sym_name_is("__builtin_choose_expr", expr->fn)) in get_return_type()
H A Dsmatch_kernel_user_data.c418 if (sym_name_is(returns_pointer_to_user_data[i], expr)) in is_points_to_user_data_fn()
H A Dsmatch.h405 int sym_name_is(const char *name, struct expression *expr);
H A Dsmatch_extra.c1177 if (right->type == EXPR_CALL && sym_name_is("__builtin_expect", right->fn)) in match_assign()