Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_debug.c800 add_function_hook("__smatch_about", &match_about, NULL); in check_debug()
802 add_function_hook("__smatch_state", &match_state, NULL); in check_debug()
803 add_function_hook("__smatch_states", &match_states, NULL); in check_debug()
810 add_function_hook("__smatch_capped", &match_capped, NULL); in check_debug()
823 add_function_hook("__smatch_note", &match_note, NULL); in check_debug()
834 add_function_hook("__smatch_type", &match_type, NULL); in check_debug()
838 add_function_hook("__smatch_bits", &match_bits, NULL); in check_debug()
839 add_function_hook("__smatch_mtag", &match_mtag, NULL); in check_debug()
841 add_function_hook("__smatch_expr", &match_expr, NULL); in check_debug()
843 add_function_hook("__smatch_mem", &match_mem, NULL); in check_debug()
[all …]
H A Dsmatch_param_cleared.c178 add_function_hook("memset", &match_memset, INT_PTR(0)); in register_param_cleared()
179 add_function_hook("memzero", &match_memset, INT_PTR(0)); in register_param_cleared()
180 add_function_hook("__memset", &match_memset, INT_PTR(0)); in register_param_cleared()
181 add_function_hook("__memzero", &match_memset, INT_PTR(0)); in register_param_cleared()
183 add_function_hook("memcpy", &match_memcpy, INT_PTR(0)); in register_param_cleared()
184 add_function_hook("memmove", &match_memcpy, INT_PTR(0)); in register_param_cleared()
185 add_function_hook("__memcpy", &match_memcpy, INT_PTR(0)); in register_param_cleared()
187 add_function_hook("strcpy", &match_memcpy, INT_PTR(0)); in register_param_cleared()
188 add_function_hook("strncpy", &match_memcpy, INT_PTR(0)); in register_param_cleared()
189 add_function_hook("sprintf", &match_memcpy, INT_PTR(0)); in register_param_cleared()
[all …]
H A Dcheck_atomic_inc_dec.c440 add_function_hook("atomic_inc_return", &match_atomic_inc, NULL); in check_atomic_inc_dec()
441 add_function_hook("atomic_add_return", &match_atomic_add, NULL); in check_atomic_inc_dec()
442 add_function_hook("atomic_sub_return", &match_atomic_sub, NULL); in check_atomic_inc_dec()
450 add_function_hook("atomic_dec", &match_atomic_dec, NULL); in check_atomic_inc_dec()
452 add_function_hook("atomic_long_inc", &match_atomic_inc, NULL); in check_atomic_inc_dec()
453 add_function_hook("atomic_long_dec", &match_atomic_dec, NULL); in check_atomic_inc_dec()
454 add_function_hook("atomic_inc", &match_atomic_inc, NULL); in check_atomic_inc_dec()
455 add_function_hook("atomic_sub", &match_atomic_sub, NULL); in check_atomic_inc_dec()
457 add_function_hook("refcount_inc", &refcount_inc, INT_PTR(0)); in check_atomic_inc_dec()
458 add_function_hook("refcount_dec", &refcount_dec, INT_PTR(0)); in check_atomic_inc_dec()
[all …]
H A Dcheck_test_bit.c48 add_function_hook("test_bit", &match_test_bit, NULL); in check_test_bit()
49 add_function_hook("variable_test_bit", &match_test_bit, NULL); in check_test_bit()
50 add_function_hook("set_bit", &match_test_bit, NULL); in check_test_bit()
51 add_function_hook("clear_bit", &match_test_bit, NULL); in check_test_bit()
52 add_function_hook("test_and_clear_bit", &match_test_bit, NULL); in check_test_bit()
53 add_function_hook("test_and_set_bit", &match_test_bit, NULL); in check_test_bit()
H A Dcheck_resource_size.c83 add_function_hook("ioremap_nocache", &match_resource, (void *)1); in check_resource_size()
84 add_function_hook("ioremap", &match_resource, (void *)1); in check_resource_size()
85 add_function_hook("__request_region", &match_resource, (void *)2); in check_resource_size()
86 add_function_hook("__release_region", &match_resource, (void *)2); in check_resource_size()
87 add_function_hook("__devm_request_region", &match_resource, (void *)3); in check_resource_size()
88 add_function_hook("__devm_release_region", &match_resource, (void *)3); in check_resource_size()
H A Dcheck_unwind.c171 add_function_hook(func, &match_unwind_function, NULL); in register_unwind_functions()
181 add_function_hook(name, &print_unwind_functions, INT_PTR(0)); in release_function_indicator()
194 add_function_hook("release_resource", &match_release, INT_PTR(0)); in check_unwind()
199 add_function_hook("__release_region", &match_release, INT_PTR(1)); in check_unwind()
204 add_function_hook("iounmap", &match_release, INT_PTR(0)); in check_unwind()
208 add_function_hook("pci_iounmap", &match_release, INT_PTR(1)); in check_unwind()
214 add_function_hook("destroy_workqueue", &match_release, INT_PTR(0)); in check_unwind()
218 add_function_hook("free_irq", &match_release, INT_PTR(0)); in check_unwind()
223 add_function_hook("unregister_netdev", &match_release, INT_PTR(0)); in check_unwind()
228 add_function_hook("misc_deregister", &match_release, INT_PTR(0)); in check_unwind()
H A Dcheck_frees_param_strict.c150 add_function_hook("kfree", &match_free, INT_PTR(0)); in check_frees_param_strict()
151 add_function_hook("kmem_cache_free", &match_free, INT_PTR(1)); in check_frees_param_strict()
152 add_function_hook("kfree_skb", &match_free, INT_PTR(0)); in check_frees_param_strict()
153 add_function_hook("kfree_skbmem", &match_free, INT_PTR(0)); in check_frees_param_strict()
154 add_function_hook("dma_pool_free", &match_free, INT_PTR(1)); in check_frees_param_strict()
155 add_function_hook("spi_unregister_controller", &match_free, INT_PTR(0)); in check_frees_param_strict()
H A Dcheck_info_leak.c89 add_function_hook("strcpy", &match_strcpy, NULL); in check_info_leak()
90 add_function_hook("strlcpy", &match_strcpy, NULL); in check_info_leak()
91 add_function_hook("strlcat", &match_strcpy, NULL); in check_info_leak()
92 add_function_hook("strncpy", &match_strcpy, NULL); in check_info_leak()
93 add_function_hook("copy_to_user", &match_copy_to_user, NULL); in check_info_leak()
H A Dcheck_proc_create.c56 add_function_hook("proc_create", &match_create, INT_PTR(0)); in check_proc_create()
57 add_function_hook("create_proc_entry", &match_create, INT_PTR(0)); in check_proc_create()
58 add_function_hook("proc_create_data", &match_create, INT_PTR(0)); in check_proc_create()
59 add_function_hook("proc_net_fops_create", match_create, INT_PTR(1)); in check_proc_create()
H A Dcheck_rosenberg.c361 add_function_hook(func, &match_clear, INT_PTR(arg)); in register_clears_argument()
387 add_function_hook(func, &match_copy_to_user, INT_PTR(arg)); in register_copy_funcs_from_file()
399 add_function_hook("memset", &match_clear, INT_PTR(0)); in check_rosenberg()
400 add_function_hook("memcpy", &match_clear, INT_PTR(0)); in check_rosenberg()
401 add_function_hook("memzero", &match_clear, INT_PTR(0)); in check_rosenberg()
402 add_function_hook("__memset", &match_clear, INT_PTR(0)); in check_rosenberg()
403 add_function_hook("__memcpy", &match_clear, INT_PTR(0)); in check_rosenberg()
404 add_function_hook("__memzero", &match_clear, INT_PTR(0)); in check_rosenberg()
405 add_function_hook("__builtin_memset", &match_clear, INT_PTR(0)); in check_rosenberg()
406 add_function_hook("__builtin_memcpy", &match_clear, INT_PTR(0)); in check_rosenberg()
H A Dcheck_release_resource.c85 add_function_hook("request_resource", &match_request, (void *)1); in check_release_resource()
86 add_function_hook("release_resource", &match_release, (void *)0); in check_release_resource()
87 add_function_hook("request_mem_resource", &match_request, (void *)0); in check_release_resource()
88 add_function_hook("release_mem_resource", &match_release, (void *)0); in check_release_resource()
H A Dcheck_memcpy_overflow.c323 add_function_hook(func, &match_limited, limiter); in register_funcs_from_file()
362 add_function_hook("memcmp", &match_limited, &b0_l2); in check_memcpy_overflow()
363 add_function_hook("memcmp", &match_limited, &b1_l2); in check_memcpy_overflow()
365 add_function_hook("copy_to_user", &match_limited, &b1_l2); in check_memcpy_overflow()
366 add_function_hook("_copy_to_user", &match_limited, &b1_l2); in check_memcpy_overflow()
367 add_function_hook("__copy_to_user", &match_limited, &b1_l2); in check_memcpy_overflow()
368 add_function_hook("copy_from_user", &match_limited, &b0_l2); in check_memcpy_overflow()
369 add_function_hook("_copy_from_user", &match_limited, &b0_l2); in check_memcpy_overflow()
370 add_function_hook("__copy_from_user", &match_limited, &b0_l2); in check_memcpy_overflow()
H A Dsmatch_array_values.c217 add_function_hook("sprintf", &mark_strings_unknown, INT_PTR(0)); in register_array_values()
218 add_function_hook("snprintf", &mark_strings_unknown, INT_PTR(0)); in register_array_values()
220 add_function_hook("strcpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values()
221 add_function_hook("strncpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values()
222 add_function_hook("strlcpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values()
223 add_function_hook("strscpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values()
H A Dcheck_err_ptr_deref.c228 add_function_hook("ERR_PTR", &match_err_ptr_positive_const, NULL); in check_err_ptr_deref()
229 add_function_hook("ERR_PTR", &match_err_ptr, NULL); in check_err_ptr_deref()
232 add_function_hook("kfree", &match_kfree, INT_PTR(0)); in check_err_ptr_deref()
233 add_function_hook("brelse", &match_kfree, INT_PTR(0)); in check_err_ptr_deref()
234 add_function_hook("kmem_cache_free", &match_kfree, INT_PTR(1)); in check_err_ptr_deref()
235 add_function_hook("vfree", &match_kfree, INT_PTR(0)); in check_err_ptr_deref()
H A Dcheck_freeing_devm.c63 add_function_hook(func, &match_free_func, INT_PTR(arg)); in register_funcs_from_file()
82 add_function_hook("kfree", &match_free_func, INT_PTR(0)); in check_freeing_devm()
83 add_function_hook("krealloc", &match_free_func, INT_PTR(0)); in check_freeing_devm()
H A Dcheck_kunmap.c84 add_function_hook("kunmap", &match_kunmap, NULL); in check_kunmap()
85 add_function_hook("kmap_atomic", &match_kmap_atomic, NULL); in check_kunmap()
86 add_function_hook("kunmap_atomic", &match_kunmap_atomic, NULL); in check_kunmap()
H A Dsmatch_struct_assignment.c531 add_function_hook(function, &match_memcpy_unknown, INT_PTR(param)); in register_clears_param()
566 add_function_hook("memset", &match_memset, NULL); in register_struct_assignment()
567 add_function_hook("__memset", &match_memset, NULL); in register_struct_assignment()
569 add_function_hook("memcpy", &match_memcpy, INT_PTR(0)); in register_struct_assignment()
570 add_function_hook("memmove", &match_memcpy, INT_PTR(0)); in register_struct_assignment()
571 add_function_hook("__memcpy", &match_memcpy, INT_PTR(0)); in register_struct_assignment()
572 add_function_hook("__memmove", &match_memcpy, INT_PTR(0)); in register_struct_assignment()
577 add_function_hook("sscanf", &match_sscanf, NULL); in register_struct_assignment()
H A Dcheck_freeing_null.c44 add_function_hook("kfree", &match_free, NULL); in check_freeing_null()
46 add_function_hook("free", &match_free, NULL); in check_freeing_null()
H A Dcheck_gfp_dma.c49 add_function_hook("kmalloc", &match_alloc, INT_PTR(1)); in check_gfp_dma()
50 add_function_hook("kzalloc", &match_alloc, INT_PTR(1)); in check_gfp_dma()
H A Dcheck_memset.c58 add_function_hook("memset", &match_memset, NULL); in check_memset()
59 add_function_hook("__builtin_memset", &match_memset, NULL); in check_memset()
H A Dsmatch_strings.c149 add_function_hook("strcpy", &match_strcpy, NULL); in register_strings()
150 add_function_hook("strlcpy", &match_strcpy, NULL); in register_strings()
151 add_function_hook("strncpy", &match_strcpy, NULL); in register_strings()
H A Dcheck_input_free_device.c67 add_function_hook("input_unregister_device", &match_input_unregister, NULL); in check_input_free_device()
68 add_function_hook("input_free_device", &match_input_free, NULL); in check_input_free_device()
H A Dcheck_zero_to_err_ptr.c169 add_function_hook("ERR_PTR", &match_err_ptr, NULL); in check_zero_to_err_ptr()
170 add_function_hook("ERR_CAST", &match_err_ptr, NULL); in check_zero_to_err_ptr()
171 add_function_hook("PTR_ERR", &match_err_ptr, NULL); in check_zero_to_err_ptr()
H A Dsmatch_strlen.c349 add_function_hook("snprintf", &match_snprintf, NULL); in register_strlen()
351 add_function_hook("strlcpy", &match_strlcpycat, NULL); in register_strlen()
352 add_function_hook("strlcat", &match_strlcpycat, NULL); in register_strlen()
353 add_function_hook("strcpy", &match_strcpy, NULL); in register_strlen()
H A Dcheck_dev_queue_xmit.c95 add_function_hook("kfree_skb", &match_kfree_skb, NULL); in match_xmit()
119 add_function_hook(func, &match_xmit, INT_PTR(arg)); in register_funcs_from_file()

123