/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_constraints_required.c | 471 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 D | smatch_buf_size.c | 927 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 D | smatch_buf_comparison.c | 806 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 D | check_gfp_dma.c | 29 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 D | check_kmalloc_wrong_size.c | 48 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 D | smatch_fresh_alloc.c | 193 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 D | check_leaks.c | 122 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 D | smatch_parse_call_math.c | 470 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()
|