diff options
author | Pekka Enberg <penberg@kernel.org> | 2012-12-18 12:35:44 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-12-18 12:35:44 +0200 |
commit | a304f836a2e6d257c1f918b3431f97ef6b33e02e (patch) | |
tree | ad1967fbc0c31ede4ca2a2289992fa9893942cc1 /mm/slab.h | |
parent | 29594404d7fe73cd80eaa4ee8c43dcc53970c60e (diff) | |
parent | 0d7561c61d76690ed84bd1016acc0fcbff063205 (diff) |
Merge branch 'slab/procfs' into slab/for-linus
Diffstat (limited to 'mm/slab.h')
-rw-r--r-- | mm/slab.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h index 7deeb449a301..5a43c2f13621 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -47,4 +47,24 @@ static inline struct kmem_cache *__kmem_cache_alias(const char *name, size_t siz int __kmem_cache_shutdown(struct kmem_cache *); +struct seq_file; +struct file; + +struct slabinfo { + unsigned long active_objs; + unsigned long num_objs; + unsigned long active_slabs; + unsigned long num_slabs; + unsigned long shared_avail; + unsigned int limit; + unsigned int batchcount; + unsigned int shared; + unsigned int objects_per_slab; + unsigned int cache_order; +}; + +void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo); +void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s); +ssize_t slabinfo_write(struct file *file, const char __user *buffer, + size_t count, loff_t *ppos); #endif |