mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
runtime/ksample.py: correct a syntax and perfect item about architecture
(From OE-Core rev: 997ab2f5b9faaf656d677392224325f2a2cbc966) Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
15c54f56d6
commit
ba346e6aeb
@@ -105,7 +105,7 @@ class KSampleTest(KSample):
|
|||||||
# kprobe
|
# kprobe
|
||||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||||
def test_kprobe_test(self):
|
def test_kprobe_test(self):
|
||||||
self.check_arch("x86 ppc")
|
self.check_arch("x86_64 i686 ppc")
|
||||||
index = ["kprobe", "kretprobe"]
|
index = ["kprobe", "kretprobe"]
|
||||||
for i in index:
|
for i in index:
|
||||||
self.kprobe_func(i)
|
self.kprobe_func(i)
|
||||||
@@ -173,9 +173,9 @@ class KSampleTest(KSample):
|
|||||||
def test_hw_breakpoint_example(self):
|
def test_hw_breakpoint_example(self):
|
||||||
# check arch
|
# check arch
|
||||||
status, output = self.target.run("uname -m")
|
status, output = self.target.run("uname -m")
|
||||||
result = ("x86" in output) or ("aarch64" in output)
|
result = ("x86_64" in output) or ("aarch64" in output)
|
||||||
if not result:
|
if not result:
|
||||||
self.skipTest("the arch doesn't support hw breakpoint" % output)
|
self.skipTest("the arch %s doesn't support hw breakpoint" % output)
|
||||||
# check config
|
# check config
|
||||||
self.check_config("CONFIG_KALLSYMS_ALL")
|
self.check_config("CONFIG_KALLSYMS_ALL")
|
||||||
# make sure if module exists
|
# make sure if module exists
|
||||||
|
|||||||
Reference in New Issue
Block a user