Skip to contentSkip to conversation

perf namespaces: Add more appropriate set of headers

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

lore
Share & tools
lore
#0 lore raw
Commit-ID:  b1f03ca4ee784390457dfb2009601cd7dcac025e
Gitweb:     https://git.kernel.org/tip/b1f03ca4ee784390457dfb2009601cd7dcac025e
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 19 Oct 2017 15:11:17 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 23 Oct 2017 16:30:54 -0300

perf namespaces: Add more appropriate set of headers

We don't need perf.h, that is a kitchen sink, all we need is perf_events.h for perf_ns_link_info, sys/types.h for pid_t and linux/types.h for u64, list_head.

---
 tools/perf/util/namespaces.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tools/perf/util/namespaces.h +3 -2
index 05d8260..760558d 100644
@@ -9,9 +9,10 @@
 #ifndef __PERF_NAMESPACES_H
 #define __PERF_NAMESPACES_H
 
-#include "../perf.h"
-#include <linux/list.h>
+#include <sys/types.h>
+#include <linux/perf_event.h>
 #include <linux/refcount.h>
+#include <linux/types.h>
 
 struct namespaces_event;