perf top: Export get_window_dimensions
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 11 Mar 2010 23:12:41 +0000 (20:12 -0300)
committerIngo Molnar <mingo@elte.hu>
Fri, 12 Mar 2010 09:28:36 +0000 (10:28 +0100)
Will be used by the newt code too.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1268349164-5822-2-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-top.c
tools/perf/perf.h

index ec4822322abd7fb4db17a13af5da5ff17629d551..57e232f13bc11cec0feb8d8feb7a100a46dbe007 100644 (file)
@@ -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");
 
index 6fb379bc1d1fec0c4c9384fdf2e301d4445a8a01..aa786158b66814c66a1a86baa4edea6b1097aef2 100644 (file)
@@ -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")