Searched refs:cachestat (Results 1 - 7 of 7) sorted by last modified time

/linux-master/tools/testing/selftests/
H A DMakefile7 TARGETS += cachestat
/linux-master/mm/
H A Dfilemap.c4238 * @cs: the cachestat struct to write the result to.
4246 pgoff_t first_index, pgoff_t last_index, struct cachestat *cs)
4339 * The cachestat(2) system call.
4341 * cachestat() returns the page cache statistics of a file in the
4361 * Because the status of a page can change after cachestat() checks it
4372 SYSCALL_DEFINE4(cachestat, unsigned int, fd,
4374 struct cachestat __user *, cstat, unsigned int, flags)
4379 struct cachestat cs;
4405 memset(&cs, 0, sizeof(struct cachestat));
4410 if (copy_to_user(cstat, &cs, sizeof(struct cachestat)))
[all...]
/linux-master/include/linux/
H A Dsyscalls.h77 struct cachestat;
960 struct cachestat __user *cstat, unsigned int flags);
/linux-master/kernel/
H A Dsys_ni.c198 COND_SYSCALL(cachestat); variable
/linux-master/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c27 void print_cachestat(struct cachestat *cs)
30 "Using cachestat: Cached: %llu, Dirty: %llu, Writeback: %llu, Evicted: %llu, Recently Evicted: %llu\n",
112 * (exactly num_pages), then test the cachestat syscall on this file.
125 struct cachestat cs;
212 struct cachestat cs;
264 ksft_exit_skip("cachestat syscall not available\n");
281 ksft_test_result_pass("cachestat works with %s\n", dev_filename);
283 ksft_test_result_fail("cachestat fails with %s\n", dev_filename);
290 ksft_test_result_pass("cachestat works with a normal file\n");
292 ksft_test_result_fail("cachestat fail
[all...]
/linux-master/tools/include/uapi/linux/
H A Dmman.h50 struct cachestat { struct
/linux-master/include/uapi/linux/
H A Dmman.h50 struct cachestat { struct

Completed in 182 milliseconds