summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-02-04 10:33:24 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-02-05 15:26:40 +0100
commit764328d3209dd81b02a55722556b07b6f35e3ca0 (patch)
treed2490d612488c220da32cf96f0ce798ea8a75e2a /tools/perf/builtin-top.c
parentperf: Cure task_oncpu_function_call() races (diff)
downloadlinux-764328d3209dd81b02a55722556b07b6f35e3ca0.tar.xz
linux-764328d3209dd81b02a55722556b07b6f35e3ca0.zip
perf top: Remove superfluous name_len field
From the sym_entry struct, struct symbol already has this field. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 104de9ab314c..154e088588bc 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -787,9 +787,6 @@ static int symbol_filter(struct map *map, struct symbol *sym)
}
}
- if (!syme->skip)
- syme->name_len = strlen(sym->name);
-
return 0;
}