[PATCH 5/7] perf trace: use long_size from trace-event-read

From: Ian Munsie
Date: Thu May 13 2010 - 02:05:24 EST


From: Ian Munsie <imunsie@xxxxxxxxxxx>

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@xxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/