Home
last modified time | relevance | path

Searched refs:callocSize (Results 1 - 3 of 3) sorted by relevance

/developtools/profiler/device/plugins/native_hook/test/
H A Dhook_test.c74 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()
H A Dmalloc_test.cpp72 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()
/developtools/profiler/device/plugins/native_hook/test/unittest/
H A Dcheck_hook_data_test.cpp316 char* DepthCalloc(int depth, int callocSize) in DepthCalloc() argument
321 return reinterpret_cast<char *>(calloc(sizeof(char), callocSize)); in DepthCalloc()
323 return (DepthCalloc(depth - 1, callocSize)); in DepthCalloc()
328 int callocSize = DEFAULT_CALLOC_SIZE / sizeof(char); in ApplyForCalloc() local
329 char *p = DepthCalloc(depth, callocSize); in ApplyForCalloc()

Completed in 4 milliseconds