mirror of
https://gitee.com/bianbu-linux/linux-6.6-fh
synced 2025-04-25 17:57:06 -04:00
linux-kselftest-fixes-6.5-rc3
This Kselftest fixes update for Linux 6.5-rc3 consists of fixes to bugs that are interfering with arm64 and risc workflows. This update also includes two fixes to timer and mincore tests that are causing test failures. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEPZKym/RZuOCGeA/kCwJExA0NQxwFAmS2qwsACgkQCwJExA0N Qxxk1g//Xe6yQnKYz5OVGZmWOoXn6VbOfnHiZMuTnIIJ25p1uWVbVBws6TX10DTB U/qgqcobs7vTkKywRhfVVnWWK1AIvPsYx7Cuy9bhqPaEfiv3U9KHauZZ42j8rVOW piDCgAKpobwBxE8279zxajPndEWPC7TbugDHPig7gRF0Y+kmU9i6n1sUymegKcVy lDQwsWG5brseb1HEs5S+3HJeV2VXfmjOleqwWqUVT+8xoKeTKteaWpkEkdbZP1Xb P8nn15/sMyWMRtZHgHmG8oR53SX4/6DMWAwL5ZXnOV240Wi4IBl8DnBQQpytrcK4 YIbUNgRbrYQs7YQRYUdejlX2n2KwRBZB6If2kNF4WxZBW63JB1CftnAzbqhHLqwO 8V83PAsK9bMuwPRUUI5ZHaVp7k54VszMHP1MwkbJDAilFPeYqdKR4XJT+KZ23k1F nXdqpbadTBIvmurEOR/lKPvWMr/FFIlUAhsG4YELYfiIIUVy7bCeA6Q/bVaclqnp jdkKSUbpe3rpwmhHxD+vpZP8EAFaljEMih+z9ollEd2/d1h64Ul4UyVScyZLr06M aGoblt7C0iE7sZUek+6Zfi+bxDyx/6EKtFUKrHw2iHMc7QpEu/z8PTviMz9KbOcw uoLthFkv1QUJtSzusAEGGncNc5cPEXG7WsWW5YjDmhoof5P1Z78= =IBin -----END PGP SIGNATURE----- Merge tag 'linux-kselftest-fixes-6.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest Pull Kselftest fixes from Shuah Khan: "Fixes to bugs that are interfering with arm64 and risc workflows. Also two fixes to timer and mincore tests that are causing test failures" * tag 'linux-kselftest-fixes-6.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests/arm64: fix build failure during the "emit_tests" step selftests/riscv: fix potential build failure during the "emit_tests" step tools: timers: fix freq average calculation selftests/mincore: fix skip condition for check_huge_pages test
This commit is contained in:
commit
74f1456c4a
4 changed files with 5 additions and 6 deletions
|
@ -42,7 +42,7 @@ run_tests: all
|
||||||
done
|
done
|
||||||
|
|
||||||
# Avoid any output on non arm64 on emit_tests
|
# Avoid any output on non arm64 on emit_tests
|
||||||
emit_tests: all
|
emit_tests:
|
||||||
@for DIR in $(ARM64_SUBTARGETS); do \
|
@for DIR in $(ARM64_SUBTARGETS); do \
|
||||||
BUILD_TARGET=$(OUTPUT)/$$DIR; \
|
BUILD_TARGET=$(OUTPUT)/$$DIR; \
|
||||||
make OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
|
make OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
|
||||||
|
|
|
@ -150,8 +150,8 @@ TEST(check_huge_pages)
|
||||||
MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB,
|
MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB,
|
||||||
-1, 0);
|
-1, 0);
|
||||||
if (addr == MAP_FAILED) {
|
if (addr == MAP_FAILED) {
|
||||||
if (errno == ENOMEM)
|
if (errno == ENOMEM || errno == EINVAL)
|
||||||
SKIP(return, "No huge pages available.");
|
SKIP(return, "No huge pages available or CONFIG_HUGETLB_PAGE disabled.");
|
||||||
else
|
else
|
||||||
TH_LOG("mmap error: %s", strerror(errno));
|
TH_LOG("mmap error: %s", strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ run_tests: all
|
||||||
done
|
done
|
||||||
|
|
||||||
# Avoid any output on non riscv on emit_tests
|
# Avoid any output on non riscv on emit_tests
|
||||||
emit_tests: all
|
emit_tests:
|
||||||
@for DIR in $(RISCV_SUBTARGETS); do \
|
@for DIR in $(RISCV_SUBTARGETS); do \
|
||||||
BUILD_TARGET=$(OUTPUT)/$$DIR; \
|
BUILD_TARGET=$(OUTPUT)/$$DIR; \
|
||||||
$(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
|
$(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
|
||||||
|
|
|
@ -129,8 +129,7 @@ int main(int argc, char **argv)
|
||||||
printf("%lld.%i(est)", eppm/1000, abs((int)(eppm%1000)));
|
printf("%lld.%i(est)", eppm/1000, abs((int)(eppm%1000)));
|
||||||
|
|
||||||
/* Avg the two actual freq samples adjtimex gave us */
|
/* Avg the two actual freq samples adjtimex gave us */
|
||||||
ppm = (tx1.freq + tx2.freq) * 1000 / 2;
|
ppm = (long long)(tx1.freq + tx2.freq) * 1000 / 2;
|
||||||
ppm = (long long)tx1.freq * 1000;
|
|
||||||
ppm = shift_right(ppm, 16);
|
ppm = shift_right(ppm, 16);
|
||||||
printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000)));
|
printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000)));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue