perf tests: Add missing headers so far obtained indirectly
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 2f2ae234e5afea17fa81b83c5b8d0e758a0d0703 Gitweb: https://git.kernel.org/tip/2f2ae234e5afea17fa81b83c5b8d0e758a0d0703 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Sun, 27 Jan 2019 14:08:22 +0100 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 6 Feb 2019 10:00:38 -0300
perf tests: Add missing headers so far obtained indirectly
We're going to remove symbol.h from some places and this breaks some of the perf tests, fix it by adding the required includes.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/sample-parsing.c | 2 ++ tools/perf/tests/sdt.c | 1 + 2 files changed, 3 insertions(+)
tools/perf/tests/sample-parsing.c +2 -0
@@ -1,9 +1,11 @@// SPDX-License-Identifier: GPL-2.0 #include <stdbool.h> #include <inttypes.h> +#include <linux/bitops.h> #include <linux/kernel.h> #include <linux/types.h> +#include "branch.h" #include "util.h" #include "event.h" #include "evsel.h"
tools/perf/tests/sdt.c +1 -0
@@ -3,6 +3,7 @@#include <stdio.h> #include <sys/epoll.h> #include <util/evlist.h> +#include <util/symbol.h> #include <linux/filter.h> #include "tests.h" #include "debug.h"