perf tools: Add include <linux/kernel.h> where ARRAY_SIZE() is used
To pave the way for further cleanups where linux/kernel.h may stop being included in some header. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-qqxan6tfsl6qx3l0v3nwgjvk@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <util/evlist.h>
|
||||
#include <linux/bpf.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <api/fs/fs.h>
|
||||
#include <bpf/bpf.h>
|
||||
#include "tests.h"
|
||||
|
@@ -13,6 +13,7 @@
|
||||
#include "color.h"
|
||||
#include <subcmd/parse-options.h>
|
||||
#include "symbol.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
static bool dont_fork;
|
||||
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "debug.h"
|
||||
#include "util.h"
|
||||
#include "c++/clang-c.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
static struct {
|
||||
int (*func)(void);
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#include <stdlib.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
#include "parse-events.h"
|
||||
#include "tests.h"
|
||||
#include "debug.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
static int perf_evsel__roundtrip_cache_name_test(void)
|
||||
{
|
||||
|
@@ -7,6 +7,7 @@
|
||||
#include "util/machine.h"
|
||||
#include "util/thread.h"
|
||||
#include "tests/hists_common.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
static struct {
|
||||
u32 pid;
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "util/parse-events.h"
|
||||
#include "tests/tests.h"
|
||||
#include "tests/hists_common.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
struct sample {
|
||||
u32 pid;
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "util/parse-events.h"
|
||||
#include "tests/tests.h"
|
||||
#include "tests/hists_common.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
struct sample {
|
||||
u32 pid;
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "thread.h"
|
||||
#include "parse-events.h"
|
||||
#include "hists_common.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
struct sample {
|
||||
u32 pid;
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "util/parse-events.h"
|
||||
#include "tests/tests.h"
|
||||
#include "tests/hists_common.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
struct sample {
|
||||
u32 cpu;
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/kernel.h>
|
||||
#include "tests.h"
|
||||
#include "debug.h"
|
||||
#include "util.h"
|
||||
|
@@ -7,6 +7,7 @@
|
||||
#include "cpumap.h"
|
||||
#include "tests.h"
|
||||
#include <linux/err.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
/*
|
||||
* This test will generate random numbers of calls to some getpid syscalls,
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
#include "parse-events.h"
|
||||
#include "evsel.h"
|
||||
#include "evlist.h"
|
||||
@@ -6,6 +5,7 @@
|
||||
#include "tests.h"
|
||||
#include "debug.h"
|
||||
#include "util.h"
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/hw_breakpoint.h>
|
||||
#include <api/fs/fs.h>
|
||||
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "pmu.h"
|
||||
#include "util.h"
|
||||
#include "tests.h"
|
||||
#include <linux/kernel.h>
|
||||
|
||||
/* Simulated format definitions. */
|
||||
static struct test_format {
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#include <stdbool.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "util.h"
|
||||
|
Reference in New Issue
Block a user