linux-yocto/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>
2025-02-21 13:48:53 +01:00
..
alignment
benchmarks selftests/powerpc: Fix argument order to timer_sub() 2025-02-21 13:48:53 +01:00
cache_shape
copyloops
dscr
eeh
include
lib
math selftests/powerpc: Fix error handling in FPU/VMX preemption tests 2024-01-25 15:27:19 -08:00
mce
mm
nx-gzip
papr_attributes
pmu selftests/powerpc: Fix emit_tests to work with run_kselftest.sh 2023-10-06 14:56:49 +02:00
primitives
ptrace
scripts
security
signal
stringloops
switch_endian
syscalls
tm
vphn
harness.c
Makefile selftests/powerpc: Fix emit_tests to work with run_kselftest.sh 2023-10-06 14:56:49 +02:00
utils.c