Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / testing / selftests / powerpc / security / flush_utils.h
blobe1e68281f7ac2e91030b4a4358b3dafbe4d89a07
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 /*
4 * Copyright 2018 IBM Corporation.
5 */
7 #ifndef _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
8 #define _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
10 #define CACHELINE_SIZE 128
12 #define PERF_L1D_READ_MISS_CONFIG ((PERF_COUNT_HW_CACHE_L1D) | \
13 (PERF_COUNT_HW_CACHE_OP_READ << 8) | \
14 (PERF_COUNT_HW_CACHE_RESULT_MISS << 16))
16 void syscall_loop(char *p, unsigned long iterations,
17 unsigned long zero_size);
19 void syscall_loop_uaccess(char *p, unsigned long iterations,
20 unsigned long zero_size);
22 void set_dscr(unsigned long val);
24 #endif /* _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H */