lkml.org 
[lkml]   [2010]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] Tools perf builtin-trace.c: #includes cleanup
Date
Removed util/exec_cmd.h and util/trace-event.h included more than once.
Grouped and ordered includes.

Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
---
tools/perf/builtin-trace.c | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 407041d..c743c86 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -1,13 +1,16 @@
#include "builtin.h"
+#include "perf.h"

-#include "util/util.h"
#include "util/cache.h"
+#include "util/debug.h"
+#include "util/exec_cmd.h"
+#include "util/header.h"
+#include "util/parse-options.h"
+#include "util/session.h"
#include "util/symbol.h"
#include "util/thread.h"
-#include "util/header.h"
-#include "util/exec_cmd.h"
#include "util/trace-event.h"
-#include "util/session.h"
+#include "util/util.h"

static char const *script_name;
static char const *generate_script_lang;
@@ -54,14 +57,6 @@ static int cleanup_scripting(void)
return scripting_ops->stop_script();
}

-#include "util/parse-options.h"
-
-#include "perf.h"
-#include "util/debug.h"
-
-#include "util/trace-event.h"
-#include "util/exec_cmd.h"
-
static char const *input_name = "perf.data";

static int process_sample_event(event_t *event, struct perf_session *session)
--
1.7.0.3.296.g9776a


\
 
 \ /
  Last update: 2010-03-26 14:51    [from the cache]
©2003-2011 Jasper Spaans