On 8/30/22 14:49, Suren Baghdasaryan wrote: > From: Kent Overstreet <[email protected]> > > This adds a new fault injection capability, based on code tagging. > > To use, simply insert somewhere in your code > > dynamic_fault("fault_class_name") > > and check whether it returns true - if so, inject the error. > For example > > if (dynamic_fault("init")) > return -EINVAL; > > There's no need to define faults elsewhere, as with > include/linux/fault-injection.h. Faults show up in debugfs, under > /sys/kernel/debug/dynamic_faults, and can be selected based on > file/module/function/line number/class, and enabled permanently, or in > oneshot mode, or with a specified frequency. > > Signed-off-by: Kent Overstreet <[email protected]> Missing Signed-off-by: from Suren. See Documentation/process/submitting-patches.rst: When to use Acked-by:, Cc:, and Co-developed-by: ------------------------------------------------ The Signed-off-by: tag indicates that the signer was involved in the development of the patch, or that he/she was in the patch's delivery path. -- ~Randy
- Re: [RFC PATCH 10/30] mm: enable page allo... Peter Zijlstra
- [RFC PATCH 09/30] change alloc_pages name in dma_map_op... Suren Baghdasaryan
- [RFC PATCH 11/30] mm: introduce slabobj_ext to support ... Suren Baghdasaryan
- [RFC PATCH 14/30] mm: prevent slabobj_ext allocations f... Suren Baghdasaryan
- [RFC PATCH 15/30] lib: introduce slab allocation taggin... Suren Baghdasaryan
- [RFC PATCH 17/30] lib/string.c: strsep_no_empty() Suren Baghdasaryan
- [RFC PATCH 16/30] mm: enable slab allocation tagging fo... Suren Baghdasaryan
- [RFC PATCH 21/30] lib: implement context capture suppor... Suren Baghdasaryan
- [RFC PATCH 18/30] codetag: add codetag query helper fun... Suren Baghdasaryan
- [RFC PATCH 22/30] Code tagging based fault injection Suren Baghdasaryan
- Re: [RFC PATCH 22/30] Code tagging based fault inj... Randy Dunlap
- Re: [RFC PATCH 22/30] Code tagging based fault... Suren Baghdasaryan
- Re: [RFC PATCH 22/30] Code tagging based fault inj... Dmitry Vyukov
- Re: [RFC PATCH 22/30] Code tagging based fault... Suren Baghdasaryan
- Re: [RFC PATCH 22/30] Code tagging based fault... Kent Overstreet
- Re: [RFC PATCH 22/30] Code tagging based f... Dmitry Vyukov
- [RFC PATCH 19/30] move stack capture functionality into... Suren Baghdasaryan
- [RFC PATCH 26/30] bcache: Convert to lib/time_stats Suren Baghdasaryan
- [RFC PATCH 25/30] lib/time_stats: New library for stati... Suren Baghdasaryan
- [RFC PATCH 30/30] MAINTAINERS: Add entries for code tag... Suren Baghdasaryan
- [RFC PATCH 24/30] wait: Clean up waitqueue_entry initia... Suren Baghdasaryan
