[tip:perf/core] perf tools: Fix include header files in util/parse-events.h

From: tip-bot for Robert Richter
Date: Fri May 11 2012 - 02:27:18 EST

Commit-ID: c651214e90e5c150015f7524a6bfc298ad61435f
Gitweb: http://git.kernel.org/tip/c651214e90e5c150015f7524a6bfc298ad61435f
Author: Robert Richter <robert.richter@xxxxxxx>
AuthorDate: Thu, 5 Apr 2012 18:26:25 +0200
Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
CommitDate: Wed, 2 May 2012 15:14:35 -0300

perf tools: Fix include header files in util/parse-events.h

Include header fixes for

... bool:

util/parse-events.h:31: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âhave_tracepointsâ

... and types.h:

util/parse-events.h:28: error: expected â)â before âconfigâ
util/parse-events.h:34: error: expected declaration specifiers or â...â before âu64â
util/parse-events.h:45: error: expected â)â before âtypeâ

This happens if now other include files are included before

Signed-off-by: Robert Richter <robert.richter@xxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Link: http://lkml.kernel.org/r/1333643188-26895-2-git-send-email-robert.richter@xxxxxxx
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
tools/perf/util/parse-events.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h
index ca069f8..5cb0028 100644
--- a/tools/perf/util/parse-events.h
+++ b/tools/perf/util/parse-events.h
@@ -4,7 +4,9 @@
* Parse symbolic events/counts passed in as options:

+#include <stdbool.h>
#include "../../../include/linux/perf_event.h"
+#include "types.h"

struct list_head;
struct perf_evsel;
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/