lkml.org 
[lkml]   [2020]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 09/23] torture: Add --allcpus argument to the kvm.sh script
    Date
    From: "Paul E. McKenney" <paulmck@kernel.org>

    Leaving off the kvm.sh script's --cpus argument results in the script
    testing the scenarios sequentially, which can be quite slow. However,
    having to specify the actual number of CPUs can be error-prone.
    This commit therefore adds a --allcpus argument that causes kvm.sh to
    use all available CPUs.

    Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
    ---
    tools/testing/selftests/rcutorture/bin/kvm.sh | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
    index c279cf9..7dbce7a 100755
    --- a/tools/testing/selftests/rcutorture/bin/kvm.sh
    +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
    @@ -73,6 +73,10 @@ usage () {
    while test $# -gt 0
    do
    case "$1" in
    + --allcpus)
    + cpus=$TORTURE_ALLOTED_CPUS
    + max_cpus=$TORTURE_ALLOTED_CPUS
    + ;;
    --bootargs|--bootarg)
    checkarg --bootargs "(list of kernel boot arguments)" "$#" "$2" '.*' '^--'
    TORTURE_BOOTARGS="$2"
    --
    2.9.5
    \
     
     \ /
      Last update: 2020-06-23 02:38    [W:3.186 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site