From: Arnaldo Carvalho de Melo on
From: Arnaldo Carvalho de Melo <acme(a)>

Will be used by the newt code too.

Cc: Frédéric Weisbecker <fweisbec(a)>
Cc: Mike Galbraith <efault(a)>
Cc: Peter Zijlstra <a.p.zijlstra(a)>
Cc: Paul Mackerras <paulus(a)>
Signed-off-by: Arnaldo Carvalho de Melo <acme(a)>
tools/perf/builtin-top.c | 2 +-
tools/perf/perf.h | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index ec48223..57e232f 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -133,7 +133,7 @@ static inline struct symbol *sym_entry__symbol(struct sym_entry *self)
return ((void *)self) + symbol_conf.priv_size;

-static void get_term_dimensions(struct winsize *ws)
+void get_term_dimensions(struct winsize *ws)
char *s = getenv("LINES");

diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 6fb379b..aa78615 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -1,6 +1,10 @@
#ifndef _PERF_PERF_H
#define _PERF_PERF_H

+struct winsize;
+void get_term_dimensions(struct winsize *ws);
#if defined(__i386__)
#include "../../arch/x86/include/asm/unistd.h"
#define rmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory")

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at