| /linux/drivers/misc/ |
| H A D | xilinx_tmr_inject.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Xilinx TMR Inject IP. 8 * This driver is developed for TMR Inject IP,The Triple Modular Redundancy(TMR) 9 * Inject provides fault injection. 17 #include <linux/fault-inject.h> 19 /* TMR Inject Register offsets */ 34 * struct xtmr_inject_dev - Driver data for TMR Inject 46 MODULE_PARM_DESC(inject_request, "default fault injection attributes"); 53 iowrite32(value, xtmr_inject->regs + addr); in xtmr_inject_write() 59 return ioread32(xtmr_inject->regs + addr); in xtmr_inject_read() [all …]
|
| /linux/Documentation/devicetree/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 …]
|
| /linux/lib/ |
| H A D | fault-inject-usercopy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 #include <linux/fault-inject.h> 3 #include <linux/fault-inject-usercopy.h>
|
| H A D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0-only 19 parameter printk.time=1. See Documentation/admin-guide/kernel-parameters.rst 50 int "Default console loglevel (1-15)" 60 Note: This does not affect the log level of un-prefixed printk() 65 int "quiet console loglevel (1-15)" 76 int "Default message log level (1-7)" 82 This was hard-coded to KERN_WARNING since at least 2.6.10 but folks 118 enabled/disabled based on various levels of scope - per source file, 158 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' > 162 nullarbor:~ # echo -n 'file svcsock.c +p' > [all …]
|
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 6 ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) 8 # Branch profiling isn't noinstr-safe 10 CFLAGS_smp_processor_id.o += -DDISABLE_BRANCH_PROFILING 13 # These files are disabled because they produce lots of non-interesting and/or 21 KCOV_INSTRUMENT_fault-inject [all...] |
| H A D | usercopy.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/fault-inject-usercopy.h> 13 /* out-of-line parts */ 38 * first non-zero byte is). 41 * * 0: There were non-zero bytes present in the buffer. 43 * * -EFAULT: access to userspace failed. 53 from -= align; in check_zeroed_user() 57 return -EFAULT; in check_zeroed_user() 68 size -= sizeof(unsigned long); in check_zeroed_user() 81 return -EFAULT; in check_zeroed_user()
|
| /linux/Documentation/fault-injection/ |
| H A D | notifier-error-inject.rst | 4 Notifier error injection provides the ability to inject artificial errors to 15 ---------------------------------- 18 /sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error 26 Example: Inject PM suspend error (-12 = -ENOMEM):: 28 # cd /sys/kernel/debug/notifier-error-inject/pm/ 29 # echo -12 > actions/PM_SUSPEND_PREPARE/error 34 ---------------------------------------------- 37 /sys/kernel/debug/notifier-error-inject/memory/actions/<notifier event>/error 44 Example: Inject memory hotplug offline error (-12 == -ENOMEM):: 46 # cd /sys/kernel/debug/notifier-error-inject/memory [all …]
|
| H A D | index.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Fault-injection 10 fault-injection 11 notifier-error-inject 12 nvme-fault-injection 13 provoke-crashes
|
| H A D | nvme-fault-injection.rst | 1 NVMe Fault Injection 3 Linux's fault injection framework provides a systematic way to support 10 Following examples show how to inject an error into the nvme. 16 Example 1: Inject default status code with no retry 17 --------------------------------------------------- 34 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.15.0-rc8+ #2 68 EXT4-fs error (device nvme0n1): ext4_find_entry:1436: 71 Example 2: Inject default status code with retry 72 ------------------------------------------------ 92 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.15.0-rc8+ #4 [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | nested_exceptions_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 /* Arbitrary 32-bit error code injected by this test. */ 32 * Bit '1' is set if the fault occurred when looking up a descriptor in the 46 * led to the double fault. 77 struct vmcb *vmcb = svm->vmcb; in svm_run_l2() 78 struct vmcb_control_area *ctrl = &vmcb->control; in svm_run_l2() 80 vmcb->save.rip = (u64)l2_code; in svm_run_l2() 81 run_guest(vmcb, svm->vmcb_gpa); in svm_run_l2() 86 GUEST_ASSERT_EQ(ctrl->exit_code, (SVM_EXIT_EXCP_BASE + vector)); in svm_run_l2() 87 GUEST_ASSERT_EQ(ctrl->exit_info_1, error_code); in svm_run_l2() [all …]
|
| /linux/drivers/ufs/core/ |
| H A D | ufs-fault-injection.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 #include <linux/fault-inject.h> 9 #include "ufs-fault-injection.h" 22 * For more details about fault injection, please refer to 23 * Documentation/fault-injection/fault-injection.rst. 28 "Fault injection. trigger_eh=<interval>,<probability>,<space>,<times>"); 34 "Fault injection. timeout=<interval>,<probability>,<space>,<times>"); 39 const char *fault_str = kp->arg; in ufs_fault_get() 48 if (kp->arg == g_trigger_eh_str) in ufs_fault_set() 50 else if (kp->arg == g_timeout_str) in ufs_fault_set() [all …]
|
| /linux/tools/testing/fault-injection/ |
| H A D | failcmd.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # failcmd.sh - run a command with injecting slab/page allocation failures 8 # failcmd.sh --help 12 # Run command with injecting slab/page allocation failures by fault 24 -p percent 25 --probability=percent 29 -t value 30 --times=value 34 --oom-kill-allocating-task=value 39 -h, --help [all …]
|
| /linux/Documentation/mm/ |
| H A D | hwpoison.rst | 41 The code consists of a the high level handler in mm/memory-failure.c, 46 of applications. KVM support requires a recent qemu-kvm release. 49 KVM can inject the machine check into the guest with the proper 109 * madvise(MADV_HWPOISON, ....) (as root) - Poison a page in the 112 * hwpoison-inject module through debugfs ``/sys/kernel/debug/hwpoison/`` 114 corrupt-pfn 115 Inject hwpoison fault at PFN echoed into this file. This does 118 unpoison-pfn 119 Software-unpoison page at PFN echoed into this file. This way 127 corrupt-filter-dev-major, corrupt-filter-dev-minor [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | fault_inject.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fault injection support for nvme. 13 /* optional fault injection attributes boot time option: 23 struct fault_attr *attr = &fault_inj->attr; in nvme_fault_inject_init() 25 /* set default fault injection attribute */ in nvme_fault_inject_init() 43 fault_inj->parent = parent; in nvme_fault_inject_init() 46 fault_inj->status = NVME_SC_INVALID_OPCODE; in nvme_fault_inject_init() 47 fault_inj->dont_retry = true; in nvme_fault_inject_init() 48 debugfs_create_x16("status", 0600, dir, &fault_inj->status); in nvme_fault_inject_init() 49 debugfs_create_bool("dont_retry", 0600, dir, &fault_inj->dont_retry); in nvme_fault_inject_init() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | fault.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 9 #include <linux/fault-inject.h> 20 struct fault { struct
|
| /linux/mm/ |
| H A D | failslab.c | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <linux/fault-inject.h> 3 #include <linux/error-injection.h> 23 /* No fault-injection for bootstrap cache */ in should_failslab() 34 if (failslab.cache_filter && !(s->flags & SLAB_FAILSLAB)) in should_failslab() 46 return should_fail_ex(&failslab.attr, s->object_size, flags) ? -ENOMEM : 0; in should_failslab() 66 debugfs_create_bool("ignore-gfp-wait", mode, dir, in failslab_debugfs_init() 68 debugfs_create_bool("cache-filter", mode, dir, in failslab_debugfs_init()
|
| H A D | fail_page_alloc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <linux/fault-inject.h> 4 #include <linux/error-injection.h> 58 debugfs_create_bool("ignore-gfp-wait", mode, dir, in fail_page_alloc_debugfs() 60 debugfs_create_bool("ignore-gfp-highmem", mode, dir, in fail_page_alloc_debugfs() 62 debugfs_create_u32("min-order", mode, dir, &fail_page_alloc.min_order); in fail_page_alloc_debugfs()
|
| /linux/net/sunrpc/ |
| H A D | fail.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <linux/fault-inject.h>
|
| /linux/drivers/media/platform/qcom/venus/ |
| H A D | dbgfs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 #include <linux/fault-inject.h>
|
| H A D | dbgfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/fault-inject.h> 17 core->root = debugfs_create_dir("venus", NULL); in venus_dbgfs_init() 18 debugfs_create_x32("fw_level", 0644, core->root, &venus_fw_debug); in venus_dbgfs_init() 21 fault_create_debugfs_attr("fail_ssr", core->root, &venus_ssr_attr); in venus_dbgfs_init() 27 debugfs_remove_recursive(core->root); in venus_dbgfs_deinit()
|
| /linux/Documentation/virt/kvm/devices/ |
| H A D | s390_flic.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 FLIC handles floating (non per-cpu) interrupts, i.e. I/O, service and some 8 machine check interruptions. All interrupts are stored in a per-vm list of 14 - add interrupts (KVM_DEV_FLIC_ENQUEUE) 15 - inspect currently pending interrupts (KVM_FLIC_GET_ALL_IRQS) 16 - purge all pending floating interrupts (KVM_DEV_FLIC_CLEAR_IRQS) 17 - purge one pending floating I/O interrupt (KVM_DEV_FLIC_CLEAR_IO_IRQ) 18 - enable/disable for the guest transparent async page faults 19 - register and modify adapter interrupt sources (KVM_DEV_FLIC_ADAPTER_*) 20 - modify AIS (adapter-interruption-suppression) mode state (KVM_DEV_FLIC_AISM) [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_gem_gtt.c | 1 // SPDX-License-Identifier: MIT 7 #include <linux/slab.h> /* fault-inject.h is not standalone! */ 9 #include <linux/fault-inject.h> 31 if (dma_map_sg_attrs(obj->base.dev->dev, in i915_gem_gtt_prepare_pages() 32 pages->sgl, pages->nents, in i915_gem_gtt_prepare_pages() 43 * try again - if there are no more pages to remove from in i915_gem_gtt_prepare_pages() 46 GEM_BUG_ON(obj->mm.pages == pages); in i915_gem_gtt_prepare_pages() 47 } while (i915_gem_shrink(NULL, to_i915(obj->base.dev), in i915_gem_gtt_prepare_pages() 48 obj->base.size >> PAGE_SHIFT, NULL, in i915_gem_gtt_prepare_pages() 52 return -ENOSPC; in i915_gem_gtt_prepare_pages() [all …]
|
| /linux/kernel/ |
| H A D | fail_function.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fail_function.c: Function-based error injection 5 #include <linux/error-injection.h> 7 #include <linux/fault-inject.h> 42 if (retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval() 43 return (unsigned long)-EINVAL; in adjust_error_retval() 46 if (retv != 0 && retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval() 47 return (unsigned long)-EINVAL; in adjust_error_retval() 62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new() 63 if (!attr->kp.symbol_name) { in fei_attr_new() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gt.h | 1 /* SPDX-License-Identifier: MIT */ 9 #include <linux/fault-inject.h> 18 for ((id__) = 0; (id__) < ARRAY_SIZE((gt__)->hw_engines); (id__)++) \ 19 for_each_if(((hwe__) = (gt__)->hw_engines + (id__)) && \ 22 #define CCS_MASK(gt) (((gt)->info.engine_mask & XE_HW_ENGINE_CCS_MASK) >> XE_HW_ENGINE_CCS0) 38 * xe_gt_record_user_engines - save data related to engines available to 42 * Walk the available HW engines from gt->info.engine_mask and calculate data 58 * xe_gt_wait_for_reset - wait for gt's async reset to finalize. 66 return flush_work(>->reset.worker); in xe_gt_wait_for_reset() 70 * xe_gt_reset - perform synchronous reset [all …]
|
| /linux/fs/f2fs/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 19 F2FS is based on Log-structured File System (LFS), which supports 20 versatile "flash-friendly" features. The design has been focused on 24 Since flash-based storages show different characteristics according to 26 and tools support various parameters not only for configuring on-disk 40 - major filesystem information managed by f2fs currently 41 - average SIT information about whole segments 42 - current memory footprint consumed by f2fs. 74 option if you use the setcap command to assign initial process capabi- 88 bool "F2FS fault injection facility" [all …]
|