linux/tools/testing/selftests/powerpc
Michael Ellerman d65454446b selftests/powerpc: Fix argument order to timer_sub()
[ Upstream commit 2bf66e66d2 ]

Commit c814bf9589 ("powerpc/selftests: Use timersub() for
gettimeofday()"), got the order of arguments to timersub() wrong,
leading to a negative time delta being reported, eg:

  test: gettimeofday
  tags: git_version:v6.12-rc5-409-gdddf291c3030
  time = -3.297781
  success: gettimeofday

The correct order is minuend, subtrahend, which in this case is end,
start. Which gives:

  test: gettimeofday
  tags: git_version:v6.12-rc5-409-gdddf291c3030-dirty
  time = 3.300650
  success: gettimeofday

Fixes: c814bf9589 ("powerpc/selftests: Use timersub() for gettimeofday()")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241218114347.428108-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-21 13:48:53 +01:00
..
alignment selftests/powerpc: Suggest memtrace instead of /dev/mem for ci memory 2021-04-08 21:17:44 +10:00
benchmarks selftests/powerpc: Fix argument order to timer_sub() 2025-02-21 13:48:53 +01:00
cache_shape .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
copyloops selftests/powerpc/copyloops: Add memmove_64 test 2022-02-12 22:47:44 +11:00
dscr selftests/powerpc: Fix resource leaks 2022-12-31 13:32:51 +01:00
eeh selftests/powerpc: Add VF recovery tests 2021-01-31 22:35:47 +11:00
include selftests/powerpc/ptrace: Do more of ptrace-gpr in asm 2022-07-25 12:05:16 +10:00
lib selftests/powerpc/ptrace: Convert to load/store doubles 2022-07-25 12:05:16 +10:00
math selftests/powerpc: Fix error handling in FPU/VMX preemption tests 2024-01-25 15:27:19 -08:00
mce selftests/powerpc: Add missing files to .gitignores 2022-06-29 19:37:04 +10:00
mm selftests/powerpc: Skip 4PB test on 4K PAGE_SIZE systems 2022-09-04 22:39:59 +10:00
nx-gzip selftests/powerpc: Use req_max_processed_len from sysfs NX capabilities 2021-06-25 14:47:19 +10:00
papr_attributes selftests/powerpc: Skip energy_scale_info test on older firmware 2022-06-26 10:29:43 +10:00
pmu selftests/powerpc: Fix emit_tests to work with run_kselftest.sh 2023-10-06 14:56:49 +02:00
primitives powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto 2021-08-15 13:49:24 +10:00
ptrace selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
scripts treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
security selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
signal selftests/powerpc: Add a test of sigreturning to an unaligned address 2021-12-25 10:56:05 +11:00
stringloops selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00
switch_endian selftests/powerpc: Properly handle failure in switch_endian_test 2020-09-08 22:24:13 +10:00
syscalls selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
tm selftests/powerpc: Fix incorrect kernel headers search path 2023-03-10 09:34:15 +01:00
vphn .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
harness.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
Makefile selftests/powerpc: Fix emit_tests to work with run_kselftest.sh 2023-10-06 14:56:49 +02:00
utils.c selftests/powerpc: Move set_dscr() into rfi_flush.c 2020-09-08 22:23:57 +10:00