Linux Audio

Check our new training course

Yocto / OpenEmbedded training

Mar 24-27, 2025, special US time zones
Register
Loading...
v3.1
 
  1/* FS-Cache statistics
  2 *
  3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  4 * Written by David Howells (dhowells@redhat.com)
  5 *
  6 * This program is free software; you can redistribute it and/or
  7 * modify it under the terms of the GNU General Public License
  8 * as published by the Free Software Foundation; either version
  9 * 2 of the License, or (at your option) any later version.
 10 */
 11
 12#define FSCACHE_DEBUG_LEVEL THREAD
 13#include <linux/module.h>
 14#include <linux/proc_fs.h>
 15#include <linux/seq_file.h>
 16#include "internal.h"
 17
 18/*
 19 * operation counters
 20 */
 21atomic_t fscache_n_op_pend;
 22atomic_t fscache_n_op_run;
 23atomic_t fscache_n_op_enqueue;
 24atomic_t fscache_n_op_requeue;
 25atomic_t fscache_n_op_deferred_release;
 
 26atomic_t fscache_n_op_release;
 27atomic_t fscache_n_op_gc;
 28atomic_t fscache_n_op_cancelled;
 29atomic_t fscache_n_op_rejected;
 30
 31atomic_t fscache_n_attr_changed;
 32atomic_t fscache_n_attr_changed_ok;
 33atomic_t fscache_n_attr_changed_nobufs;
 34atomic_t fscache_n_attr_changed_nomem;
 35atomic_t fscache_n_attr_changed_calls;
 36
 37atomic_t fscache_n_allocs;
 38atomic_t fscache_n_allocs_ok;
 39atomic_t fscache_n_allocs_wait;
 40atomic_t fscache_n_allocs_nobufs;
 41atomic_t fscache_n_allocs_intr;
 42atomic_t fscache_n_allocs_object_dead;
 43atomic_t fscache_n_alloc_ops;
 44atomic_t fscache_n_alloc_op_waits;
 45
 46atomic_t fscache_n_retrievals;
 47atomic_t fscache_n_retrievals_ok;
 48atomic_t fscache_n_retrievals_wait;
 49atomic_t fscache_n_retrievals_nodata;
 50atomic_t fscache_n_retrievals_nobufs;
 51atomic_t fscache_n_retrievals_intr;
 52atomic_t fscache_n_retrievals_nomem;
 53atomic_t fscache_n_retrievals_object_dead;
 54atomic_t fscache_n_retrieval_ops;
 55atomic_t fscache_n_retrieval_op_waits;
 56
 57atomic_t fscache_n_stores;
 58atomic_t fscache_n_stores_ok;
 59atomic_t fscache_n_stores_again;
 60atomic_t fscache_n_stores_nobufs;
 61atomic_t fscache_n_stores_oom;
 62atomic_t fscache_n_store_ops;
 63atomic_t fscache_n_store_calls;
 64atomic_t fscache_n_store_pages;
 65atomic_t fscache_n_store_radix_deletes;
 66atomic_t fscache_n_store_pages_over_limit;
 67
 68atomic_t fscache_n_store_vmscan_not_storing;
 69atomic_t fscache_n_store_vmscan_gone;
 70atomic_t fscache_n_store_vmscan_busy;
 71atomic_t fscache_n_store_vmscan_cancelled;
 
 72
 73atomic_t fscache_n_marks;
 74atomic_t fscache_n_uncaches;
 75
 76atomic_t fscache_n_acquires;
 77atomic_t fscache_n_acquires_null;
 78atomic_t fscache_n_acquires_no_cache;
 79atomic_t fscache_n_acquires_ok;
 80atomic_t fscache_n_acquires_nobufs;
 81atomic_t fscache_n_acquires_oom;
 82
 
 
 
 83atomic_t fscache_n_updates;
 84atomic_t fscache_n_updates_null;
 85atomic_t fscache_n_updates_run;
 86
 87atomic_t fscache_n_relinquishes;
 88atomic_t fscache_n_relinquishes_null;
 89atomic_t fscache_n_relinquishes_waitcrt;
 90atomic_t fscache_n_relinquishes_retire;
 91
 92atomic_t fscache_n_cookie_index;
 93atomic_t fscache_n_cookie_data;
 94atomic_t fscache_n_cookie_special;
 95
 96atomic_t fscache_n_object_alloc;
 97atomic_t fscache_n_object_no_alloc;
 98atomic_t fscache_n_object_lookups;
 99atomic_t fscache_n_object_lookups_negative;
