perf script: Adopt latency_format variable
authorNamhyung Kim <[email protected]>
Tue, 4 Jun 2013 05:20:28 +0000 (14:20 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
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 <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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 {