| /freebsd/sys/contrib/device-tree/Bindings/misc/ |
| H A D | xlnx,tmr-inject.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/misc/xlnx,tmr-inject.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Xilinx Triple Modular Redundancy(TMR) Inject IP 10 - Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com> 13 The Triple Modular Redundancy(TMR) Inject core provides functional fault 15 possibility to verify that the TMR subsystem error detection and fault 21 - xlnx,tmr-inject-1.0 35 - compatible [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/zinject/ |
| H A D | zinject_004_pos.ksh | 1 #! /usr/local/bin/ksh93 -p 35 # Inject an error into the device of a pool. 37 # and the fault class of "fault.fs.zfs.vdev.io" be generated. 41 # 2) Inject an error into the device of the pool. 46 # 4) Verify the fault class of "fault.fs.zfs.vdev.io" be generated. 52 # CODING_STATUS: COMPLETED (2007-05-31) 62 log_assert "Verify fault inject handle device error successfully." 65 set -A types "mirror" "raidz" "raidz2" 67 typeset -i maxnumber=1 72 typeset -i i=0 [all …]
|
| H A D | zinject_003_pos.ksh | 1 #! /usr/local/bin/ksh93 -p 35 # Inject an error into the first metadnode in the block 40 # 2) Inject an error into the first metadnode in the block. 42 # and 'zpool status -v' will display the error as expect. 48 # CODING_STATUS: COMPLETED (2007-02-01) 58 log_assert "Verify fault inject handle into first metadnode " \ 62 set -A types "" "mirror" "raidz" "raidz2" 64 typeset -i maxnumber=1 75 [[ -d $object ]] && otype="dir" 87 log_must $ZFS mount -a [all …]
|
| H A D | zinject_001_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 35 # Inject an error into the plain file contents of a file. 40 # 2) Inject an error into the plain file contents of a file. 45 # checksum ereport.fs.zfs.checksum Non-stripe pool 53 # CODING_STATUS: COMPLETED (2007-02-01) 63 log_assert "Verify fault inject handle content error successfully." 66 set -A types "" "mirror" "raidz" "raidz2" 68 typeset -i maxnumber=300 79 [[ -d $object ]] && otype="dir" 97 typeset -i i=0 [all …]
|
| H A D | zinject_002_pos.ksh | 1 #! /usr/local/bin/ksh93 -p 35 # Inject an error into the metadnode in the block 41 # 2) Inject an error into the metadnode in the block. 46 # checksum ereport.fs.zfs.checksum Non-stripe pool 54 # CODING_STATUS: COMPLETED (2007-02-01) 64 log_assert "Verify fault inject handle metadnode error successfully." 67 set -A types "" "mirror" "raidz" "raidz2" 69 typeset -i maxnumber=1 80 [[ -d $object ]] && otype="dir" 98 typeset -i i=0 [all …]
|
| H A D | zinject.kshlib | 36 [[ -d $TESTDIR ]] && \ 37 log_must $RM -rf $TESTDIR 41 # Inject an error into object 52 typeset error=${3:-io} 53 typeset -i expect=${4:-0} 56 log_must eval '$ZINJECT -t $type -e $error \ 57 -m -a -q $object > /dev/null 2>&1' 59 log_mustnot eval '$ZINJECT -t $type -e $error \ 60 -m -a -q $object > /dev/null 2>&1' 71 log_must eval '$ZINJECT -c all > /dev/null 2>&1' [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/ |
| H A D | auto_spare_multiple.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 25 . $STF_SUITE/tests/functional/fault/fault.cfg 29 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 34 # 2. Inject IO ERRORS with a zinject error handler on the first device 37 # 5. Inject IO ERRORS on a second device 40 # 8. Clear the fault on both devices 49 log_must zinject -c all 51 rm -f $DATA_DEVS $SPARE_DEVS 63 FAULT_DEV1="$TEST_BASE_DIR/fault-dev1" [all …]
|
| H A D | auto_spare_001_pos.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 24 . $STF_SUITE/tests/functional/fault/fault.cfg 28 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 35 # 4. Inject IO ERRORS on read with a zinject error handler 37 # 6. Clear the fault 45 log_must zinject -c all 47 rm -f $VDEV_FILES $SPARE_FILE 50 log_assert "Testing automated auto-spare FMA test" 63 # Corruption is injected in the file-2 instead of file-1 [all …]
|
| H A D | auto_spare_002_pos.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 24 . $STF_SUITE/tests/functional/fault/fault.cfg 28 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 35 # 4. Inject CHECKSUM ERRORS on read with a zinject error handler 37 # 6. Clear the fault 45 log_must zinject -c all 47 rm -f $VDEV_FILES $SPARE_FILE 50 log_assert "Testing automated auto-spare FMA test" 64 log_must truncate -s $MINVDEVSIZE $VDEV_FILES $SPARE_FILE [all …]
|
| H A D | auto_spare_ashift.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 26 . $STF_SUITE/tests/functional/fault/fault.cfg 30 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 36 # 3. Inject IO errors with a zinject error handler 39 # 6. Clear the fault 47 log_must zinject -c all 50 rm -f $SAFE_DEVICE $FAIL_DEVICE 59 SAFE_DEVICE="$TEST_BASE_DIR/safe-dev" 60 FAIL_DEVICE="$TEST_BASE_DIR/fail-dev" [all …]
|
| H A D | auto_spare_shared.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 24 . $STF_SUITE/tests/functional/fault/fault.cfg 33 # 3. Inject IO errors with a zinject error handler 36 # 6. Clear the fault 53 log_must zinject -c all 57 rm -f $SAFE_FILEDEVPOOL1 $SAFE_FILEDEVPOOL2 $FAIL_FILEDEVPOOL1 \ 67 SAFE_FILEDEVPOOL1="$TEST_BASE_DIR/file-safe-dev1" 68 FAIL_FILEDEVPOOL1="$TEST_BASE_DIR/file-fail-dev1" 69 SAFE_FILEDEVPOOL2="$TEST_BASE_DIR/file-safe-dev2" [all …]
|
| H A D | decrypt_fault.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 20 . $STF_SUITE/tests/functional/fault/fault.cfg 28 # 2. Inject decryption errors on the file 20% of the time 37 log_must zinject -c all 45 log_must eval "echo 'password' | zfs create -o encryption=on \ 46 -o keyformat=passphrase -o keylocation=prompt $TESTPOOL/fs" 50 log_must zinject -a -t data -e decrypt -f 20 $mntpt/file1 57 log_must eval "zpool events $TESTPOOL | grep -q 'authentication'"
|
| H A D | decompress_fault.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 20 . $STF_SUITE/tests/functional/fault/fault.cfg 28 # 2. Inject decompression errors on the file 20% of the time 38 log_must zinject -c all 46 log_must zfs create -o compression=on $TESTPOOL/fs 52 log_must zinject -a -t data -e decompress -f 20 $mntpt/testfile.0 56 log_must eval "zpool events $TESTPOOL | grep -q 'data'"
|
| /freebsd/crypto/openssl/doc/designs/quic-design/ |
| H A D | quic-fault-injector.md | 1 QUIC Fault Injector 10 The QUIC Fault Injector is a component within the OpenSSL test framework that 14 Typically an individual test will inject one particular misbehaviour (i.e. a 15 fault) into an otherwise normal QUIC connection. Therefore the fault injector 22 The QUIC Fault Injector will be external to libssl (it will be in the test 24 libssl and will make use of 3 integration points to inject faults. 2 of these 29 ----------------------- 33 Fault Injector based tests may need to inject faults directly into the TLS 38 "Finished" message exchange - so any modifications would be rejected and the 45 modified by a "man-in-the-middle". [all …]
|
| /freebsd/sys/contrib/openzfs/man/man8/ |
| H A D | zinject.8 | 1 .\" SPDX-License-Identifier: CDDL-1.0 10 .\" or https://opensource.org/licenses/CDDL-1.0. 25 .\" lint-ok: WARNING: sections out of conventional order: Sh SYNOPSIS 33 .Nd ZFS Fault Injector 41 .Bl -tag -width Ds 65 .Fl A Sy degrade Ns | Ns Sy fault 150 Inject pipeline ready stage delays for the given object or bookmark. 207 .Bl -tag -width "-C dvas" 214 Inject the given error only into specific DVAs. 215 The mask should be specified as a list of 0-indexed DVAs separated by commas [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zio_inject.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 26 * Copyright (c) 2024-2025, Klara, Inc. 30 * ZFS fault injection 32 * To handle fault injection, we keep track of a series of zinject_record_t 34 * fault. These are kept in a global list. Each record corresponds to a given 78 * This protects insertion into, and traversal of, the inject handler 139 if (zb->zb_objset == DMU_META_OBJSET && in zio_match_handler() 140 record->zi_objset == DMU_META_OBJSET && in zio_match_handler() 141 record->zi_object == DMU_META_DNODE_OBJECT) { in zio_match_handler() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
| H A D | zed_diagnose_multiple.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 30 # doesn't generate a fault 34 # 2. Inject io errors 35 # 3. Verify that ZED detects the errors but doesn't fault any vdevs 53 log_must zinject -c all 57 log_note "$(zpool status -s $TESTPOOL)" 64 log_must rm -f $VDEVS 78 log_must zinject -d $vdev -e io $TESTPOOL [all …]
|
| H A D | slow_vdev_degraded_sit_out.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 32 # 2. Degrade/fault one of the disks. 33 # 3. Inject delays into one of the disks 44 log_must zinject -c all 45 log_must zpool events -c 47 log_must rm -f $TEST_BASE_DIR/vdev.$$.* 61 log_must truncate -s 150M $TEST_BASE_DIR/vdev.$$.{0..9} 65 log_must zpool set autosit=on $TESTPOOL2 "${raidtype}-0" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
| H A D | removal_resume_export.ksh | 1 #! /bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 38 # 3. Inject a fault in the pool and attempt to export (it 47 zinject -c all 54 # Inject an error so export fails after having just suspended 57 log_must zinject -d $REMOVEDISK -D 10:1 $TESTPOOL 67 log_must zinject -c all 94 log_must zpool add -f $TESTPOOL $NOTREMOVEDISK
|
| H A D | removal_with_errors.ksh | 1 #! /bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 38 # 3. We inject READ errors in to one half of the top-level mirror-0 41 # mirror-0 to be cancelled and that mirror-0 has not been removed. 42 # 5. Clear the read fault injection. 43 # 6. Repeat steps 3-6 above except inject WRITE errors on one of 44 # child vdevs in the destination mirror-1. 48 DISKDIR=$(mktemp -d) 54 log_must truncate -s $MINVDEVSIZE $DISK0 $DISK1 55 log_must truncate -s $((MINVDEVSIZE * 4)) $DISK2 $DISK3 [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/zfsd/ |
| H A D | zfsd_fault_002_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 43 # 1. Create a storage pool. Use gnop vdevs so we can inject I/O delays. 44 # 2. Inject IO delays while doing IO to the pool. 58 log_assert "ZFS will fault a vdev that experiences delayed I/O" 78 log_must gnop configure -d 31000 -x 100 "$DISK1_NOP" 83 $ZPOOL status $TESTPOOL | grep -q 'state: DEGRADED' 87 $ZPOOL status -s $TESTPOOL 94 log_must gnop configure -x 0 "$DISK1_NOP" 96 log_must $RM -rf /$TESTPOOL
|
| H A D | zfsd_fault_001_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 42 # 1. Create a storage pool. Use gnop vdevs so we can inject I/O errors. 43 # 2. Inject IO errors while doing IO to the pool. 51 # CODING STATUS: COMPLETED (2012-08-09) 59 log_assert "ZFS will fault a vdev that produces IO errors" 77 log_must gnop configure -e 5 -w 100 "$DISK1_NOP" 86 $ZPOOL status $TESTPOOL | grep -q 'state: DEGRADED' 97 log_must gnop configure -w 0 "$DISK1_NOP" 103 $ZPOOL status $TESTPOOL | egrep -q "scan:.*resilvered" 105 $ZPOOL status $TESTPOOL | egrep -q "state:.*ONLINE" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_status/ |
| H A D | zpool_status_008_pos.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 27 # Verify 'zpool status -e' only shows unhealthy devices. 31 # 2. Force DEGRADE, FAULT, or inject slow IOs for vdevs 32 # 3. Verify vdevs are reported correctly with -e and -s 40 zinject -c all 42 log_must rm -f $all_vdevs 45 log_assert "Verify 'zpool status -e'" 50 log_must mkdir -p $TESTDIR 51 log_must truncate -s $MINVDEVSIZE $all_vdevs [all …]
|
| /freebsd/sys/contrib/openzfs/cmd/zinject/ |
| H A D | zinject.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 26 * Copyright (c) 2023-2025, Klara, Inc. 30 * ZFS Fault Injector 33 * from a user-visible object type and name to an internal representation. 39 * Errors can be injected into a particular vdev using the '-d' option. This 42 * ECHILD, and EILSEQ. These can be controlled through the '-e' option and the 47 * only apply to read operations (-T read) and will flip a bit after the device 50 * For label faults, the -L option must be specified. This allows faults 56 * zinject -d device [-e errno] [-L <uber | nvlist | pad1 | pad2>] pool [all …]
|
| /freebsd/usr.sbin/bhyve/amd64/ |
| H A D | task_switch.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 93 static_assert(sizeof(struct tss32) == 104, "compile-time assertion failed"); 125 if (usd->sd_gran) in usd_to_seg_desc() 129 seg_desc.access = usd->sd_type | usd->sd_dpl << 5 | usd->sd_p << 7; in usd_to_seg_desc() 130 seg_desc.access |= usd->sd_xx << 12; in usd_to_seg_desc() 131 seg_desc.access |= usd->sd_def32 << 14; in usd_to_seg_desc() 132 seg_desc.access |= usd->sd_gran << 15; in usd_to_seg_desc() 138 * Inject an exception with an error code that is a segment selector. 154 * Bit 2 from the selector is retained as-is in the error code. in sel_exception() [all …]
|