perf script: Adopt latency_format variable
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 4 Jun 2013 05:20:28 +0000 (14:20 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jul 2013 16:52:28 +0000 (13:52 -0300)
It's the only user of the variable, so move it.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1370323231-14022-14-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c
tools/perf/util/trace-event-parse.c
tools/perf/util/trace-event.h

index 92d4658f56fb55a93415dbccb441c552724b0402..3de8979fe87d328b4f75d08633477d91390b3e49 100644 (file)
@@ -24,6 +24,7 @@ static u64                    last_timestamp;
 static u64                     nr_unordered;
 extern const struct option     record_options[];
 static bool                    no_callchain;
+static bool                    latency_format;
 static bool                    system_wide;
 static const char              *cpu_list;
 static DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
index 0deae885c7ba9269126a84f265ecbdfd464f9328..fe7a27d67d2b7af23a596683509769a4f1bd6e38 100644 (file)
@@ -28,8 +28,6 @@
 #include "util.h"
 #include "trace-event.h"
 
-bool latency_format;
-
 struct pevent *read_trace_init(int file_bigendian, int host_bigendian)
 {
        struct pevent *pevent = pevent_alloc();
index 761c4846e0c74d5136953f2df8f680b85d006085..ed30c9c09cd0796f203f5707e7f7db4130085f27 100644 (file)
@@ -10,7 +10,6 @@ struct perf_sample;
 union perf_event;
 struct perf_tool;
 
-extern bool latency_format;
 extern struct pevent *perf_pevent;
 
 enum {