Skip to contentSkip to conversation

perf unwind: Provide only forward declarations for pointer types

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Apr 24, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  3dfed9102694227aa763b9984c50d72de796d39b
Gitweb:     http://git.kernel.org/tip/3dfed9102694227aa763b9984c50d72de796d39b
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Wed, 19 Apr 2017 13:28:30 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 20 Apr 2017 13:22:43 -0300

perf unwind: Provide only forward declarations for pointer types

No need to drag the headers, helps in untangling them and reducing build time.

---
 tools/perf/util/unwind.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
tools/perf/util/unwind.h +6 -3
index 61fb1e9..bfbdcc6 100644
@@ -1,10 +1,13 @@
 #ifndef __UNWIND_H
 #define __UNWIND_H
 
+#include <linux/compiler.h>
 #include <linux/types.h>
-#include "event.h"
-#include "symbol.h"
-#include "thread.h"
+
+struct map;
+struct perf_sample;
+struct symbol;
+struct thread;
 
 struct unwind_entry {
 	struct map	*map;