From: Ross Burton Date: Tue, 18 Jan 2022 18:07:54 +0000 (+0000) Subject: oeqa/runtime/stap: increase buffer size X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~5472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04c622387ea78920fdb9754fa977883cd6d621a4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa/runtime/stap: increase buffer size 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/runtime/cases/stap.py b/meta/lib/oeqa/runtime/cases/stap.py index ac0125edb2b..615c290ce61 100644 --- a/meta/lib/oeqa/runtime/cases/stap.py +++ b/meta/lib/oeqa/runtime/cases/stap.py @@ -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]))