1 /*
2 * Copyright (c) 2023 Dmitry V. Levin <ldv@strace.io>
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 #ifndef STRACE_CACHESTAT_H
9 # define STRACE_CACHESTAT_H
10
11 # include <stdint.h>
12
13 struct cachestat_range {
14 uint64_t off;
15 uint64_t len;
16 };
17
18 struct cachestat {
19 uint64_t nr_cache;
20 uint64_t nr_dirty;
21 uint64_t nr_writeback;
22 uint64_t nr_evicted;
23 uint64_t nr_recently_evicted;
24 };
25
26 #endif /* STRACE_CACHESTAT_H */