Home
last modified time | relevance | path

Searched refs:match_alloc (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_constraints_required.c471 add_allocation_function("malloc", &match_alloc, 0); in register_constraints_required()
472 add_allocation_function("memdup", &match_alloc, 1); in register_constraints_required()
473 add_allocation_function("realloc", &match_alloc, 1); in register_constraints_required()
476 add_allocation_function("kmalloc", &match_alloc, 0); in register_constraints_required()
477 add_allocation_function("kzalloc", &match_alloc, 0); in register_constraints_required()
478 add_allocation_function("vmalloc", &match_alloc, 0); in register_constraints_required()
479 add_allocation_function("__vmalloc", &match_alloc, 0); in register_constraints_required()
480 add_allocation_function("vzalloc", &match_alloc, 0); in register_constraints_required()
481 add_allocation_function("sock_kmalloc", &match_alloc, 1); in register_constraints_required()
482 add_allocation_function("kmemdup", &match_alloc, 1); in register_constraints_required()
[all …]
H A Dsmatch_buf_size.c927 add_allocation_function("malloc", &match_alloc, 0); in register_buf_size()
929 add_allocation_function("memdup", &match_alloc, 1); in register_buf_size()
930 add_allocation_function("realloc", &match_alloc, 1); in register_buf_size()
932 add_allocation_function("kmalloc", &match_alloc, 0); in register_buf_size()
934 add_allocation_function("kzalloc", &match_alloc, 0); in register_buf_size()
936 add_allocation_function("vmalloc", &match_alloc, 0); in register_buf_size()
937 add_allocation_function("vzalloc", &match_alloc, 0); in register_buf_size()
938 add_allocation_function("__vmalloc", &match_alloc, 0); in register_buf_size()
939 add_allocation_function("kvmalloc", &match_alloc, 0); in register_buf_size()
944 add_allocation_function("kmemdup", &match_alloc, 1); in register_buf_size()
[all …]
H A Dsmatch_buf_comparison.c806 add_allocation_function("malloc", &match_alloc, 0); in register_buf_comparison()
807 add_allocation_function("memdup", &match_alloc, 1); in register_buf_comparison()
808 add_allocation_function("realloc", &match_alloc, 1); in register_buf_comparison()
810 add_allocation_function("kmalloc", &match_alloc, 0); in register_buf_comparison()
811 add_allocation_function("kzalloc", &match_alloc, 0); in register_buf_comparison()
812 add_allocation_function("vmalloc", &match_alloc, 0); in register_buf_comparison()
813 add_allocation_function("__vmalloc", &match_alloc, 0); in register_buf_comparison()
814 add_allocation_function("sock_kmalloc", &match_alloc, 1); in register_buf_comparison()
815 add_allocation_function("kmemdup", &match_alloc, 1); in register_buf_comparison()
816 add_allocation_function("kmemdup_user", &match_alloc, 1); in register_buf_comparison()
[all …]
H A Dcheck_gfp_dma.c29 static void match_alloc(const char *fn, struct expression *expr, void *_arg) in match_alloc() function
49 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_kmalloc_wrong_size.c48 static void match_alloc(const char *fn, struct expression *expr, void *unused) in match_alloc() function
88 add_function_assign_hook("malloc", &match_alloc, NULL); in check_kmalloc_wrong_size()
93 add_function_assign_hook("kmalloc", &match_alloc, NULL); in check_kmalloc_wrong_size()
H A Dsmatch_fresh_alloc.c193 static void match_alloc(const char *fn, struct expression *expr, void *_size_arg) in match_alloc() function
211 add_function_assign_hook(alloc_funcs[i].fn, &match_alloc, 0); in register_fresh_alloc()
H A Dcheck_leaks.c122 static void match_alloc(const char *fn, struct expression *expr, void *unused) in match_alloc() function
261 add_function_assign_hook(allocation_funcs[i], &match_alloc, NULL); in check_leaks()
H A Dsmatch_parse_call_math.c470 static void match_alloc(const char *fn, struct expression *expr, void *_size_arg) in match_alloc() function
641 add_function_assign_hook(alloc_functions[i].func, &match_alloc, in register_parse_call_math()