aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/include
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2020-11-17 16:59:15 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2020-11-19 23:47:23 +1100
commit0d239f3b03efc78fb5b290aff6c747fecd3b98cb (patch)
tree394f601c1777fb63ba77e10e92ad1d4d155c5c4d /tools/testing/selftests/powerpc/include
parentselftests/powerpc: entry flush test (diff)
downloadlinux-dev-0d239f3b03efc78fb5b290aff6c747fecd3b98cb.tar.xz
linux-dev-0d239f3b03efc78fb5b290aff6c747fecd3b98cb.zip
selftests/powerpc: refactor entry and rfi_flush tests
For simplicity in backporting, the original entry_flush test contained a lot of duplicated code from the rfi_flush test. De-duplicate that code. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/include')
-rw-r--r--tools/testing/selftests/powerpc/include/utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/include/utils.h b/tools/testing/selftests/powerpc/include/utils.h
index 052b5a775dc2..b7d188fc87c7 100644
--- a/tools/testing/selftests/powerpc/include/utils.h
+++ b/tools/testing/selftests/powerpc/include/utils.h
@@ -42,6 +42,11 @@ int perf_event_enable(int fd);
int perf_event_disable(int fd);
int perf_event_reset(int fd);
+struct perf_event_read {
+ __u64 nr;
+ __u64 l1d_misses;
+};
+
#if !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2, 30)
#include <unistd.h>
#include <sys/syscall.h>