File Index
Files and directories
Sign in
FILE

flush_utils.h

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/powerpc/security/flush_utils.h C
 1/* SPDX-License-Identifier: GPL-2.0+ */
 2
 3/*
 4 * Copyright 2018 IBM Corporation.
 5 */
 6
 7#ifndef _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
 8#define _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
 9
10#define CACHELINE_SIZE 128
11
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))
15
16void syscall_loop(char *p, unsigned long iterations,
17		  unsigned long zero_size);
18
19void syscall_loop_uaccess(char *p, unsigned long iterations,
20			  unsigned long zero_size);
21
22void set_dscr(unsigned long val);
23
24#endif /* _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H */
~/ Read-only file preview.