aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-01-29 12:04:58 +0100
committerArnaldo Carvalho de Melo <[email protected]>2019-02-06 10:00:38 -0300
commit71551288d2fde0c24df3c248e3e80be92783376d (patch)
treebcb2ba48bf9fc82ef38e89e46112ca38c2a74d90
parentb10ba7f1a278ce04d272b2b662f231552ab000ee (diff)
perf hist: Remove the needless callchain.h include from hist.h
Nothing that is provided by callchain.h is used there, just things that should've be directly included in hist.h, such as rbtree.h and a map_symbol forward declaration. Remove it so that we reduce the headers dependency tree. Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/hist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 38a72eb81427..6b872079ead5 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -2,9 +2,9 @@
#ifndef __PERF_HIST_H
#define __PERF_HIST_H
+#include <linux/rbtree.h>
#include <linux/types.h>
#include <pthread.h>
-#include "callchain.h"
#include "evsel.h"
#include "header.h"
#include "color.h"
@@ -13,6 +13,7 @@
struct hist_entry;
struct hist_entry_ops;
struct addr_location;
+struct map_symbol;
struct mem_info;
struct branch_info;
struct symbol;