Skip to content

Commit 8f651ea

Browse files
committed
perf callchain: Move the callchain_param extern to callchain.h
It was lost in hist.h, move it to where it belongs, callchain.h, as there are places that gets hist.h by means of evsel.h, and since evsel.h is being untangled from hist.h... Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jean Pihet <jean.pihet@linaro.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-0rg7ji1jnbm6q6gj35j37jby@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent ce8ccff commit 8f651ea

5 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎tools/perf/builtin-record.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "util/parse-options.h"
1515
#include "util/parse-events.h"
1616

17+
#include "util/callchain.h"
1718
#include "util/header.h"
1819
#include "util/event.h"
1920
#include "util/evlist.h"

‎tools/perf/util/callchain.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ struct callchain_param {
6565
enum chain_key key;
6666
};
6767

68+
extern struct callchain_param callchain_param;
69+
6870
struct callchain_list {
6971
u64 ip;
7072
struct map_symbol ms;

‎tools/perf/util/evsel.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/perf_event.h>
1616
#include <sys/resource.h>
1717
#include "asm/bug.h"
18+
#include "callchain.h"
1819
#include "evsel.h"
1920
#include "evlist.h"
2021
#include "util.h"

‎tools/perf/util/hist.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include "color.h"
99
#include "ui/progress.h"
1010

11-
extern struct callchain_param callchain_param;
12-
1311
struct hist_entry;
1412
struct addr_location;
1513
struct symbol;

‎tools/perf/util/scripting-engines/trace-event-python.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include "../../perf.h"
3030
#include "../debug.h"
31+
#include "../callchain.h"
3132
#include "../evsel.h"
3233
#include "../util.h"
3334
#include "../event.h"

0 commit comments

Comments
 (0)