100atomic_t fscache_n_object_lookups_positive;
101atomic_t fscache_n_object_lookups_timed_out;
102atomic_t fscache_n_object_created;
103atomic_t fscache_n_object_avail;
104atomic_t fscache_n_object_dead;
105
106atomic_t fscache_n_checkaux_none;
107atomic_t fscache_n_checkaux_okay;
108atomic_t fscache_n_checkaux_update;
109atomic_t fscache_n_checkaux_obsolete;
110
111atomic_t fscache_n_cop_alloc_object;
112atomic_t fscache_n_cop_lookup_object;
113atomic_t fscache_n_cop_lookup_complete;
114atomic_t fscache_n_cop_grab_object;
 
115atomic_t fscache_n_cop_update_object;
116atomic_t fscache_n_cop_drop_object;
117atomic_t fscache_n_cop_put_object;
118atomic_t fscache_n_cop_sync_cache;
119atomic_t fscache_n_cop_attr_changed;
120atomic_t fscache_n_cop_read_or_alloc_page;
121atomic_t fscache_n_cop_read_or_alloc_pages;
122atomic_t fscache_n_cop_allocate_page;
123atomic_t fscache_n_cop_allocate_pages;
124atomic_t fscache_n_cop_write_page;
125atomic_t fscache_n_cop_uncache_page;
126atomic_t fscache_n_cop_dissociate_pages;
127
 
 
 
 
 
