Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c323 static void ksm_child_memset(int child_num, int size, int total_unit, in ksm_child_memset() argument
327 int unit = size / total_unit; in ksm_child_memset()
341 for (j = 0; j < total_unit; j++) { in ksm_child_memset()
356 int j, total_unit; in create_ksm_child() local
360 total_unit = size / unit; in create_ksm_child()
363 memory = SAFE_MALLOC(total_unit * sizeof(char *)); in create_ksm_child()
364 for (j = 0; j < total_unit; j++) { in create_ksm_child()
380 ksm_child_memset(child_num, size, total_unit, in create_ksm_child()
390 verify(memory, 'e', child_num, total_unit - 1, in create_ksm_child()
391 total_unit, unit * MB - 1, unit * MB); in create_ksm_child()
[all …]