Searched refs:callocSize (Results 1 – 3 of 3) sorted by relevance
| /developtools/profiler/device/plugins/native_hook/test/ |
| D | malloc_test.cpp | 72 static char* DepthCalloc(int depth, int callocSize) in DepthCalloc() argument 77 return (char*)calloc(sizeof(char), callocSize); in DepthCalloc() 79 return (DepthCalloc(depth - 1, callocSize)); in DepthCalloc() 131 int callocSize = mallocSize / sizeof(char); in ApplyForCalloc() local 132 printf("\nstart calloc apply (size = %d)\n", callocSize); in ApplyForCalloc() 137 char* p = DepthCalloc(STATIC_DEPTH, callocSize); in ApplyForCalloc() 145 printf("calloc success, calloc (%d) time is %f\n", callocSize, duration); in ApplyForCalloc()
|
| D | hook_test.c | 74 char* DepthCalloc(int depth, int callocSize) in DepthCalloc() argument 79 return (char*)calloc(sizeof(char), callocSize); in DepthCalloc() 81 return (DepthCalloc(depth - 1, callocSize)); in DepthCalloc() 133 int callocSize = mallocSize / sizeof(char); in ApplyForCalloc() local 134 printf("\nstart calloc apply (size = %d)\n", callocSize); in ApplyForCalloc() 139 char* p = DepthCalloc(STATIC_DEPTH, callocSize); in ApplyForCalloc() 147 printf("calloc success, calloc (%d) time is %f\n", callocSize, duration); in ApplyForCalloc()
|
| /developtools/profiler/device/plugins/native_hook/test/unittest/ |
| D | check_hook_data_test.cpp | 276 char* DepthCalloc(int depth, int callocSize) in DepthCalloc() argument 281 return reinterpret_cast<char *>(calloc(sizeof(char), callocSize)); in DepthCalloc() 283 return (DepthCalloc(depth - 1, callocSize)); in DepthCalloc() 288 int callocSize = DEFAULT_CALLOC_SIZE / sizeof(char); in ApplyForCalloc() local 289 char *p = DepthCalloc(depth, callocSize); in ApplyForCalloc()
|