aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 1115e2065bfc..acda7e2d66e4 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4432,16 +4432,12 @@ static void handle_slab(unsigned long *n, struct kmem_cache *c, struct slab *s)
4432static void show_symbol(struct seq_file *m, unsigned long address) 4432static void show_symbol(struct seq_file *m, unsigned long address)
4433{ 4433{
4434#ifdef CONFIG_KALLSYMS 4434#ifdef CONFIG_KALLSYMS
4435 char *modname;
4436 const char *name;
4437 unsigned long offset, size; 4435 unsigned long offset, size;
4438 char namebuf[KSYM_NAME_LEN+1]; 4436 char modname[MODULE_NAME_LEN + 1], name[KSYM_NAME_LEN + 1];
4439
4440 name = kallsyms_lookup(address, &size, &offset, &modname, namebuf);
4441 4437
4442 if (name) { 4438 if (lookup_symbol_attrs(address, &size, &offset, modname, name) == 0) {
4443 seq_printf(m, "%s+%#lx/%#lx", name, offset, size); 4439 seq_printf(m, "%s+%#lx/%#lx", name, offset, size);
4444 if (modname) 4440 if (modname[0])
4445 seq_printf(m, " [%s]", modname); 4441 seq_printf(m, " [%s]", modname);
4446 return; 4442 return;
4447 } 4443 }