/freebsd/sys/i386/i386/ |
H A D | trap.c | 127 [T_PRIVINFLT] = { .ei = true, .msg = "privileged instruction fault" }, 128 [T_BPTFLT] = { .ei = false, .msg = "breakpoint instruction fault" }, 130 [T_PROTFLT] = { .ei = true, .msg = "general protection fault" }, 132 [T_PAGEFLT] = { .ei = true, .msg = "page fault" }, 133 [T_ALIGNFLT] = { .ei = true, .msg = "alignment fault" }, 134 [T_DIVIDE] = { .ei = true, .msg = "integer divide fault" }, 137 [T_BOUND] = { .ei = true, .msg = "FPU bounds check fault" }, 139 [T_DOUBLEFLT] = { .ei = false, .msg = "double fault" }, 140 [T_FPOPFLT] = { .ei = true, .msg = "FPU operand fetch fault" }, 141 [T_TSSFLT] = { .ei = true, .msg = "invalid TSS fault" }, [all …]
|
/freebsd/sys/x86/include/ |
H A D | trap.h | 46 #define T_PROTFLT 9 /* protection fault */ 48 #define T_PAGEFLT 12 /* page fault */ 49 #define T_ALIGNFLT 14 /* alignment fault */ 51 #define T_DIVIDE 18 /* integer divide fault */ 54 #define T_BOUND 21 /* bound instruction fault */ 55 #define T_DNA 22 /* device not available fault */ 56 #define T_DOUBLEFLT 23 /* double fault */ 57 #define T_FPOPFLT 24 /* fp coprocessor operand fetch fault */ 58 #define T_TSSFLT 25 /* invalid tss fault */ 59 #define T_SEGNPFLT 26 /* segment not present fault */ [all …]
|
/freebsd/sys/amd64/amd64/ |
H A D | trap.c | 120 [T_PRIVINFLT] = "privileged instruction fault", 122 [T_BPTFLT] = "breakpoint instruction fault", 128 [T_PROTFLT] = "general protection fault", 131 [T_PAGEFLT] = "page fault", 133 [T_ALIGNFLT] = "alignment fault", 137 [T_DIVIDE] = "integer divide fault", 140 [T_BOUND] = "FPU bounds check fault", 142 [T_DOUBLEFLT] = "double fault", 143 [T_FPOPFLT] = "FPU operand fetch fault", 144 [T_TSSFLT] = "invalid TSS fault", [all …]
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | cpuvar_defs.h | 33 #define CPU_DTRACE_NOFAULT 0x0001 /* Don't fault */ 35 #define CPU_DTRACE_BADADDR 0x0004 /* DTrace fault: bad address */ 36 #define CPU_DTRACE_BADALIGN 0x0008 /* DTrace fault: bad alignment */ 37 #define CPU_DTRACE_DIVZERO 0x0010 /* DTrace fault: divide by zero */ 38 #define CPU_DTRACE_ILLOP 0x0020 /* DTrace fault: illegal operation */ 39 #define CPU_DTRACE_NOSCRATCH 0x0040 /* DTrace fault: out of scratch */ 40 #define CPU_DTRACE_KPRIV 0x0080 /* DTrace fault: bad kernel access */ 41 #define CPU_DTRACE_UPRIV 0x0100 /* DTrace fault: bad user access */ 42 #define CPU_DTRACE_TUPOFLOW 0x0200 /* DTrace fault: tuple stack overflow */ 47 #define CPU_DTRACE_BADSTACK 0x1000 /* DTrace fault: bad stack */
|
/freebsd/sys/riscv/riscv/ |
H A D | support.S | 58 la a6, fsu_fault /* Load the fault handler */ 67 SET_FAULT_HANDLER(x0, a6) /* Reset the fault handler */ 79 la a6, fsu_fault /* Load the fault handler */ 88 SET_FAULT_HANDLER(x0, a6) /* Reset the fault handler */ 100 la a6, fsu_fault /* Load the fault handler */ 105 SET_FAULT_HANDLER(x0, a1) /* Reset the fault handler */ 115 la a6, fsu_fault /* Load the fault handler */ 120 SET_FAULT_HANDLER(x0, a1) /* Reset the fault handler */ 130 la a6, fsu_fault /* Load the fault handler */ 135 SET_FAULT_HANDLER(x0, a2) /* Reset the fault handler */ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/ |
H A D | auto_spare_001_pos.ksh | 23 . $STF_SUITE/tests/functional/fault/fault.cfg 27 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 36 # 6. Clear the fault 69 FAULT="$TEST_BASE_DIR/file-2" 76 FAULT=$FAULT_FILE 87 log_must zinject -d $FAULT -e io -T read $TESTPOOL 92 log_must wait_vdev_state $TESTPOOL $FAULT "FAULTED" 60 103 # 6. Clear the fault 105 log_must zpool clear $TESTPOOL $FAULT 108 log_must wait_vdev_state $TESTPOOL $FAULT "ONLINE" 60
|
H A D | fault_limits.ksh | 27 . $STF_SUITE/tests/functional/fault/fault.cfg 30 # DESCRIPTION: Verify that raidz children vdev fault count is restricted 35 # 3. While it is resilvering, attempt to fault disks 39 TESTPOOL="fault-test-pool" 54 log_assert "restricts raidz children vdev fault count" 77 # Fault disks while a replacing vdev is still active 96 log_pass "restricts raidz children vdev fault count"
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | FaultMaps.cpp | 24 const char *FaultMaps::WFMP = "Fault Maps: "; 60 LLVM_DEBUG(dbgs() << "********** Fault Map Output **********\n"); in serializeToFaultMapSection() 88 for (const auto &Fault : FFI) { in emitFunctionInfo() local 89 LLVM_DEBUG(dbgs() << WFMP << " fault type: " in emitFunctionInfo() 90 << faultTypeToString(Fault.Kind) << "\n"); in emitFunctionInfo() 91 OS.emitInt32(Fault.Kind); in emitFunctionInfo() 94 << *Fault.FaultingOffsetExpr << "\n"); in emitFunctionInfo() 95 OS.emitValue(Fault.FaultingOffsetExpr, 4); in emitFunctionInfo() 97 LLVM_DEBUG(dbgs() << WFMP << " fault handler PC offset: " in emitFunctionInfo() 98 << *Fault.HandlerOffsetExpr << "\n"); in emitFunctionInfo() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_offline/ |
H A D | zpool_offline_003_pos.ksh | 40 # 1. Force fault a vdev, and clear the fault. 41 # 2. Offline a vdev, force fault it, clear the fault, and online it. 42 # 3. Force fault a vdev, export it, then import it. 77 # Force fault disk, and clear the fault 83 # Offline a disk, force fault it, clear the fault, and online it 100 # Persistent fault
|
/freebsd/sys/arm/arm/ |
H A D | trap-v6.c | 102 * Domain Fault (L1 & L2): 104 * Alignment Fault: 109 * - According to manual, this is translation fault during cache maintenance 119 * Translation Fault (L1 & L2): 120 * - Standard fault mechanism is held including vm_fault(). 121 * Permission Fault (L1 & L2): 123 * fault mechanism is held including vm_fault(). 128 {abort_align, "Alignment Fault"}, 132 {NULL, "Translation Fault (L1)"}, 134 {NULL, "Translation Fault (L2)"}, [all …]
|
/freebsd/sys/x86/iommu/ |
H A D | intel_reg.h | 49 #define DMAR_CTX1_FPD 2 /* Fault Processing Disable */ 111 #define DMAR_IRTE1_FPD (1ULL << 1) /* Fault Processing Disable */ 128 /* Num of Fault-recording regs */ 136 /* Fault-recording reg offset */ 152 #define DMAR_CAP_AFL (1 << 3) /* Advanced Fault Logging */ 184 #define DMAR_GCMD_SFL (1 << 29) /* Set Fault Log */ 185 #define DMAR_GCMD_EAFL (1 << 28) /* Enable Advanced Fault Logging */ 196 #define DMAR_GSTS_FLS (1 << 29) /* Fault Log Status */ 197 #define DMAR_GSTS_AFLS (1 << 28) /* Advanced Fault Logging Status */ 254 /* Fault Status register */ [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/zed.d/ |
H A D | pool_import-led.sh | 4 # Turn off/on vdevs' enclosure fault LEDs when their pool's state changes. 6 # Turn a vdev's fault LED on if it becomes FAULTED, DEGRADED or UNAVAIL. 53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault) 77 # 'fault' entry always causes a SES command, even if the 81 # On some enclosures if you write 1 to fault, and read it back, 97 # Fault LEDs for JBODs and NVMe drives are handled a little differently. 99 # On JBODs the fault LED is called 'fault' and on a path like this: 101 # /sys/class/enclosure/0:0:1:0/SLOT 10/fault 107 # This function returns the full path to the fault LED file for a given 113 if [ -f "$dir/fault" ] ; then [all …]
|
H A D | statechange-led.sh | 4 # Turn off/on vdevs' enclosure fault LEDs when their pool's state changes. 6 # Turn a vdev's fault LED on if it becomes FAULTED, DEGRADED or UNAVAIL. 53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault) 77 # 'fault' entry always causes a SES command, even if the 81 # On some enclosures if you write 1 to fault, and read it back, 97 # Fault LEDs for JBODs and NVMe drives are handled a little differently. 99 # On JBODs the fault LED is called 'fault' and on a path like this: 101 # /sys/class/enclosure/0:0:1:0/SLOT 10/fault 107 # This function returns the full path to the fault LED file for a given 113 if [ -f "$dir/fault" ] ; then [all …]
|
H A D | vdev_attach-led.sh | 4 # Turn off/on vdevs' enclosure fault LEDs when their pool's state changes. 6 # Turn a vdev's fault LED on if it becomes FAULTED, DEGRADED or UNAVAIL. 53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault) 77 # 'fault' entry always causes a SES command, even if the 81 # On some enclosures if you write 1 to fault, and read it back, 97 # Fault LEDs for JBODs and NVMe drives are handled a little differently. 99 # On JBODs the fault LED is called 'fault' and on a path like this: 101 # /sys/class/enclosure/0:0:1:0/SLOT 10/fault 107 # This function returns the full path to the fault LED file for a given 113 if [ -f "$dir/fault" ] ; then [all …]
|
H A D | vdev_clear-led.sh | 4 # Turn off/on vdevs' enclosure fault LEDs when their pool's state changes. 6 # Turn a vdev's fault LED on if it becomes FAULTED, DEGRADED or UNAVAIL. 53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault) 77 # 'fault' entry always causes a SES command, even if the 81 # On some enclosures if you write 1 to fault, and read it back, 97 # Fault LEDs for JBODs and NVMe drives are handled a little differently. 99 # On JBODs the fault LED is called 'fault' and on a path like this: 101 # /sys/class/enclosure/0:0:1:0/SLOT 10/fault 107 # This function returns the full path to the fault LED file for a given 113 if [ -f "$dir/fault" ] ; then [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool/zpool.d/ |
H A D | encdev | 10 fault_led: Show value of the disk enclosure slot fault LED. 12 ses: Show disk's enc, enc device, slot, and fault/locate LED values." 53 # JBODs fault LED is called 'fault', NVMe fault LED is called 55 if [ -f "$VDEV_ENC_SYSFS_PATH/fault" ] ; then 56 val=$(cat "$VDEV_ENC_SYSFS_PATH/fault" 2>/dev/null)
|
H A D | enc | 10 fault_led: Show value of the disk enclosure slot fault LED. 12 ses: Show disk's enc, enc device, slot, and fault/locate LED values." 53 # JBODs fault LED is called 'fault', NVMe fault LED is called 55 if [ -f "$VDEV_ENC_SYSFS_PATH/fault" ] ; then 56 val=$(cat "$VDEV_ENC_SYSFS_PATH/fault" 2>/dev/null)
|
H A D | fault_led | 10 fault_led: Show value of the disk enclosure slot fault LED. 12 ses: Show disk's enc, enc device, slot, and fault/locate LED values." 53 # JBODs fault LED is called 'fault', NVMe fault LED is called 55 if [ -f "$VDEV_ENC_SYSFS_PATH/fault" ] ; then 56 val=$(cat "$VDEV_ENC_SYSFS_PATH/fault" 2>/dev/null)
|
H A D | locate_led | 10 fault_led: Show value of the disk enclosure slot fault LED. 12 ses: Show disk's enc, enc device, slot, and fault/locate LED values." 53 # JBODs fault LED is called 'fault', NVMe fault LED is called 55 if [ -f "$VDEV_ENC_SYSFS_PATH/fault" ] ; then 56 val=$(cat "$VDEV_ENC_SYSFS_PATH/fault" 2>/dev/null)
|
H A D | ses | 10 fault_led: Show value of the disk enclosure slot fault LED. 12 ses: Show disk's enc, enc device, slot, and fault/locate LED values." 53 # JBODs fault LED is called 'fault', NVMe fault LED is called 55 if [ -f "$VDEV_ENC_SYSFS_PATH/fault" ] ; then 56 val=$(cat "$VDEV_ENC_SYSFS_PATH/fault" 2>/dev/null)
|
H A D | slot | 10 fault_led: Show value of the disk enclosure slot fault LED. 12 ses: Show disk's enc, enc device, slot, and fault/locate LED values." 53 # JBODs fault LED is called 'fault', NVMe fault LED is called 55 if [ -f "$VDEV_ENC_SYSFS_PATH/fault" ] ; then 56 val=$(cat "$VDEV_ENC_SYSFS_PATH/fault" 2>/dev/null)
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | README.md | 1 ## Fault Management Logic for ZED ## 3 The integration of Fault Management Daemon (FMD) logic from illumos 34 ### ZFS Fault Management Overview ### 36 The primary purpose with ZFS fault management is automated diagnosis 37 and isolation of VDEV faults. A fault is something we can associate 39 (e.g. offline or replace a disk). A typical ZFS fault management stack 59 algorithm which will generate a corresponding fault diagnosis when the 67 managing hot spares across all pools. When it encounters a device fault 91 _"Fault Management Daemon Programmer's Reference Manual"_.
|
H A D | zfs_retire.c | 30 * When we see a device fault or a device removal, we try to open the associated 322 * Repair this vdev if we had diagnosed a 'fault.fs.zfs.device' and 371 nvlist_t *resource, *fault; in zfs_retire_recv() local 505 fault = faults[f]; in zfs_retire_recv() 511 if (nvlist_lookup_boolean_value(fault, FM_SUSPECT_RETIRE, in zfs_retire_recv() 516 * While we subscribe to fault.fs.zfs.*, we only take action in zfs_retire_recv() 518 * failure). We also subscribe to fault.io.* events, so that in zfs_retire_recv() 521 if (fmd_nvl_class_match(hdl, fault, "fault.fs.zfs.vdev.io")) { in zfs_retire_recv() 523 } else if (fmd_nvl_class_match(hdl, fault, in zfs_retire_recv() 524 "fault.fs.zfs.vdev.checksum")) { in zfs_retire_recv() [all …]
|
/freebsd/usr.sbin/sesutil/ |
H A D | sesutil.8 | 33 .Cm fault 38 .Cm fault 74 .It Cm fault Oo Fl u Ar /dev/sesN Oc Ar disk Ns | Ns Cm all Cm on Ns | Ns Cm off 75 Change the state of the external fault LED associated with 83 .It Cm fault Fl u Ar /dev/sesN Ar sesid Cm on Ns | Ns Cm off 84 Change the state of the external fault LED associated with an element 144 Turn on the fault LED for a drive bay not associated with a device: 146 .Dl Nm Cm fault -u /dev/ses2 7 on
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
H A D | zed_diagnose_multiple.ksh | 29 # doesn't generate a fault 34 # 3. Verify that ZED detects the errors but doesn't fault any vdevs 150 log_note $skips fault skips in ZED log after $i seconds 153 fault=$(grep "zpool_vdev_fault" $ZEDLET_DIR/zed.log | wc -l) 154 log_note $fault vdev fault in ZED log 155 [ $fault -eq "0" ] || \ 156 log_fail "expecting no fault events, found $fault"
|