Home
last modified time | relevance | path

Searched +full:fault +full:- +full:inject (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/sys/contrib/device-tree/Bindings/misc/
H A Dxlnx,tmr-inject.yaml1 # 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 Dzinject_004_pos.ksh1 #! /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 Dzinject_003_pos.ksh1 #! /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 Dzinject_001_pos.ksh1 #!/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 Dzinject_002_pos.ksh1 #! /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 Dzinject.kshlib36 [[ -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 Dauto_spare_multiple.ksh1 #!/bin/ksh -p
24 . $STF_SUITE/tests/functional/fault/fault.cfg
28 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
33 # 2. Inject IO ERRORS with a zinject error handler on the first device
36 # 5. Inject IO ERRORS on a second device
39 # 8. Clear the fault on both devices
48 log_must zinject -c all
50 rm -f $DATA_DEVS $SPARE_DEVS
62 FAULT_DEV1="$TEST_BASE_DIR/fault-dev1"
63 FAULT_DEV2="$TEST_BASE_DIR/fault-dev2"
[all …]
H A Dauto_spare_001_pos.ksh1 #!/bin/ksh -p
23 . $STF_SUITE/tests/functional/fault/fault.cfg
27 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
34 # 4. Inject IO ERRORS on read with a zinject error handler
36 # 6. Clear the fault
44 log_must zinject -c all
46 rm -f $VDEV_FILES $SPARE_FILE
49 log_assert "Testing automated auto-spare FMA test"
62 # Corruption is injected in the file-2 instead of file-1
66 log_must truncate -s $MINVDEVSIZE $VDEV_FILES
[all …]
H A Dauto_spare_002_pos.ksh1 #!/bin/ksh -p
23 . $STF_SUITE/tests/functional/fault/fault.cfg
27 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
34 # 4. Inject CHECKSUM ERRORS on read with a zinject error handler
36 # 6. Clear the fault
44 log_must zinject -c all
46 rm -f $VDEV_FILES $SPARE_FILE
49 log_assert "Testing automated auto-spare FMA test"
63 log_must truncate -s $MINVDEVSIZE $VDEV_FILES $SPARE_FILE
64 log_must zpool create -f $TESTPOOL $type $VDEV_FILES \
[all …]
H A Dauto_spare_ashift.ksh1 #!/bin/ksh -p
25 . $STF_SUITE/tests/functional/fault/fault.cfg
29 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
35 # 3. Inject IO errors with a zinject error handler
38 # 6. Clear the fault
46 log_must zinject -c all
49 rm -f $SAFE_DEVICE $FAIL_DEVICE
58 SAFE_DEVICE="$TEST_BASE_DIR/safe-dev"
59 FAIL_DEVICE="$TEST_BASE_DIR/fail-dev"
63 truncate -s $MINVDEVSIZE $vdev
[all …]
H A Dauto_spare_shared.ksh1 #!/bin/ksh -p
23 . $STF_SUITE/tests/functional/fault/fault.cfg
32 # 3. Inject IO errors with a zinject error handler
35 # 6. Clear the fault
52 log_must zinject -c all
56 rm -f $SAFE_FILEDEVPOOL1 $SAFE_FILEDEVPOOL2 $FAIL_FILEDEVPOOL1 \
66 SAFE_FILEDEVPOOL1="$TEST_BASE_DIR/file-safe-dev1"
67 FAIL_FILEDEVPOOL1="$TEST_BASE_DIR/file-fail-dev1"
68 SAFE_FILEDEVPOOL2="$TEST_BASE_DIR/file-safe-dev2"
69 FAIL_FILEDEVPOOL2="$TEST_BASE_DIR/file-fail-dev2"
[all …]
H A Ddecrypt_fault.ksh1 #!/bin/ksh -p
19 . $STF_SUITE/tests/functional/fault/fault.cfg
27 # 2. Inject decryption errors on the file 20% of the time
36 log_must zinject -c all
44 log_must eval "echo 'password' | zfs create -o encryption=on \
45 -o keyformat=passphrase -o keylocation=prompt $TESTPOOL/fs"
49 log_must zinject -a -t data -e decrypt -f 20 $mntpt/file1
56 log_must eval "zpool events $TESTPOOL | grep -q 'authentication'"
H A Ddecompress_fault.ksh1 #!/bin/ksh -p
19 . $STF_SUITE/tests/functional/fault/fault.cfg
27 # 2. Inject decompression errors on the file 20% of the time
37 log_must zinject -c all
45 log_must zfs create -o compression=on $TESTPOOL/fs
51 log_must zinject -a -t data -e decompress -f 20 $mntpt/testfile.0
55 log_must eval "zpool events $TESTPOOL | grep -q 'data'"
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzinject.89 .\" or https://opensource.org/licenses/CDDL-1.0.
24 .\" lint-ok: WARNING: sections out of conventional order: Sh SYNOPSIS
32 .Nd ZFS Fault Injector
40 .Bl -tag -width Ds
64 .Fl A Sy degrade Ns | Ns Sy fault
192 .Bl -tag -width "-C dvas"
199 Inject the given error only into specific DVAs.
200 The mask should be specified as a list of 0-indexed DVAs separated by commas
210 .Bl -tag -compact -width "decompress"
234 Only inject errors a fraction of the time.
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzio_inject.c9 * or https://opensource.org/licenses/CDDL-1.0.
29 * ZFS fault injection
31 * To handle fault injection, we keep track of a series of zinject_record_t
33 * fault. These are kept in a global list. Each record corresponds to a given
77 * This protects insertion into, and traversal of, the inject handler
135 if (zb->zb_objset == DMU_META_OBJSET && in zio_match_handler()
136 record->zi_objset == DMU_META_OBJSET && in zio_match_handler()
137 record->zi_object == DMU_META_DNODE_OBJECT) { in zio_match_handler()
138 if (record->zi_type == DMU_OT_NONE || in zio_match_handler()
139 type == record->zi_typ in zio_match_handler()
[all...]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval_resume_export.ksh1 #! /bin/ksh -p
37 # 3. Inject a fault in the pool and attempt to export (it
46 zinject -c all
53 # Inject an error so export fails after having just suspended
56 log_must zinject -d $REMOVEDISK -D 10:1 $TESTPOOL
66 log_must zinject -c all
93 log_must zpool add -f $TESTPOOL $NOTREMOVEDISK
H A Dremoval_with_errors.ksh1 #! /bin/ksh -p
37 # 3. We inject READ errors in to one half of the top-level mirror-0
40 # mirror-0 to be cancelled and that mirror-0 has not been removed.
41 # 5. Clear the read fault injection.
42 # 6. Repeat steps 3-6 above except inject WRITE errors on one of
43 # child vdevs in the destination mirror-1.
47 TMPDIR=${TMPDIR:-$TEST_BASE_DIR}
53 log_must truncate -s $MINVDEVSIZE $DISK0 $DISK1
54 log_must truncate -s $((MINVDEVSIZE * 4)) $DISK2 $DISK3
58 log_must zinject -c all
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/
H A Dzed_diagnose_multiple.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
29 # doesn't generate a fault
33 # 2. Inject io errors
34 # 3. Verify that ZED detects the errors but doesn't fault any vdevs
52 log_must zinject -c all
56 log_note "$(zpool status -s $TESTPOOL)"
63 log_must rm -f $VDEVS
77 log_must zinject -d $vdev -e io $TESTPOOL
84 log_must truncate -s 1G $VDEVS
[all …]
/freebsd/tests/sys/cddl/zfs/tests/zfsd/
H A Dzfsd_fault_002_pos.ksh1 #!/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 Dzfsd_fault_001_pos.ksh1 #!/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"
82 $ZPOOL status $TESTPOOL | grep -q 'state: DEGRADED'
93 log_must gnop configure -w 0 "$DISK1_NOP"
99 $ZPOOL status $TESTPOOL | egrep -q "scan:.*resilvered"
101 $ZPOOL status $TESTPOOL | egrep -q "state:.*ONLINE"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_status/
H A Dzpool_status_008_pos.ksh1 #!/bin/ksh -p
26 # Verify 'zpool status -e' only shows unhealthy devices.
30 # 2. Force DEGRADE, FAULT, or inject slow IOs for vdevs
31 # 3. Verify vdevs are reported correctly with -e and -s
39 zinject -c all
41 log_must rm -f $all_vdevs
44 log_assert "Verify 'zpool status -e'"
49 log_must mkdir -p $TESTDIR
50 log_must truncate -s $MINVDEVSIZE $all_vdevs
56 log_must zpool create -f $TESTPOOL2 $raid_type $all_vdevs
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dtask_switch.c1 /*-
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 …]
/freebsd/sys/amd64/vmm/intel/
H A Dvmx.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
165 "HLT triggers a VM-exit");
169 0, "PAUSE triggers a VM-exit");
173 0, "WBINVD triggers a VM-exit");
210 static int pirvec = -1;
420 return "mce-during-entry"; in exit_reason_to_str()
424 return "apic-access"; in exit_reason_to_str()
446 return "apic-write"; in exit_reason_to_str()
493 * "Virtualizing MSR-Based APIC Accesses". in vmx_allow_x2apic_msrs()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zinject/
H A Dzinject.c9 * or https://opensource.org/licenses/CDDL-1.0.
25 * Copyright (c) 2023-2024, Klara Inc.
29 * ZFS Fault Injector
32 * from a user-visible object type and name to an internal representation.
38 * Errors can be injected into a particular vdev using the '-d' option. This
41 * ECHILD, and EILSEQ. These can be controlled through the '-e' option and the
46 * only apply to read operations (-T read) and will flip a bit after the device
49 * For label faults, the -L option must be specified. This allows faults
55 * zinject -d device [-
[all...]
/freebsd/sys/amd64/vmm/amd/
H A Dsvm.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
108 static MALLOC_DEFINE(M_SVM_VLAPIC, "svm-vlapic", "svm-vlapic");
267 asid[cpu].num = nasid - 1; in svm_modinit()
299 ctrl->tsc_offset = offset; in svm_set_tsc_offset()
304 vm_set_tsc_offset(vcpu->vcpu, offset); in svm_set_tsc_offset()
327 *index = -1; in svm_msr_index()
336 base += (MSR_PENTIUM_END - MSR_PENTIUM_START + 1); in svm_msr_index()
338 off = (msr - MSR_AMD6TH_START); in svm_msr_index()
343 base += (MSR_AMD6TH_END - MSR_AMD6TH_START + 1); in svm_msr_index()
[all …]

12