diff options
| author | Denis Efremov (Oracle) <efremov@linux.com> | 2023-09-04 12:39:56 +0400 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-09-04 11:58:18 +0000 |
| commit | 8bc9053e88dacf57f5ce550da040d31895eb9626 (patch) | |
| tree | 323f7179a7cca5db6b348675620d76da5499dabe /sys/linux | |
| parent | 818736f74e201d1207a22e2c0a739c005d3809cc (diff) | |
sys/linux: add cachestat description
Handle torvalds/linux@cf264e1329fb ("cachestat: implement cachestat syscall")
Signed-off-by: Denis Efremov (Oracle) <efremov@linux.com>
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/sys.txt | 14 | ||||
| -rw-r--r-- | sys/linux/sys.txt.const | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 9c9874b33..176e86fe2 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -135,6 +135,19 @@ vmsplice(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec], f flags[splice_flag sendfile(fdout fd, fdin fd, off ptr[inout, fileoff[intptr], opt], count intptr) sendfile64(fdout fd, fdin fd, off ptr[inout, fileoff[int64], opt], count intptr) +cachestat_range { + off fileoff[int64] + len int64 +} + +cachestat { + nr_cache int64 + nr_dirty int64 + nr_writeback int64 + nr_evicted int64 + nr_recently_evicted int64 +} + stat(file ptr[in, filename], statbuf ptr[out, stat]) lstat(file ptr[in, filename], statbuf ptr[out, stat]) fstat(fd fd, statbuf ptr[out, stat]) @@ -144,6 +157,7 @@ lstat64(file ptr[in, filename], statbuf ptr[out, stat64]) fstat64(fd fd, statbuf ptr[out, stat64]) fstatat64(dfd const[AT_FDCWD], file ptr[in, filename], statbuf ptr[out, stat64], flag flags[statx_flags]) statx(fd fd_dir, file ptr[in, filename], flags flags[statx_flags], mask flags[statx_mask], statxbuf ptr[out, statx]) +cachestat(fd fd, cstat_range ptr[in, cachestat_range], cstat ptr[out, cachestat], flags const[0]) poll(fds ptr[in, array[pollfd]], nfds len[fds], timeout int32) ppoll(fds ptr[in, array[pollfd]], nfds len[fds], tsp ptr[in, timespec], sigmask ptr[in, sigset_t], size len[sigmask]) diff --git a/sys/linux/sys.txt.const b/sys/linux/sys.txt.const index df849f3b5..a28635d15 100644 --- a/sys/linux/sys.txt.const +++ b/sys/linux/sys.txt.const @@ -617,6 +617,7 @@ _NSIG_WORDS = 1, 386:arm:mips64le:2 __NR_acct = 51, amd64:163, arm64:riscv64:89, mips64le:5158 __NR_alarm = 27, amd64:37, arm:arm64:riscv64:???, mips64le:5037 __NR_brk = 45, amd64:12, arm64:riscv64:214, mips64le:5012 +__NR_cachestat = 451, mips64le:5451 __NR_capget = 184, amd64:125, arm64:riscv64:90, mips64le:5123, ppc64le:183 __NR_capset = 185, amd64:126, arm64:riscv64:91, mips64le:5124, ppc64le:184 __NR_chdir = 12, amd64:80, arm64:riscv64:49, mips64le:5078 |
