Searched refs:swap_peak_fd (Results 1 – 1 of 1) sorted by relevance
941 int swap_peak_fd = -1, mem_peak_fd = -1; in test_memcg_swap_max_peak() local961 swap_peak_fd = cg_open(memcg, "memory.swap.peak", in test_memcg_swap_max_peak()964 if (swap_peak_fd == -1) { in test_memcg_swap_max_peak()975 if (fstat(swap_peak_fd, &ss)) in test_memcg_swap_max_peak()991 if (cg_read_long_fd(swap_peak_fd)) in test_memcg_swap_max_peak()995 int peak_reset = write(swap_peak_fd, reset_string, sizeof(reset_string)); in test_memcg_swap_max_peak()1000 if (cg_read_long_fd(swap_peak_fd)) in test_memcg_swap_max_peak()1050 peak = cg_read_long_fd(swap_peak_fd); in test_memcg_swap_max_peak()1067 peak_reset = write(swap_peak_fd, reset_string, sizeof(reset_string)); in test_memcg_swap_max_peak()1075 peak = cg_read_long_fd(swap_peak_fd); in test_memcg_swap_max_peak()[all …]