[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1273730632-21008-6-git-send-email-imunsie@au1.ibm.com>
Date: Thu, 13 May 2010 16:03:50 +1000
From: "Ian Munsie" <imunsie@....ibm.com>
To: linux-kernel@...r.kernel.org
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>, Ingo Molnar <mingo@...e.hu>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
Ian Munsie <imunsie@....ibm.com>,
Tom Zanussi <tzanussi@...il.com>,
Xiao Guangrong <xiaoguangrong@...fujitsu.com>
Subject: [PATCH 5/7] perf trace: use long_size from trace-event-read
From: Ian Munsie <imunsie@....ibm.com>
long_size was not being initialised in trace-event-parse, which caused a
few bugs. This patch makes it use the long_size from trace-event-read.
Signed-off-by: Ian Munsie <imunsie@....ibm.com>
---
tools/perf/util/trace-event-parse.c | 2 +-
tools/perf/util/trace-event-read.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c
index 950c757..f9f80be 100644
--- a/tools/perf/util/trace-event-parse.c
+++ b/tools/perf/util/trace-event-parse.c
@@ -52,7 +52,7 @@ static unsigned long long input_buf_ptr;
static unsigned long long input_buf_siz;
static int cpus;
-static int long_size;
+extern int long_size;
static int is_flag_field;
static int is_symbolic_field;
diff --git a/tools/perf/util/trace-event-read.c b/tools/perf/util/trace-event-read.c
index 43f19c1..de30159 100644
--- a/tools/perf/util/trace-event-read.c
+++ b/tools/perf/util/trace-event-read.c
@@ -46,7 +46,7 @@ static int read_page;
int file_bigendian;
int host_bigendian;
-static int long_size;
+int long_size;
static unsigned long page_size;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists