Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/mm/
Dvm_util.c107 char addr_pattern[MAX_LINE_LENGTH]; in __check_huge() local
109 ret = snprintf(addr_pattern, MAX_LINE_LENGTH, "%08lx-", in __check_huge()
118 if (!check_for_pattern(fp, addr_pattern, buffer, sizeof(buffer))) in __check_huge()
128 snprintf(addr_pattern, MAX_LINE_LENGTH, "%s%%9ld kB", pattern); in __check_huge()
130 if (sscanf(buffer, addr_pattern, &thp) != 1) in __check_huge()
Dkhugepaged.c514 char addr_pattern[MAX_LINE_LENGTH]; in check_swap() local
516 ret = snprintf(addr_pattern, MAX_LINE_LENGTH, "%08lx-", in check_swap()
529 if (!check_for_pattern(fp, addr_pattern, buffer, sizeof(buffer))) in check_swap()
532 ret = snprintf(addr_pattern, MAX_LINE_LENGTH, "Swap:%19ld kB", in check_swap()
545 if (strncmp(buffer, addr_pattern, strlen(addr_pattern))) in check_swap()