~ [ source navigation ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/arm64/fp/

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Name Size Last modified (GMT) Description
Back Parent directory 2024-08-12 04:20:17
File Makefile 1745 bytes 2024-08-12 04:20:17
File README 3158 bytes 2024-08-12 04:20:17
File TODO 248 bytes 2024-08-12 04:20:17
C file asm-offsets.h 247 bytes 2024-08-12 04:20:17
File asm-utils.S 2831 bytes 2024-08-12 04:20:17
C file assembler.h 1199 bytes 2024-08-12 04:20:17
File fp-pidbench.S 1247 bytes 2024-08-12 04:20:17
File fp-ptrace-asm.S 5928 bytes 2024-08-12 04:20:17
C file fp-ptrace.c 35914 bytes 2024-08-12 04:20:17
C file fp-ptrace.h 251 bytes 2024-08-12 04:20:17
C file fp-stress.c 14506 bytes 2024-08-12 04:20:17
File fpsimd-stress 714 bytes 2024-08-12 04:20:17
File fpsimd-test.S 5884 bytes 2024-08-12 04:20:17
C file kernel-test.c 6691 bytes 2024-08-12 04:20:17
C file rdvl-sme.c 156 bytes 2024-08-12 04:20:17
C file rdvl-sve.c 156 bytes 2024-08-12 04:20:17
File rdvl.S 251 bytes 2024-08-12 04:20:17
C file rdvl.h 124 bytes 2024-08-12 04:20:17
C file sme-inst.h 1102 bytes 2024-08-12 04:20:17
File ssve-stress 691 bytes 2024-08-12 04:20:17
C file sve-probe-vls.c 1467 bytes 2024-08-12 04:20:17
C file sve-ptrace.c 18749 bytes 2024-08-12 04:20:17
File sve-stress 690 bytes 2024-08-12 04:20:17
File sve-test.S 9881 bytes 2024-08-12 04:20:17
C file vec-syscfg.c 18643 bytes 2024-08-12 04:20:17
C file vlset.c 3423 bytes 2024-08-12 04:20:17
File za-fork-asm.S 979 bytes 2024-08-12 04:20:17
C file za-fork.c 2024 bytes 2024-08-12 04:20:17
C file za-ptrace.c 7890 bytes 2024-08-12 04:20:17
File za-stress 689 bytes 2024-08-12 04:20:17
File za-test.S 7273 bytes 2024-08-12 04:20:17
C file zt-ptrace.c 7015 bytes 2024-08-12 04:20:17
File zt-test.S 5599 bytes 2024-08-12 04:20:17

  1 This directory contains a mix of tests integrated with kselftest and
  2 standalone stress tests.
  3 
  4 kselftest tests
  5 ===============
  6 
  7 sve-probe-vls - Checks the SVE vector length enumeration interface
  8 sve-ptrace - Checks the SVE ptrace interface
  9 
 10 Running the non-kselftest tests
 11 ===============================
 12 
 13 sve-stress performs an SVE context switch stress test, as described
 14 below.
 15 
 16 (The fpsimd-stress test works the same way; just substitute "fpsimd" for
 17 "sve" in the following commands.)
 18 
 19 
 20 The test runs until killed by the user.
 21 
 22 If no context switch error was detected, you will see output such as
 23 the following:
 24 
 25 $ ./sve-stress
 26 (wait for some time)
 27 ^C
 28 Vector length:        512 bits
 29 PID:    1573
 30 Terminated by signal 15, no error, iterations=9467, signals=1014
 31 Vector length:  512 bits
 32 PID:    1575
 33 Terminated by signal 15, no error, iterations=9448, signals=1028
 34 Vector length:  512 bits
 35 PID:    1577
 36 Terminated by signal 15, no error, iterations=9436, signals=1039
 37 Vector length:  512 bits
 38 PID:    1579
 39 Terminated by signal 15, no error, iterations=9421, signals=1039
 40 Vector length:  512 bits
 41 PID:    1581
 42 Terminated by signal 15, no error, iterations=9403, signals=1039
 43 Vector length:  512 bits
 44 PID:    1583
 45 Terminated by signal 15, no error, iterations=9385, signals=1036
 46 Vector length:  512 bits
 47 PID:    1585
 48 Terminated by signal 15, no error, iterations=9376, signals=1039
 49 Vector length:  512 bits
 50 PID:    1587
 51 Terminated by signal 15, no error, iterations=9361, signals=1039
 52 Vector length:  512 bits
 53 PID:    1589
 54 Terminated by signal 15, no error, iterations=9350, signals=1039
 55 
 56 
 57 If an error was detected, details of the mismatch will be printed
 58 instead of "no error".
 59 
 60 Ideally, the test should be allowed to run for many minutes or hours
 61 to maximise test coverage.
 62 
 63 
 64 KVM stress testing
 65 ==================
 66 
 67 To try to reproduce the bugs that we have been observing, sve-stress
 68 should be run in parallel in two KVM guests, while simultaneously
 69 running on the host.
 70 
 71 1) Start 2 guests, using the following command for each:
 72 
 73 $ lkvm run --console=virtio -pconsole=hvc0 --sve Image
 74 
 75 (Depending on the hardware GIC implementation, you may also need
 76 --irqchip=gicv3.  New kvmtool defaults to that if appropriate, but I
 77 can't remember whether my branch is new enough for that.  Try without
 78 the option first.)
 79 
 80 Kvmtool occupies the terminal until you kill it (Ctrl+A x),
 81 or until the guest terminates.  It is therefore recommended to run
 82 each instance in separate terminal (use screen or ssh etc.)  This
 83 allows multiple guests to be run in parallel while running other
 84 commands on the host.
 85 
 86 Within the guest, the host filesystem is accessible, mounted on /host.
 87 
 88 2) Run the sve-stress on *each* guest with the Vector-Length set to 32:
 89 guest$ ./vlset --inherit 32 ./sve-stress
 90 
 91 3) Run the sve-stress on the host with the maximum Vector-Length:
 92 host$ ./vlset --inherit --max ./sve-stress
 93 
 94 
 95 Again, the test should be allowed to run for many minutes or hours to
 96 maximise test coverage.
 97 
 98 If no error is detected, you will see output from each sve-stress
 99 instance similar to that illustrated above; otherwise details of the
100 observed mismatches will be printed.

~ [ source navigation ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php