bionic: test: report kernel sha for clock_getcpuclockid failure
For aarch64 only. Once we activate support for vdso call for clock_getres, we also will have to deal with kernel bugs in the implementation. If the kernel is prior to the vdso unification of arm, aarch64 and aarch32, estimated to land in 4.15, then the assembler implementation for aarch64 will need two upstream kernel fixes e1b6b6ce and c80ed088. We report the required url for the upstream kernel fixes upon test failure. Test: bionic-unit-tests --gtest_filter=time.* Bug: 20045882 Bug: 63737556 Bug: 69626243 Change-Id: Id93056f432491679e349545cbd1d682074634c58
This commit is contained in:
parent
7d5777ef15
commit
71b81a2bb2
|
@ -678,7 +678,13 @@ TEST(time, clock_getcpuclockid) {
|
|||
// For invalid process.
|
||||
// We can't use -1 for invalid pid here, because clock_getcpuclockid() can't detect it.
|
||||
errno = 0;
|
||||
ASSERT_EQ(ESRCH, clock_getcpuclockid(GetInvalidPid(), &clockid));
|
||||
// If this fails, your kernel needs commit e1b6b6ce to be backported.
|
||||
ASSERT_EQ(ESRCH, clock_getcpuclockid(GetInvalidPid(), &clockid)) << "\n"
|
||||
<< "Please ensure that the following kernel patches or their replacements have been applied:\n"
|
||||
<< "* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/"
|
||||
<< "commit/?id=e1b6b6ce55a0a25c8aa8af019095253b2133a41a\n"
|
||||
<< "* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/"
|
||||
<< "commit/?id=c80ed088a519da53f27b798a69748eaabc66aadf\n";
|
||||
ASSERT_EQ(0, errno);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue