Lines Matching refs:printf

115 	printf("pages_shared      : %lu\n", pages_shared);  in ksm_print_sysfs()
116 printf("pages_sharing : %lu\n", pages_sharing); in ksm_print_sysfs()
117 printf("max_page_sharing : %lu\n", max_page_sharing); in ksm_print_sysfs()
118 printf("full_scans : %lu\n", full_scans); in ksm_print_sysfs()
119 printf("pages_unshared : %lu\n", pages_unshared); in ksm_print_sysfs()
120 printf("pages_volatile : %lu\n", pages_volatile); in ksm_print_sysfs()
121 printf("stable_node_chains: %lu\n", stable_node_chains); in ksm_print_sysfs()
122 printf("stable_node_dups : %lu\n", stable_node_dups); in ksm_print_sysfs()
123 printf("general_profit : %ld\n", general_profit); in ksm_print_sysfs()
139 printf("%s", buffer); in ksm_print_procfs()
160 printf("usage: ksm_tests [-h] <test type> [-a prot] [-p page_count] [-l timeout]\n" in print_help()
163 printf("Supported <test type>:\n" in print_help()
179 printf(" -a: specify the access protections of pages.\n" in print_help()
182 printf(" -p: specify the number of pages to test.\n" in print_help()
184 printf(" -l: limit the maximum running time (in seconds) for a test.\n" in print_help()
186 printf(" -z: change use_zero_pages tunable\n" in print_help()
188 printf(" -m: change merge_across_nodes tunable\n" in print_help()
190 printf(" -d: turn debugging output on\n"); in print_help()
191 printf(" -s: the size of duplicated memory area (in MiB)\n"); in print_help()
192 printf(" -t: KSM merge type\n" in print_help()
235 printf("Scan time limit exceeded\n"); in ksm_do_scan()
368 printf("OK\n"); in check_ksm_merge()
376 printf("Not OK\n"); in check_ksm_merge()
410 printf("OK\n"); in check_ksm_unmerge()
416 printf("Not OK\n"); in check_ksm_unmerge()
455 printf("OK\n"); in check_ksm_zero_page_merge()
460 printf("Not OK\n"); in check_ksm_zero_page_merge()
504 printf("At least 2 NUMA nodes must be available\n"); in check_ksm_numa_merge()
540 printf("OK\n"); in check_ksm_numa_merge()
546 printf("Not OK\n"); in check_ksm_numa_merge()
584 printf("Number of normal pages: %d\n", n_normal_pages); in ksm_merge_hugepages_time()
585 printf("Number of huge pages: %d\n", n_huge_pages); in ksm_merge_hugepages_time()
603 printf("Total size: %lu MiB\n", map_size / MB); in ksm_merge_hugepages_time()
604 printf("Total time: %ld.%09ld s\n", scan_time_ns / NSEC_PER_SEC, in ksm_merge_hugepages_time()
606 printf("Average speed: %.3f MiB/s\n", (map_size / MB) / in ksm_merge_hugepages_time()
613 printf("Not OK\n"); in ksm_merge_hugepages_time()
644 printf("Total size: %lu MiB\n", map_size / MB); in ksm_merge_time()
645 printf("Total time: %ld.%09ld s\n", scan_time_ns / NSEC_PER_SEC, in ksm_merge_time()
647 printf("Average speed: %.3f MiB/s\n", (map_size / MB) / in ksm_merge_time()
654 printf("Not OK\n"); in ksm_merge_time()
691 printf("Total size: %lu MiB\n", map_size / MB); in ksm_unmerge_time()
692 printf("Total time: %ld.%09ld s\n", scan_time_ns / NSEC_PER_SEC, in ksm_unmerge_time()
694 printf("Average speed: %.3f MiB/s\n", (map_size / MB) / in ksm_unmerge_time()
701 printf("Not OK\n"); in ksm_unmerge_time()
733 printf("Total size: %lu MiB\n\n", (page_size * page_count) / MB); in ksm_cow_time()
734 printf("Not merged pages:\n"); in ksm_cow_time()
735 printf("Total time: %ld.%09ld s\n", cow_time_ns / NSEC_PER_SEC, in ksm_cow_time()
737 printf("Average speed: %.3f MiB/s\n\n", ((page_size * (page_count / 2)) / MB) / in ksm_cow_time()
762 printf("Merged pages:\n"); in ksm_cow_time()
763 printf("Total time: %ld.%09ld s\n", cow_time_ns / NSEC_PER_SEC, in ksm_cow_time()
765 printf("Average speed: %.3f MiB/s\n", ((page_size * (page_count / 2)) / MB) / in ksm_cow_time()
772 printf("Not OK\n"); in ksm_cow_time()
799 printf("The number of pages must be greater than 0\n"); in main()
806 printf("Timeout value must be greater than 0\n"); in main()
831 printf("Size must be greater than 0\n"); in main()
840 printf("Invalid merge type\n"); in main()
878 printf("Config KSM not enabled\n"); in main()
883 printf("Cannot save default tunables\n"); in main()
914 printf("Option '-s' is required.\n"); in main()
922 printf("Option '-s' is required.\n"); in main()
930 printf("Option '-s' is required.\n"); in main()
943 printf("Cannot restore default tunables\n"); in main()