[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-zivvqfx93w5zzur7hr7h0nlh@git.kernel.org>
Date: Sat, 9 Feb 2019 04:36:38 -0800
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: acme@...hat.com, mingo@...nel.org, namhyung@...nel.org,
linux-kernel@...r.kernel.org, jolsa@...nel.org, hpa@...or.com,
tglx@...utronix.de, adrian.hunter@...el.com
Subject: [tip:perf/core] perf hist: Remove the needless callchain.h include
from hist.h
Commit-ID: 71551288d2fde0c24df3c248e3e80be92783376d
Gitweb: https://git.kernel.org/tip/71551288d2fde0c24df3c248e3e80be92783376d
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Tue, 29 Jan 2019 12:04:58 +0100
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Wed, 6 Feb 2019 10:00:38 -0300
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 <adrian.hunter@...el.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Namhyung Kim <namhyung@...nel.org>
Link: https://lkml.kernel.org/n/tip-zivvqfx93w5zzur7hr7h0nlh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/hist.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
Powered by blists - more mailing lists