Home
last modified time | relevance | path

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

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_return_efault.c123 add_function_assign_hook("copy_to_user", &match_copy, NULL); in check_return_efault()
124 add_function_assign_hook("__copy_to_user", &match_copy, NULL); in check_return_efault()
125 add_function_assign_hook("copy_from_user", &match_copy, NULL); in check_return_efault()
126 add_function_assign_hook("__copy_from_user", &match_copy, NULL); in check_return_efault()
127 add_function_assign_hook("clear_user", &match_copy, NULL); in check_return_efault()
H A Dcheck_freeing_devm.c76 add_function_assign_hook("devm_kmalloc", &match_assign, NULL); in check_freeing_devm()
77 add_function_assign_hook("devm_kzalloc", &match_assign, NULL); in check_freeing_devm()
78 add_function_assign_hook("devm_kcalloc", &match_assign, NULL); in check_freeing_devm()
79 add_function_assign_hook("devm_kmalloc_array", &match_assign, NULL); in check_freeing_devm()
H A Dcheck_kmalloc_wrong_size.c88 add_function_assign_hook("malloc", &match_alloc, NULL); in check_kmalloc_wrong_size()
89 add_function_assign_hook("calloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size()
93 add_function_assign_hook("kmalloc", &match_alloc, NULL); in check_kmalloc_wrong_size()
94 add_function_assign_hook("kcalloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size()
H A Dcheck_wait_for_common.c39 add_function_assign_hook("wait_for_common", &match_wait_for_common, NULL); in check_wait_for_common()
40add_function_assign_hook("wait_for_completion_interruptible_timeout", &match_wait_for_common, NULL… in check_wait_for_common()
H A Dcheck_struct_type.c61 add_function_assign_hook("kmalloc", &match_assign, INT_PTR(0)); in check_struct_type()
62 add_function_assign_hook("kzalloc", &match_assign, INT_PTR(0)); in check_struct_type()
H A Dcheck_dma_mapping_error.c79 add_function_assign_hook("dma_mapping_error", &match_assign, NULL); in check_dma_mapping_error()
80 add_function_assign_hook("pci_dma_mapping_error", &match_assign, NULL); in check_dma_mapping_error()
H A Dcheck_container_of.c66 add_function_assign_hook("nla_data", &match_non_null, NULL); in check_container_of()
H A Dcheck_wine_filehandles.c91 add_function_assign_hook(filehandle_funcs[i], in check_wine_filehandles()
H A Dcheck_allocation_funcs.c103 add_function_assign_hook(allocation_funcs[i], in check_allocation_funcs()
H A Dcheck_snprintf.c84 add_function_assign_hook("snprintf", &match_snprintf, NULL); in check_snprintf()
H A Dcheck_info_leak.c88 add_function_assign_hook("kmalloc", &match_kmalloc, NULL); in check_info_leak()
H A Dsmatch_fresh_alloc.c211 add_function_assign_hook(alloc_funcs[i].fn, &match_alloc, 0); in register_fresh_alloc()
H A Dcheck_leaks.c261 add_function_assign_hook(allocation_funcs[i], &match_alloc, NULL); in check_leaks()
H A Dcheck_deref.c275 add_function_assign_hook(func, &match_assign_returns_null, INT_PTR(arg)); in register_allocation_funcs()
H A Dcheck_err_ptr_deref.c167 add_function_assign_hook(func, &match_returns_err_ptr, NULL); in register_err_ptr_funcs()
H A Dsmatch_strlen.c360 add_function_assign_hook("strlen", &match_strlen, NULL); in register_strlen_equiv()
H A Dcheck_rosenberg.c431 add_function_assign_hook("skb_put", &match_skb_put, NULL); in check_rosenberg3()
H A Dsmatch_constraints_required.c254 add_function_assign_hook(func, call_back, INT_PTR(param)); in add_allocation_function()
H A Dsmatch_parse_call_math.c641 add_function_assign_hook(alloc_functions[i].func, &match_alloc, in register_parse_call_math()
H A Dsmatch_buf_comparison.c473 add_function_assign_hook(func, call_back, INT_PTR(param)); in add_allocation_function()
H A Dsmatch_buf_size.c60 add_function_assign_hook(func, call_back, INT_PTR(param)); in add_allocation_function()
H A Dsmatch_function_hooks.c95 void add_function_assign_hook(const char *look_for, func_hook *call_back, in add_function_assign_hook() function
H A Dsmatch_kernel_user_data.c1510 add_function_assign_hook(returns_user_data[i], &match_user_assign_function, NULL); in register_kernel_user_data()
H A Dcheck_locking.c1087 add_function_assign_hook(lock->function, &match_returns_locked, idx); in register_lock()
H A Dsmatch.h181 void add_function_assign_hook(const char *look_for, func_hook *call_back,