1. 20 Apr, 2022 4 commits
  2. 12 Apr, 2022 4 commits
    • Paul Menzel's avatar
      torture: Make thread detection more robust by using lspcu · 8e82c28e
      Paul Menzel authored
      For consecutive numbers the lscpu command collapses the output and just
      shows the range with start and end. The processors are numbered that
      way on POWER8.
      
          $ sudo ppc64_cpu --smt=8
          $ lscpu | grep '^NUMA node'
          NUMA node(s):                    2
          NUMA node0 CPU(s):               0-79
          NUMA node8 CPU(s):               80-159
      
      This causes the heuristic to detect the number threads per core, looking
      for the number after the first comma, to fail, and QEMU aborts because of
      invalid arguments.
      
          $ lscpu | grep '^NUMA node0' | sed -e 's/^[^,-]*(,|\-)\([0-9]*\),.*$/\1/'
          NUMA node0 CPU(s):               0-79
      
      But the lscpu command shows the number of threads per core:
      
          $ sudo ppc64_cpu --smt=8
          $ lscpu | grep 'Thread(s) per core'
          Thread(s) per core:              8
          $ sudo ppc64_cpu --smt=off
          $ lscpu | grep 'Thread(s) per core'
          Thread(s) per core:              1
      
      This commit therefore directly uses that value and replaces use of grep
      with "sed -n" and its "p" command.
      Signed-off-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      8e82c28e
    • Paul E. McKenney's avatar
      torture: Permit running of experimental torture types · 98bb264b
      Paul E. McKenney authored
      This commit weakens the checks of the kvm.sh script's --torture parameter
      and the kvm-recheck.sh script's parsing so that experimental torture tests
      may be created without updating these two scripts.  The changes required
      are to the appropriate Makefile and Kconfig file, plus a directory
      whose name begins with "X" must be added to the rcutorture/configs file.
      This new directory's name can then be passed in via the kvm.sh script's
      --torture parameter.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      98bb264b
    • Paul E. McKenney's avatar
      torture: Use "-o Batchmode=yes" to disable ssh password requests · b20842ba
      Paul E. McKenney authored
      The torture.sh script normally runs unattended, so there is not much
      point in the "ssh" command asking for a password.  This commit therefore
      adds the "-o Batchmode=yes" argument to each "ssh" command to cause it
      to fail rather than ask for a password.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      b20842ba
    • Paul E. McKenney's avatar
      torture: Reposition so that $? collects ssh code in torture.sh · ab3ecd0b
      Paul E. McKenney authored
      An "echo" slipped in between an "ssh" and the "ret=$?" that was intended
      to collect its exit code, which prevents torture.sh from detecting
      "ssh" failure.  This commit therefore reassociates the two.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      ab3ecd0b
  3. 03 Apr, 2022 8 commits
  4. 02 Apr, 2022 24 commits