128/*
129 * display the general statistics
130 */
131static int fscache_stats_show(struct seq_file *m, void *v)
132{
133	seq_puts(m, "FS-Cache statistics\n");
134
135	seq_printf(m, "Cookies: idx=%u dat=%u spc=%u\n",
136		   atomic_read(&fscache_n_cookie_index),
137		   atomic_read(&fscache_n_cookie_data),
138		   atomic_read(&fscache_n_cookie_special));
139
140	seq_printf(m, "Objects: alc=%u nal=%u avl=%u ded=%u\n",
141		   atomic_read(&fscache_n_object_alloc),
142		   atomic_read(&fscache_n_object_no_alloc),
143		   atomic_read(&fscache_n_object_avail),
144		   atomic_read(&fscache_n_object_dead));
145	seq_printf(m, "ChkAux : non=%u ok=%u upd=%u obs=%u\n",
146		   atomic_read(&fscache_n_checkaux_none),
147		   atomic_read(&fscache_n_checkaux_okay),
148		   atomic_read(&fscache_n_checkaux_update),
149		   atomic_read(&fscache_n_checkaux_obsolete));
150
151	seq_printf(m, "Pages  : mrk=%u unc=%u\n",
152		   atomic_read(&fscache_n_marks),
153		   atomic_read(&fscache_n_uncaches));
154
155	seq_printf(m, "Acquire: n=%u nul=%u noc=%u ok=%u nbf=%u"
156		   " oom=%u\n",
157		   atomic_read(&fscache_n_acquires),
158		   atomic_read(&fscache_n_acquires_null),
159		   atomic_read(&fscache_n_acquires_no_cache),
160		   atomic_read(&fscache_n_acquires_ok),
161		   atomic_read(&fscache_n_acquires_nobufs),
162		   atomic_read(&fscache_n_acquires_oom));
163
164	seq_printf(m, "Lookups: n=%u neg=%u pos=%u crt=%u tmo=%u\n",
165		   atomic_read(&fscache_n_object_lookups),
166		   atomic_read(&fscache_n_object_lookups_negative),
167		   atomic_read(&fscache_n_object_lookups_positive),
168		   atomic_read(&fscache_n_object_created),
169		   atomic_read(&fscache_n_object_lookups_timed_out));
170
 
 
 
 
171	seq_printf(m, "Updates: n=%u nul=%u run=%u\n",
172		   atomic_read(&fscache_n_updates),
173		   atomic_read(&fscache_n_updates_null),
174		   atomic_read(&fscache_n_updates_run));
175
176	seq_printf(m, "Relinqs: n=%u nul=%u wcr=%u rtr=%u\n",
177		   atomic_read(&fscache_n_relinquishes),
178		   atomic_read(&fscache_n_relinquishes_null),
179		   atomic_read(&fscache_n_relinquishes_waitcrt),
180		   atomic_read(&fscache_n_relinquishes_retire));
181
182	seq_printf(m, "AttrChg: n=%u ok=%u nbf=%u oom=%u run=%u\n",
183		   atomic_read(&fscache_n_attr_changed),
184		   atomic_read(&fscache_n_attr_changed_ok),
185		   atomic_read(&fscache_n_attr_changed_nobufs),
186		   atomic_read(&fscache_n_attr_changed_nomem),
187		   atomic_read(&fscache_n_attr_changed_calls));
188
189	seq_printf(m, "Allocs : n=%u ok=%u wt=%u nbf=%u int=%u\n",
190		   atomic_read(&fscache_n_allocs),
191		   atomic_read(&fscache_n_allocs_ok),
192		   atomic_read(&fscache_n_allocs_wait),
193		   atomic_read(&fscache_n_allocs_nobufs),
194		   atomic_read(&fscache_n_allocs_intr));
195	seq_printf(m, "Allocs : ops=%u owt=%u abt=%u\n",
196		   atomic_read(&fscache_n_alloc_ops),
197		   atomic_read(&fscache_n_alloc_op_waits),
198		   atomic_read(&fscache_n_allocs_object_dead));
199
200	seq_printf(m, "Retrvls: n=%u ok=%u wt=%u nod=%u nbf=%u"
201		   " int=%u oom=%u\n",
202		   atomic_read(&fscache_n_retrievals),
203		   atomic_read(&fscache_n_retrievals_ok),
204		   atomic_read(&fscache_n_retrievals_wait),
205		   atomic_read(&fscache_n_retrievals_nodata),
206		   atomic_read(&fscache_n_retrievals_nobufs),
207		   atomic_read(&fscache_n_retrievals_intr),
208		   atomic_read(&fscache_n_retrievals_nomem));
209	seq_printf(m, "Retrvls: ops=%u owt=%u abt=%u\n",
210		   atomic_read(&fscache_n_retrieval_ops),
211		   atomic_read(&fscache_n_retrieval_op_waits),
212		   atomic_read(&fscache_n_retrievals_object_dead));
213
214	seq_printf(m, "Stores : n=%u ok=%u agn=%u nbf=%u oom=%u\n",
215		   atomic_read(&fscache_n_stores),
216		   atomic_read(&fscache_n_stores_ok),
217		   atomic_read(&fscache_n_stores_again),
218		   atomic_read(&fscache_n_stores_nobufs),
219		   atomic_read(&fscache_n_stores_oom));
220	seq_printf(m, "Stores : ops=%u run=%u pgs=%u rxd=%u olm=%u\n",
221		   atomic_read(&fscache_n_store_ops),
222		   atomic_read(&fscache_n_store_calls),
223		   atomic_read(&fscache_n_store_pages),
224		   atomic_read(&fscache_n_store_radix_deletes),
225		   atomic_read(&fscache_n_store_pages_over_limit));
226
227	seq_printf(m, "VmScan : nos=%u gon=%u bsy=%u can=%u\n",
228		   atomic_read(&fscache_n_store_vmscan_not_storing),
229		   atomic_read(&fscache_n_store_vmscan_gone),
230		   atomic_read(&fscache_n_store_vmscan_busy),
231		   atomic_read(&fscache_n_store_vmscan_cancelled));
 
232
233	seq_printf(m, "Ops    : pend=%u run=%u enq=%u can=%u rej=%u\n",
234		   atomic_read(&fscache_n_op_pend),
235		   atomic_read(&fscache_n_op_run),
236		   atomic_read(&fscache_n_op_enqueue),
237		   atomic_read(&fscache_n_op_cancelled),
238		   atomic_read(&fscache_n_op_rejected));
239	seq_printf(m, "Ops    : dfr=%u rel=%u gc=%u\n",
 
240		   atomic_read(&fscache_n_op_deferred_release),
241		   atomic_read(&fscache_n_op_release),
242		   atomic_read(&fscache_n_op_gc));
243
244	seq_printf(m, "CacheOp: alo=%d luo=%d luc=%d gro=%d\n",
245		   atomic_read(&fscache_n_cop_alloc_object),
246		   atomic_read(&fscache_n_cop_lookup_object),
247		   atomic_read(&fscache_n_cop_lookup_complete),
248		   atomic_read(&fscache_n_cop_grab_object));
249	seq_printf(m, "CacheOp: upo=%d dro=%d pto=%d atc=%d syn=%d\n",
 
250		   atomic_read(&fscache_n_cop_update_object),
251		   atomic_read(&fscache_n_cop_drop_object),
252		   atomic_read(&fscache_n_cop_put_object),
253		   atomic_read(&fscache_n_cop_attr_changed),
254		   atomic_read(&fscache_n_cop_sync_cache));
255	seq_printf(m, "CacheOp: rap=%d ras=%d alp=%d als=%d wrp=%d ucp=%d dsp=%d\n",
256		   atomic_read(&fscache_n_cop_read_or_alloc_page),
257		   atomic_read(&fscache_n_cop_read_or_alloc_pages),
258		   atomic_read(&fscache_n_cop_allocate_page),
259		   atomic_read(&fscache_n_cop_allocate_pages),
260		   atomic_read(&fscache_n_cop_write_page),
261		   atomic_read(&fscache_n_cop_uncache_page),
262		   atomic_read(&fscache_n_cop_dissociate_pages));
 
 
 
 
 
263	return 0;
264}
265
266/*
267 * open "/proc/fs/fscache/stats" allowing provision of a statistical summary
268 */
269static int fscache_stats_open(struct inode *inode, struct file *file)
270{
271	return single_open(file, fscache_stats_show, NULL);
272}
273
274const struct file_operations fscache_stats_fops = {
275	.owner		= THIS_MODULE,
276	.open		= fscache_stats_open,
277	.read		= seq_read,
278	.llseek		= seq_lseek,
279	.release	= seq_release,
280};
v5.4
  1// SPDX-License-Identifier: GPL-2.0-or-later
  2/* FS-Cache statistics
  3 *
  4 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  5 * Written by David Howells (dhowells@redhat.com)
 
 
 
 
 
  6 */
  7
  8#define FSCACHE_DEBUG_LEVEL THREAD
  9#include <linux/module.h>
 10#include <linux/proc_fs.h>
 11#include <linux/seq_file.h>
 12#include "internal.h"
 13
 14/*
 15 * operation counters
 16 */
 17atomic_t fscache_n_op_pend;
 18atomic_t fscache_n_op_run;
 19atomic_t fscache_n_op_enqueue;
 
 20atomic_t fscache_n_op_deferred_release;
 21atomic_t fscache_n_op_initialised;
 22atomic_t fscache_n_op_release;
 23atomic_t fscache_n_op_gc;
 24atomic_t fscache_n_op_cancelled;
 25atomic_t fscache_n_op_rejected;
 26
 27atomic_t fscache_n_attr_changed;
 28atomic_t fscache_n_attr_changed_ok;
 29atomic_t fscache_n_attr_changed_nobufs;
 30atomic_t fscache_n_attr_changed_nomem;
 31atomic_t fscache_n_attr_changed_calls;
 32
 33atomic_t fscache_n_allocs;
 34atomic_t fscache_n_allocs_ok;
 35atomic_t fscache_n_allocs_wait;
 36atomic_t fscache_n_allocs_nobufs;
 37atomic_t fscache_n_allocs_intr;
 38atomic_t fscache_n_allocs_object_dead;
 39atomic_t fscache_n_alloc_ops;
 40atomic_t fscache_n_alloc_op_waits;
 41
 42atomic_t fscache_n_retrievals;
 43atomic_t fscache_n_retrievals_ok;
 44atomic_t fscache_n_retrievals_wait;
 45atomic_t fscache_n_retrievals_nodata;
 46atomic_t fscache_n_retrievals_nobufs;
 47atomic_t fscache_n_retrievals_intr;
 48atomic_t fscache_n_retrievals_nomem;
 49atomic_t fscache_n_retrievals_object_dead;
 50atomic_t fscache_n_retrieval_ops;
 51atomic_t fscache_n_retrieval_op_waits;
 52
 53atomic_t fscache_n_stores;
 54atomic_t fscache_n_stores_ok;
 55atomic_t fscache_n_stores_again;
 56atomic_t fscache_n_stores_nobufs;
 57atomic_t fscache_n_stores_oom;
 58atomic_t fscache_n_store_ops;
 59atomic_t fscache_n_store_calls;
 60atomic_t fscache_n_store_pages;
 61atomic_t fscache_n_store_radix_deletes;
 62atomic_t fscache_n_store_pages_over_limit;
 63
 64atomic_t fscache_n_store_vmscan_not_storing;
 65atomic_t fscache_n_store_vmscan_gone;
 66atomic_t fscache_n_store_vmscan_busy;
 67atomic_t fscache_n_store_vmscan_cancelled;
 68atomic_t fscache_n_store_vmscan_wait;
 69
 70atomic_t fscache_n_marks;
 71atomic_t fscache_n_uncaches;
 72
 73atomic_t fscache_n_acquires;
 74atomic_t fscache_n_acquires_null;
 75atomic_t fscache_n_acquires_no_cache;
 76atomic_t fscache_n_acquires_ok;
 77atomic_t fscache_n_acquires_nobufs;
 78atomic_t fscache_n_acquires_oom;
 79
 80atomic_t fscache_n_invalidates;
 81atomic_t fscache_n_invalidates_run;
 82
 83atomic_t fscache_n_updates;
 84atomic_t fscache_n_updates_null;
 85atomic_t fscache_n_updates_run;
 86
 87atomic_t fscache_n_relinquishes;
 88atomic_t fscache_n_relinquishes_null;
 89atomic_t fscache_n_relinquishes_waitcrt;
 90atomic_t fscache_n_relinquishes_retire;
 91
 92atomic_t fscache_n_cookie_index;
 93atomic_t fscache_n_cookie_data;
 94atomic_t fscache_n_cookie_special;
 95
 96atomic_t fscache_n_object_alloc;
 97atomic_t fscache_n_object_no_alloc;
 98atomic_t fscache_n_object_lookups;
 99atomic_t fscache_n_object_lookups_negative;
