]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/stap: increase buffer size
authorRoss Burton <ross@burtonini.com>
Tue, 18 Jan 2022 18:07:54 +0000 (18:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jan 2022 10:40:57 +0000 (10:40 +0000)
We're seeing random failures in the SystemTap tests in qemuarm on kernel
5.10. This might be related to the buffer between user and kernel space
being too small, so explicitly set the size.

If this cures the problem it should be considered a workaround and not
the solution.

[ YOCTO #14673 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/stap.py

index ac0125edb2ba0af55758c0139bc7cc9e7d613619..615c290ce61f2d52bb1506f549b08e3d0749fafb 100644 (file)
@@ -18,7 +18,7 @@ class StapTest(OERuntimeTestCase):
         status, output = self.target.run(cmd, 900)
         self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
 
-        cmd = 'stap -v --disable-cache -DSTP_NO_VERREL_CHECK -e \'probe oneshot { print("Hello, "); println("world!") }\''
+        cmd = 'stap -v --disable-cache -DSTP_NO_VERREL_CHECK -s1 -e \'probe oneshot { print("Hello, "); println("world!") }\''
         status, output = self.target.run(cmd, 900)
         self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
         self.assertIn('Hello, world!', output, msg='\n'.join([cmd, output]))