Add skc_flags and full header to /proc/spl/kmem/slab.
This commit is contained in:
parent
f60a5f5221
commit
242f539a2e
|
@ -581,7 +581,12 @@ proc_dofreemem(struct ctl_table *table, int write, struct file *filp,
|
|||
static void
|
||||
slab_seq_show_headers(struct seq_file *f)
|
||||
{
|
||||
seq_printf(f, "%-36s\n", "name");
|
||||
seq_printf(f, "%-36s %-6s - %s %s %s - %s %s %s - "
|
||||
"%s %s %s - %s %s %s\n", "name", "flags",
|
||||
"obj_size", "slab_objs", "slab_size",
|
||||
"slab_fail", "slab_create", "slab_destroy",
|
||||
"slab_total", "slab_alloc", "slab_max",
|
||||
"obj_total", "obj_alloc", "obj_max");
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -593,7 +598,9 @@ slab_seq_show(struct seq_file *f, void *p)
|
|||
|
||||
spin_lock(&skc->skc_lock);
|
||||
seq_printf(f, "%-36s ", skc->skc_name);
|
||||
seq_printf(f, "%u %u %u - %lu %lu %lu - %lu %lu %lu - %lu %lu %lu\n",
|
||||
seq_printf(f, "0x%04lx - %u %u %u - %lu %lu %lu - "
|
||||
"%lu %lu %lu - %lu %lu %lu\n",
|
||||
(long unsigned)skc->skc_flags,
|
||||
(unsigned)skc->skc_obj_size,
|
||||
(unsigned)skc->skc_slab_objs,
|
||||
(unsigned)skc->skc_slab_size,
|
||||
|
|
Loading…
Reference in New Issue