diff options
author | Daniel Axtens <dja@axtens.net> | 2020-11-17 16:59:15 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-11-19 23:47:23 +1100 |
commit | 0d239f3b03efc78fb5b290aff6c747fecd3b98cb (patch) | |
tree | 394f601c1777fb63ba77e10e92ad1d4d155c5c4d /tools/testing/selftests/powerpc/include/utils.h | |
parent | 89a83a0c69c81a25ce91002b90ca27ed86132a0a (diff) |
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/utils.h')
-rw-r--r-- | tools/testing/selftests/powerpc/include/utils.h | 5 |
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> |