Searched refs:add_allocation_function (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_buf_size.c | 57 static void add_allocation_function(const char *func, void *call_back, int param) in add_allocation_function() function 927 add_allocation_function("malloc", &match_alloc, 0); in register_buf_size() 928 add_allocation_function("calloc", &match_calloc, 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() 933 add_allocation_function("kmalloc_node", &match_alloc, 0); in register_buf_size() 934 add_allocation_function("kzalloc", &match_alloc, 0); in register_buf_size() 935 add_allocation_function("kzalloc_node", &match_alloc, 0); in register_buf_size() 936 add_allocation_function("vmalloc", &match_alloc, 0); in register_buf_size() [all …]
|
H A D | smatch_constraints_required.c | 252 static void add_allocation_function(const char *func, void *call_back, int param) in add_allocation_function() function 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() 474 add_allocation_function("realloc", &match_calloc, 0); 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() [all …]
|
H A D | smatch_buf_comparison.c | 471 static void add_allocation_function(const char *func, void *call_back, int param) in add_allocation_function() function 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() [all …]
|