Centos-kernel-stream-9/tools
Chris von Recklinghausen ffa66abd44 userfaultfd: selftests: modify selftest to use /dev/userfaultfd
JIRA: https://issues.redhat.com/browse/RHEL-1848

commit 77c07f7cca9fc7c99aa26058e4674980e0cbb186
Author: Axel Rasmussen <axelrasmussen@google.com>
Date:   Mon Aug 8 10:56:12 2022 -0700

    userfaultfd: selftests: modify selftest to use /dev/userfaultfd

    We clearly want to ensure both userfaultfd(2) and /dev/userfaultfd keep
    working into the future, so just run the test twice, using each interface.

    Instead of always testing both userfaultfd(2) and /dev/userfaultfd, let
    the user choose which to test.

    As with other test features, change the behavior based on a new command
    line flag.  Introduce the idea of "test mods", which are generic (not
    specific to a test type) modifications to the behavior of the test.  This
    is sort of borrowed from this RFC patch series [1], but simplified a bit.

    The benefit is, in "typical" configurations this test is somewhat slow
    (say, 30sec or something).  Testing both clearly doubles it, so it may not
    always be desirable, as users are likely to use one or the other, but
    never both, in the "real world".

    [1]: https://patchwork.kernel.org/project/linux-mm/patch/20201129004548.1619714-14-namit@vmware.com/

    [axelrasmussen@google.com: modify selftest to exit with KSFT_SKIP *only* when features are unsupported, per Mike]
      Link: https://lkml.kernel.org/r/20220819205201.658693-4-axelrasmussen@google.com
    Link: https://lkml.kernel.org/r/20220808175614.3885028-4-axelrasmussen@google.com
    Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
    Acked-by: Peter Xu <peterx@redhat.com>
    Acked-by: Mike Rapoport <rppt@linux.ibm.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Dmitry V. Levin <ldv@altlinux.org>
    Cc: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Mel Gorman <mgorman@techsingularity.net>
    Cc: Mike Kravetz <mike.kravetz@oracle.com>
    Cc: Shuah Khan <shuah@kernel.org>
    Cc: Shuah Khan <skhan@linuxfoundation.org>
    Cc: Suren Baghdasaryan <surenb@google.com>
    Cc: Vlastimil Babka <vbabka@suse.cz>
    Cc: Zhang Yi <yi.zhang@huawei.com>
    Cc: Mike Rapoport <rppt@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2023-10-20 06:13:25 -04:00
..
accounting
arch
bootconfig
bpf bpftool: Use "fallthrough;" keyword instead of comments 2023-09-22 09:13:36 +02:00
build
cgroup
debugging
edid
firewire
firmware
gpio
hv
iio
include mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse 2023-10-20 06:13:23 -04:00
io_uring
kvm/kvm_stat
laptop
leds
lib treewide: Replace zero-length arrays with flexible-array members 2023-10-20 06:12:35 -04:00
memory-model
objtool x86/hyperv: Mark hv_ghcb_terminate() as noreturn 2023-10-04 09:34:19 +02:00
pci
pcmcia
perf tools headers UAPI: Sync files changed by new set_mempolicy_home_node syscall 2023-10-20 06:12:34 -04:00
power Merge: perf/x86/intel: Add Crestmont PMU 2023-10-11 13:28:06 -04:00
rcu
scripts
spi
testing userfaultfd: selftests: modify selftest to use /dev/userfaultfd 2023-10-20 06:13:25 -04:00
thermal/tmon
time
tracing
usb
verification
virtio
vm
wmi
Makefile