100atomic_t fscache_n_object_lookups_positive;
101atomic_t fscache_n_object_lookups_timed_out;
102atomic_t fscache_n_object_created;
103atomic_t fscache_n_object_avail;
104atomic_t fscache_n_object_dead;
105
106atomic_t fscache_n_checkaux_none;
107atomic_t fscache_n_checkaux_okay;
108atomic_t fscache_n_checkaux_update;
109atomic_t fscache_n_checkaux_obsolete;
110
111atomic_t fscache_n_cop_alloc_object;
112atomic_t fscache_n_cop_lookup_object;
113atomic_t fscache_n_cop_lookup_complete;
114atomic_t fscache_n_cop_grab_object;
115atomic_t fscache_n_cop_invalidate_object;
116atomic_t fscache_n_cop_update_object;
117atomic_t fscache_n_cop_drop_object;
118atomic_t fscache_n_cop_put_object;
119atomic_t fscache_n_cop_sync_cache;
120atomic_t fscache_n_cop_attr_changed;
121atomic_t fscache_n_cop_read_or_alloc_page;
122atomic_t fscache_n_cop_read_or_alloc_pages;
123atomic_t fscache_n_cop_allocate_page;
124atomic_t fscache_n_cop_allocate_pages;
125atomic_t fscache_n_cop_write_page;
126atomic_t fscache_n_cop_uncache_page;
127atomic_t fscache_n_cop_dissociate_pages;
128
129atomic_t fscache_n_cache_no_space_reject;
130atomic_t fscache_n_cache_stale_objects;
131atomic_t fscache_n_cache_retired_objects;
132atomic_t fscache_n_cache_culled_objects;
133
134/*
135 * display the general statistics
136 */
137int fscache_stats_show(struct seq_file *m, void *v)
138{
139	seq_puts(m, "FS-Cache statistics\n");
140
141	seq_printf(m, "Cookies: idx=%u dat=%u spc=%u\n",
142		   atomic_read(&fscache_n_cookie_index),
143		   atomic_read(&fscache_n_cookie_data),
144		   atomic_read(&fscache_n_cookie_special));
145
146	seq_printf(m, "Objects: alc=%u nal=%u avl=%u ded=%u\n",
147		   atomic_read(&fscache_n_object_alloc),
148		   atomic_read(&fscache_n_object_no_alloc),
149		   atomic_read(&fscache_n_object_avail),
150		   atomic_read(&fscache_n_object_dead));
151	seq_printf(m, "ChkAux : non=%u ok=%u upd=%u obs=%u\n",
152		   atomic_read(&fscache_n_checkaux_none),
153		   atomic_read(&fscache_n_checkaux_okay),
154		   atomic_read(&fscache_n_checkaux_update),
155		   atomic_read(&fscache_n_checkaux_obsolete));
156
157	seq_printf(m, "Pages  : mrk=%u unc=%u\n",
158		   atomic_read(&fscache_n_marks),
159		   atomic_read(&fscache_n_uncaches));
160
161	seq_printf(m, "Acquire: n=%u nul=%u noc=%u ok=%u nbf=%u"
162		   " oom=%u\n",
163		   atomic_read(&fscache_n_acquires),
164		   atomic_read(&fscache_n_acquires_null),
165		   atomic_read(&fscache_n_acquires_no_cache),
166		   atomic_read(&fscache_n_acquires_ok),
167		   atomic_read(&fscache_n_acquires_nobufs),
168		   atomic_read(&fscache_n_acquires_oom));
169
170	seq_printf(m, "Lookups: n=%u neg=%u pos=%u crt=%u tmo=%u\n",
171		   atomic_read(&fscache_n_object_lookups),
172		   atomic_read(&fscache_n_object_lookups_negative),
173		   atomic_read(&fscache_n_object_lookups_positive),
174		   atomic_read(&fscache_n_object_created),
175		   atomic_read(&fscache_n_object_lookups_timed_out));
176
177	seq_printf(m, "Invals : n=%u run=%u\n",
178		   atomic_read(&fscache_n_invalidates),
179		   atomic_read(&fscache_n_invalidates_run));
180
181	seq_printf(m, "Updates: n=%u nul=%u run=%u\n",
182		   atomic_read(&fscache_n_updates),
183		   atomic_read(&fscache_n_updates_null),
184		   atomic_read(&fscache_n_updates_run));
185
186	seq_printf(m, "Relinqs: n=%u nul=%u wcr=%u rtr=%u\n",
187		   atomic_read(&fscache_n_relinquishes),
188		   atomic_read(&fscache_n_relinquishes_null),
189		   atomic_read(&fscache_n_relinquishes_waitcrt),
190		   atomic_read(&fscache_n_relinquishes_retire));
191
192	seq_printf(m, "AttrChg: n=%u ok=%u nbf=%u oom=%u run=%u\n",
193		   atomic_read(&fscache_n_attr_changed),
194		   atomic_read(&fscache_n_attr_changed_ok),
195		   atomic_read(&fscache_n_attr_changed_nobufs),
196		   atomic_read(&fscache_n_attr_changed_nomem),
197		   atomic_read(&fscache_n_attr_changed_calls));
198
199	seq_printf(m, "Allocs : n=%u ok=%u wt=%u nbf=%u int=%u\n",
200		   atomic_read(&fscache_n_allocs),
201		   atomic_read(&fscache_n_allocs_ok),
202		   atomic_read(&fscache_n_allocs_wait),
203		   atomic_read(&fscache_n_allocs_nobufs),
204		   atomic_read(&fscache_n_allocs_intr));
205	seq_printf(m, "Allocs : ops=%u owt=%u abt=%u\n",
206		   atomic_read(&fscache_n_alloc_ops),
207		   atomic_read(&fscache_n_alloc_op_waits),
208		   atomic_read(&fscache_n_allocs_object_dead));
209
210	seq_printf(m, "Retrvls: n=%u ok=%u wt=%u nod=%u nbf=%u"
211		   " int=%u oom=%u\n",
212		   atomic_read(&fscache_n_retrievals),
213		   atomic_read(&fscache_n_retrievals_ok),
214		   atomic_read(&fscache_n_retrievals_wait),
215		   atomic_read(&fscache_n_retrievals_nodata),
216		   atomic_read(&fscache_n_retrievals_nobufs),
217		   atomic_read(&fscache_n_retrievals_intr),
218		   atomic_read(&fscache_n_retrievals_nomem));
219	seq_printf(m, "Retrvls: ops=%u owt=%u abt=%u\n",
220		   atomic_read(&fscache_n_retrieval_ops),
221		   atomic_read(&fscache_n_retrieval_op_waits),
222		   atomic_read(&fscache_n_retrievals_object_dead));
223
224	seq_printf(m, "Stores : n=%u ok=%u agn=%u nbf=%u oom=%u\n",
225		   atomic_read(&fscache_n_stores),
226		   atomic_read(&fscache_n_stores_ok),
227		   atomic_read(&fscache_n_stores_again),
228		   atomic_read(&fscache_n_stores_nobufs),
229		   atomic_read(&fscache_n_stores_oom));
230	seq_printf(m, "Stores : ops=%u run=%u pgs=%u rxd=%u olm=%u\n",
231		   atomic_read(&fscache_n_store_ops),
232		   atomic_read(&fscache_n_store_calls),
233		   atomic_read(&fscache_n_store_pages),
234		   atomic_read(&fscache_n_store_radix_deletes),
235		   atomic_read(&fscache_n_store_pages_over_limit));
236
237	seq_printf(m, "VmScan : nos=%u gon=%u bsy=%u can=%u wt=%u\n",
238		   atomic_read(&fscache_n_store_vmscan_not_storing),
239		   atomic_read(&fscache_n_store_vmscan_gone),
240		   atomic_read(&fscache_n_store_vmscan_busy),
241		   atomic_read(&fscache_n_store_vmscan_cancelled),
242		   atomic_read(&fscache_n_store_vmscan_wait));
243
244	seq_printf(m, "Ops    : pend=%u run=%u enq=%u can=%u rej=%u\n",
245		   atomic_read(&fscache_n_op_pend),
246		   atomic_read(&fscache_n_op_run),
247		   atomic_read(&fscache_n_op_enqueue),
248		   atomic_read(&fscache_n_op_cancelled),
249		   atomic_read(&fscache_n_op_rejected));
250	seq_printf(m, "Ops    : ini=%u dfr=%u rel=%u gc=%u\n",
251		   atomic_read(&fscache_n_op_initialised),
252		   atomic_read(&fscache_n_op_deferred_release),
253		   atomic_read(&fscache_n_op_release),
254		   atomic_read(&fscache_n_op_gc));
255
256	seq_printf(m, "CacheOp: alo=%d luo=%d luc=%d gro=%d\n",
257		   atomic_read(&fscache_n_cop_alloc_object),
258		   atomic_read(&fscache_n_cop_lookup_object),
259		   atomic_read(&fscache_n_cop_lookup_complete),
260		   atomic_read(&fscache_n_cop_grab_object));
261	seq_printf(m, "CacheOp: inv=%d upo=%d dro=%d pto=%d atc=%d syn=%d\n",
262		   atomic_read(&fscache_n_cop_invalidate_object),
263		   atomic_read(&fscache_n_cop_update_object),
264		   atomic_read(&fscache_n_cop_drop_object),
265		   atomic_read(&fscache_n_cop_put_object),
266		   atomic_read(&fscache_n_cop_attr_changed),
267		   atomic_read(&fscache_n_cop_sync_cache));
268	seq_printf(m, "CacheOp: rap=%d ras=%d alp=%d als=%d wrp=%d ucp=%d dsp=%d\n",
269		   atomic_read(&fscache_n_cop_read_or_alloc_page),
270		   atomic_read(&fscache_n_cop_read_or_alloc_pages),
271		   atomic_read(&fscache_n_cop_allocate_page),
272		   atomic_read(&fscache_n_cop_allocate_pages),
273		   atomic_read(&fscache_n_cop_write_page),
274		   atomic_read(&fscache_n_cop_uncache_page),
275		   atomic_read(&fscache_n_cop_dissociate_pages));
276	seq_printf(m, "CacheEv: nsp=%d stl=%d rtr=%d cul=%d\n",
277		   atomic_read(&fscache_n_cache_no_space_reject),
278		   atomic_read(&fscache_n_cache_stale_objects),
279		   atomic_read(&fscache_n_cache_retired_objects),
280		   atomic_read(&fscache_n_cache_culled_objects));
281	return 0;
282}