• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2024 SUSE LLC Andrea Cervesato <andrea.cervesato@suse.com>
4  */
5 
6 #ifndef CACHESTAT_H__
7 #define CACHESTAT_H__
8 
9 #include "tst_test.h"
10 #include "lapi/mman.h"
11 
print_cachestat(struct cachestat * cs)12 static inline void print_cachestat(struct cachestat *cs)
13 {
14 	tst_res(TDEBUG,
15 		"nr_cache=%lu "
16 		"nr_dirty=%lu "
17 		"nr_writeback=%lu "
18 		"nr_evicted=%lu "
19 		"nr_recently_evicted=%lu",
20 		cs->nr_cache,
21 		cs->nr_dirty,
22 		cs->nr_writeback,
23 		cs->nr_evicted,
24 		cs->nr_recently_evicted);
25 }
26 
27 #endif
28