diff options
author | Hongzhi.Song <hongzhi.song@windriver.com> | 2018-08-16 00:38:48 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-16 22:40:28 +0100 |
commit | 704e725bba37911e56ecd0edda694edfe9fce40f (patch) | |
tree | 3626678117660f936b4c9bbd44a20f76c1fe3652 /meta/lib | |
parent | 742a801536b9d46c8b7ad9a3d580c7dcb0dc98cb (diff) | |
download | poky-704e725bba37911e56ecd0edda694edfe9fce40f.tar.gz |
runtime selftest: limit kernel hw bp arches
1. So far, only qemux86[-64] support hw breakpoint, no matter whether or
not with kvm.
qemuppc: The oe-core configuration uses a PPC G4 system as the
default cpu but qemu doesn't simulate the hw breakpoint register for G4.
qemuarm: The arch more than v7 supports hw breakpoint, however arm use
v5 as default.
qemuarm64: We temporarily drop qemuarm64 for the moment. Normally it
will print debug info once, but endlessly when we trigger the break
point. Now it is hard to located the issue, but we will confirm it
later.
qemumips*: Kernel dosen't support hw bp for mips.
2. Syslog maybe not started, so we use dmesg to confirm.
3. Running 'ls' to trigger the hardware breakpoint test.
(From OE-Core rev: 176e50fb177dc40e439700d5f3f838dd7eaaa427)
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/ksample.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py index 26fbe9d8cb..eb8713351a 100644 --- a/meta/lib/oeqa/runtime/cases/ksample.py +++ b/meta/lib/oeqa/runtime/cases/ksample.py | |||
@@ -164,6 +164,11 @@ class KSampleTest(KSample): | |||
164 | # hw breakpoint | 164 | # hw breakpoint |
165 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 165 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
166 | def test_hw_breakpoint_example(self): | 166 | def test_hw_breakpoint_example(self): |
167 | # check arch | ||
168 | status, output = self.target.run("uname -m") | ||
169 | result = ("x86" in output) or ("aarch64" in output) | ||
170 | if not result: | ||
171 | self.skipTest("the arch doesn't support hw breakpoint" % output) | ||
167 | # check config | 172 | # check config |
168 | self.check_config("CONFIG_KALLSYMS_ALL") | 173 | self.check_config("CONFIG_KALLSYMS_ALL") |
169 | # make sure if module exists | 174 | # make sure if module exists |