Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_unwind.c181 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()
203 return_implies_state("ioremap", 0, 0, &request_denied, 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()
212 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()
[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_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_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.c292 match_clear(NULL, expr, INT_PTR(param)); in db_param_cleared()
361 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()
[all …]
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_atomic_inc_dec.c457 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()
459 add_function_hook("refcount_add", &refcount_inc, INT_PTR(1)); in check_atomic_inc_dec()
461 return_implies_state("refcount_add_not_zero", 1, 1, &match_implies_inc, INT_PTR(1)); in check_atomic_inc_dec()
462 return_implies_state("refcount_inc_not_zero", 1, 1, &match_implies_inc, INT_PTR(0)); in check_atomic_inc_dec()
464 return_implies_state("atomic_dec_if_positive", 0, INT_MAX, &match_implies_atomic_dec, INT_PTR(0)); in check_atomic_inc_dec()
466 add_function_hook("refcount_sub_and_test", &refcount_dec, INT_PTR(1)); in check_atomic_inc_dec()
467 add_function_hook("refcount_dec_and_test", &refcount_dec, INT_PTR(0)); in check_atomic_inc_dec()
469 add_function_hook("pm_runtime_get_sync", &pm_runtime_get_sync, INT_PTR(0)); in check_atomic_inc_dec()
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_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 Dsmatch_project.c147 insert_func(skipped_funcs, func, INT_PTR(1)); in register_skipped_functions()
176 insert_func(silenced_funcs, func, INT_PTR(1)); in register_silenced_functions()
205 insert_func(no_inline_funcs, func, INT_PTR(1)); in register_no_inline_functions()
H A Dcheck_err_ptr_deref.c232 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_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_kmalloc_wrong_size.c89 add_function_assign_hook("calloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size()
94 add_function_assign_hook("kcalloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size()
H A Dsmatch_common_functions.c93 add_implied_return_hook("sprintf", &match_sprintf, INT_PTR(1)); in register_common_functions()
94 add_implied_return_hook("snprintf", &match_sprintf, INT_PTR(2)); in register_common_functions()
H A Dcheck_capable.c109 add_function_hook("capable", &match_capable, INT_PTR(0)); in check_capable()
122 add_function_hook("ns_capable", &match_ns_capable, INT_PTR(0)); in check_ns_capable()
H A Dsmatch_struct_assignment.c531 add_function_hook(function, &match_memcpy_unknown, INT_PTR(param)); in register_clears_param()
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()
H A Dcheck_bit_shift.c165 add_function_hook("set_bit", &match_call, INT_PTR(0)); in check_bit_shift()
166 add_function_hook("test_bit", &match_call, INT_PTR(0)); in check_bit_shift()
H A Dsmatch_annotate.c45 add_implied_return_hook("snprintf", &param_caps_return, INT_PTR(1)); in register_annotate()
H A Dcheck_stack.c59 add_scope_hook(&scope_end, INT_PTR(type_bytes(base))); in match_declarations()
H A Dcheck_dma_on_stack.c72 add_function_hook(func, &match_dma_func, INT_PTR(arg)); in register_funcs_from_file()
H A Dcheck_frees_param.c99 add_function_hook("free", &match_free, INT_PTR(0)); in check_frees_param()
H A Dcheck_wrong_size_arg.c82 add_function_hook(func, &match_parameter, INT_PTR(size)); in register_funcs_from_file()
H A Dcheck_free_strict.c350 add_function_hook("kfree", &match_free, INT_PTR(0)); in check_free_strict()
351 add_function_hook("kmem_cache_free", &match_free, INT_PTR(1)); in check_free_strict()
H A Dcheck_dev_queue_xmit.c119 add_function_hook(func, &match_xmit, INT_PTR(arg)); in register_funcs_from_file()
/illumos-gate/usr/src/tools/smatch/src/smatch_data/
H A Dsmatch.common_functions9 INT_PTR

12