1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* 3 * Fault Injection Test harness (FI) 4 * Copyright (C) Intel Crop. 5 */ 6 7 #ifndef __PF_H_ 8 #define __PF_H_ 9 10 enum reason_type { 11 NOT_ME, /* page fault is not in region 12 NOTHING, /* access others point 13 REG_READ, /* read from addr to r 14 REG_WRITE, /* write from reg to a 15 IMM_WRITE, /* write from imm to a 16 OTHERS /* Other instructions can not 17 }; 18 19 enum reason_type get_ins_type(unsigned long in 20 unsigned int get_ins_mem_width(unsigned long i 21 unsigned long get_ins_reg_val(unsigned long in 22 unsigned long get_ins_imm_val(unsigned long in 23 24 #endif /* __PF_H_ */ 25
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.