aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-09-24 17:24:00 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-01 02:46:15 -0400
commit2ccdc450e658053681202d42ac64b3638f22dc1a (patch)
tree58ca06856642b491bb6dc4cd0e9205a6a05f0242 /tools/perf/builtin-top.c
parentcad3071424edd7854f63aa80d09473e84f49ed79 (diff)
perf top: Remove dead {min,max}_ip unused variables
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <20090924212400.GA15321@ghostprotocols.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 1ca88896eee4..bf464ce7e3e2 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -96,9 +96,6 @@ static int display_weighted = -1;
96 * Symbols 96 * Symbols
97 */ 97 */
98 98
99static u64 min_ip;
100static u64 max_ip = -1ll;
101
102struct sym_entry { 99struct sym_entry {
103 struct rb_node rb_node; 100 struct rb_node rb_node;
104 struct list_head node; 101 struct list_head node;
@@ -826,8 +823,6 @@ static int symbol_filter(struct dso *self, struct symbol *sym)
826 823
827static int parse_symbols(void) 824static int parse_symbols(void)
828{ 825{
829 struct rb_node *node;
830 struct symbol *sym;
831 int use_modules = vmlinux_name ? 1 : 0; 826 int use_modules = vmlinux_name ? 1 : 0;
832 827
833 kernel_dso = dso__new("[kernel]", sizeof(struct sym_entry)); 828 kernel_dso = dso__new("[kernel]", sizeof(struct sym_entry));
@@ -837,14 +832,6 @@ static int parse_symbols(void)
837 if (dso__load_kernel(kernel_dso, vmlinux_name, symbol_filter, verbose, use_modules) <= 0) 832 if (dso__load_kernel(kernel_dso, vmlinux_name, symbol_filter, verbose, use_modules) <= 0)
838 goto out_delete_dso; 833 goto out_delete_dso;
839 834
840 node = rb_first(&kernel_dso->syms);
841 sym = rb_entry(node, struct symbol, rb_node);
842 min_ip = sym->start;
843
844 node = rb_last(&kernel_dso->syms);
845 sym = rb_entry(node, struct symbol, rb_node);
846 max_ip = sym->end;
847
848 if (dump_symtab) 835 if (dump_symtab)
849 dso__fprintf(kernel_dso, stderr); 836 dso__fprintf(kernel_dso, stderr);
850 837