![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * Fault Injection Test harness (FI) 0004 * Copyright (C) Intel Crop. 0005 */ 0006 0007 #ifndef __PF_H_ 0008 #define __PF_H_ 0009 0010 enum reason_type { 0011 NOT_ME, /* page fault is not in regions */ 0012 NOTHING, /* access others point in regions */ 0013 REG_READ, /* read from addr to reg */ 0014 REG_WRITE, /* write from reg to addr */ 0015 IMM_WRITE, /* write from imm to addr */ 0016 OTHERS /* Other instructions can not intercept */ 0017 }; 0018 0019 enum reason_type get_ins_type(unsigned long ins_addr); 0020 unsigned int get_ins_mem_width(unsigned long ins_addr); 0021 unsigned long get_ins_reg_val(unsigned long ins_addr, struct pt_regs *regs); 0022 unsigned long get_ins_imm_val(unsigned long ins_addr); 0023 0024 #endif /* __PF_H_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |