aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-22 14:40:29 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-26 10:58:22 -0400
commitaeb00b1aeab6dadd72c24f93bea51a46e109c2ba (patch)
tree892b5327ab415f62b61dcd39d6400eb66ef47e6d /tools/perf/tests
parent38b7b678fe989f9c403c001d96887939aaa1b68a (diff)
perf record: Move record_opts and other record decls out of perf.h
And into a separate util/record.h, to better isolate things and make sure that those who use record_opts and the other moved declarations are explicitly including the necessary header. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-31q8mei1qkh74qvkl9nwidfq@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r--tools/perf/tests/backward-ring-buffer.c2
-rw-r--r--tools/perf/tests/bpf.c1
-rw-r--r--tools/perf/tests/code-reading.c1
-rw-r--r--tools/perf/tests/keep-tracking.c1
-rw-r--r--tools/perf/tests/openat-syscall-tp-fields.c3
-rw-r--r--tools/perf/tests/perf-record.c2
-rw-r--r--tools/perf/tests/switch-tracking.c1
-rw-r--r--tools/perf/tests/task-exit.c1
8 files changed, 9 insertions, 3 deletions
diff --git a/tools/perf/tests/backward-ring-buffer.c b/tools/perf/tests/backward-ring-buffer.c
index 9bdf66139099..b6f27ef9fb02 100644
--- a/tools/perf/tests/backward-ring-buffer.c
+++ b/tools/perf/tests/backward-ring-buffer.c
@@ -4,9 +4,9 @@
4 * beginning 4 * beginning
5 */ 5 */
6 6
7#include <perf.h>
8#include <evlist.h> 7#include <evlist.h>
9#include <sys/prctl.h> 8#include <sys/prctl.h>
9#include "record.h"
10#include "tests.h" 10#include "tests.h"
11#include "debug.h" 11#include "debug.h"
12#include <errno.h> 12#include <errno.h>
diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c
index e16f927f38b6..98642961fc63 100644
--- a/tools/perf/tests/bpf.c
+++ b/tools/perf/tests/bpf.c
@@ -5,6 +5,7 @@
5#include <sys/types.h> 5#include <sys/types.h>
6#include <sys/stat.h> 6#include <sys/stat.h>
7#include <fcntl.h> 7#include <fcntl.h>
8#include <util/record.h>
8#include <util/util.h> 9#include <util/util.h>
9#include <util/bpf-loader.h> 10#include <util/bpf-loader.h>
10#include <util/evlist.h> 11#include <util/evlist.h>
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
index e45df0736261..fe671b860086 100644
--- a/tools/perf/tests/code-reading.c
+++ b/tools/perf/tests/code-reading.c
@@ -20,6 +20,7 @@
20#include "map.h" 20#include "map.h"
21#include "symbol.h" 21#include "symbol.h"
22#include "event.h" 22#include "event.h"
23#include "record.h"
23#include "thread.h" 24#include "thread.h"
24 25
25#include "tests.h" 26#include "tests.h"
diff --git a/tools/perf/tests/keep-tracking.c b/tools/perf/tests/keep-tracking.c
index 0ce5ce33bac4..2af6faf1bbd6 100644
--- a/tools/perf/tests/keep-tracking.c
+++ b/tools/perf/tests/keep-tracking.c
@@ -8,6 +8,7 @@
8#include "parse-events.h" 8#include "parse-events.h"
9#include "evlist.h" 9#include "evlist.h"
10#include "evsel.h" 10#include "evsel.h"
11#include "record.h"
11#include "thread_map.h" 12#include "thread_map.h"
12#include "cpumap.h" 13#include "cpumap.h"
13#include "tests.h" 14#include "tests.h"
diff --git a/tools/perf/tests/openat-syscall-tp-fields.c b/tools/perf/tests/openat-syscall-tp-fields.c
index 9c06130d37be..62492106fb5e 100644
--- a/tools/perf/tests/openat-syscall-tp-fields.c
+++ b/tools/perf/tests/openat-syscall-tp-fields.c
@@ -1,12 +1,13 @@
1// SPDX-License-Identifier: GPL-2.0 1// SPDX-License-Identifier: GPL-2.0
2#include <stdbool.h>
2#include <linux/err.h> 3#include <linux/err.h>
3#include <sys/types.h> 4#include <sys/types.h>
4#include <sys/stat.h> 5#include <sys/stat.h>
5#include <fcntl.h> 6#include <fcntl.h>
6#include "perf.h"
7#include "evlist.h" 7#include "evlist.h"
8#include "evsel.h" 8#include "evsel.h"
9#include "thread_map.h" 9#include "thread_map.h"
10#include "record.h"
10#include "tests.h" 11#include "tests.h"
11#include "debug.h" 12#include "debug.h"
12#include <errno.h> 13#include <errno.h>
diff --git a/tools/perf/tests/perf-record.c b/tools/perf/tests/perf-record.c
index 67b388e92cba..3a205f6f9363 100644
--- a/tools/perf/tests/perf-record.c
+++ b/tools/perf/tests/perf-record.c
@@ -7,8 +7,8 @@
7#include <sched.h> 7#include <sched.h>
8#include "evlist.h" 8#include "evlist.h"
9#include "evsel.h" 9#include "evsel.h"
10#include "perf.h"
11#include "debug.h" 10#include "debug.h"
11#include "record.h"
12#include "tests.h" 12#include "tests.h"
13 13
14static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) 14static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp)
diff --git a/tools/perf/tests/switch-tracking.c b/tools/perf/tests/switch-tracking.c
index e3cee69f6ea2..b63f02768724 100644
--- a/tools/perf/tests/switch-tracking.c
+++ b/tools/perf/tests/switch-tracking.c
@@ -13,6 +13,7 @@
13#include "evsel.h" 13#include "evsel.h"
14#include "thread_map.h" 14#include "thread_map.h"
15#include "cpumap.h" 15#include "cpumap.h"
16#include "record.h"
16#include "tests.h" 17#include "tests.h"
17 18
18static int spin_sleep(void) 19static int spin_sleep(void)
diff --git a/tools/perf/tests/task-exit.c b/tools/perf/tests/task-exit.c
index 4ca38fd0379a..d79a22e2d8be 100644
--- a/tools/perf/tests/task-exit.c
+++ b/tools/perf/tests/task-exit.c
@@ -1,6 +1,7 @@
1// SPDX-License-Identifier: GPL-2.0 1// SPDX-License-Identifier: GPL-2.0
2#include "evlist.h" 2#include "evlist.h"
3#include "evsel.h" 3#include "evsel.h"
4#include "target.h"
4#include "thread_map.h" 5#include "thread_map.h"
5#include "cpumap.h" 6#include "cpumap.h"
6#include "tests.h" 7#include "tests.h"