Skip to contentSkip to conversation

perf tests: Add missing counts.h

tip: perf/core tip-bot2 for Arnaldo Carvalho de Melo 1 participant 1 message Aug 23, 2019 1 message not in the archive perf events

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

tip-bot2 for Arnaldo Carvalho de Melo

author merge bot Applied
#1 lore raw

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     e4aec1b1bdad744f3afc3ebf2b337ac1bcfa9be0
Gitweb:        https://git.kernel.org/tip/e4aec1b1bdad744f3afc3ebf2b337ac1bcfa9be0
Author:        Arnaldo Carvalho de Melo <[email protected]>
AuthorDate:    Wed, 21 Aug 2019 14:01:24 -03:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Thu, 22 Aug 2019 17:16:57 -03:00

perf tests: Add missing counts.h

Those are getting counts.h via evsel.h, that don't strictly need counts.h, just forward declarations for some structs, so add it here before we remove it from there.

---
 tools/perf/tests/openat-syscall-all-cpus.c | 1 +
 tools/perf/tests/openat-syscall.c          | 1 +
 2 files changed, 2 insertions(+)
tools/perf/tests/openat-syscall-all-cpus.c +1 -0
index 8322b6a..4ae4dea 100644
@@ -16,6 +16,7 @@
 #include "cpumap.h"
 #include "debug.h"
 #include "stat.h"
+#include "util/counts.h"
 
 int test__openat_syscall_event_on_all_cpus(struct test *test __maybe_unused, int subtest __maybe_unused)
 {
tools/perf/tests/openat-syscall.c +1 -0
index f217972..58df4bd 100644
@@ -10,6 +10,7 @@
 #include "evsel.h"
 #include "debug.h"
 #include "tests.h"
+#include "util/counts.h"
 
 int test__openat_syscall_event(struct test *test __maybe_unused, int subtest __maybe_unused)
 {