lkml.org 
[lkml]   [2017]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 04/88] rcutorture: Add a scenario for Tiny SRCU
    Date
    This commit adds an SRCU-t rcutorture scenario for the new Tiny SRCU
    implementation, removing the need to pass the --bootargs parameter to
    kvm.sh to run Tiny SRCU tests. This commit also adds SRCU-t to the set
    of scenarios that are run by default.

    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    ---
    tools/testing/selftests/rcutorture/configs/rcu/CFLIST | 2 ++
    tools/testing/selftests/rcutorture/configs/rcu/SRCU-t | 10 ++++++++++
    tools/testing/selftests/rcutorture/configs/rcu/SRCU-t.boot | 1 +
    tools/testing/selftests/rcutorture/configs/rcu/SRCU-u | 9 +++++++++
    tools/testing/selftests/rcutorture/configs/rcu/SRCU-u.boot | 1 +
    5 files changed, 23 insertions(+)
    create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/SRCU-t
    create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/SRCU-t.boot
    create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/SRCU-u
    create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/SRCU-u.boot

    diff --git a/tools/testing/selftests/rcutorture/configs/rcu/CFLIST b/tools/testing/selftests/rcutorture/configs/rcu/CFLIST
    index a3a1a05a2b5c..6a0b9f69faad 100644
    --- a/tools/testing/selftests/rcutorture/configs/rcu/CFLIST
    +++ b/tools/testing/selftests/rcutorture/configs/rcu/CFLIST
    @@ -9,6 +9,8 @@ TREE08
    TREE09
    SRCU-N
    SRCU-P
    +SRCU-t
    +SRCU-u
    TINY01
    TINY02
    TASKS01
    diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-t b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-t
    new file mode 100644
    index 000000000000..6c78022c8cd8
    --- /dev/null
    +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-t
    @@ -0,0 +1,10 @@
    +CONFIG_SMP=n
    +CONFIG_PREEMPT_NONE=y
    +CONFIG_PREEMPT_VOLUNTARY=n
    +CONFIG_PREEMPT=n
    +#CHECK#CONFIG_TINY_SRCU=y
    +CONFIG_RCU_TRACE=n
    +CONFIG_DEBUG_LOCK_ALLOC=n
    +CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
    +CONFIG_DEBUG_ATOMIC_SLEEP=y
    +#CHECK#CONFIG_PREEMPT_COUNT=y
    diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-t.boot b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-t.boot
    new file mode 100644
    index 000000000000..238bfe3bd0cc
    --- /dev/null
    +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-t.boot
    @@ -0,0 +1 @@
    +rcutorture.torture_type=srcu
    diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-u b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-u
    new file mode 100644
    index 000000000000..6bc24e99862f
    --- /dev/null
    +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-u
    @@ -0,0 +1,9 @@
    +CONFIG_SMP=n
    +CONFIG_PREEMPT_NONE=y
    +CONFIG_PREEMPT_VOLUNTARY=n
    +CONFIG_PREEMPT=n
    +#CHECK#CONFIG_TINY_SRCU=y
    +CONFIG_RCU_TRACE=n
    +CONFIG_DEBUG_LOCK_ALLOC=n
    +CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
    +CONFIG_PREEMPT_COUNT=n
    diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-u.boot b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-u.boot
    new file mode 100644
    index 000000000000..84a7d51b7481
    --- /dev/null
    +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-u.boot
    @@ -0,0 +1 @@
    +rcutorture.torture_type=srcud
    --
    2.5.2
    \
     
     \ /
      Last update: 2017-05-26 00:18    [W:4.082 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site