Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c941 int swap_peak_fd = -1, mem_peak_fd = -1; in test_memcg_swap_max_peak() local
961 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 …]