lkml.org 
[lkml]   [2022]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [RFC PATCH 22/30] Code tagging based fault injection
    From


    On 8/30/22 14:49, Suren Baghdasaryan wrote:
    > From: Kent Overstreet <kent.overstreet@linux.dev>
    >
    > 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 <kent.overstreet@linux.dev>

    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

    \
     
     \ /
      Last update: 2022-08-31 03:53    [W:2.450 / U:0.832 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site