[oe-commits] [openembedded-core] branch master-next updated: systemtap: Fix arm issues with 5.2 kernel

git at git.openembedded.org git at git.openembedded.org
Thu Sep 5 13:09:25 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

The following commit(s) were added to refs/heads/master-next by this push:
     new fa180fd  systemtap: Fix arm issues with 5.2 kernel
fa180fd is described below

commit fa180fd767db41ae8d090cb4371b775ea7ee6124
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Sep 5 14:06:29 2019 +0100

    systemtap: Fix arm issues with 5.2 kernel
    
    5.2 and later kernels removed get_ds() on arm and other architectures:
    
    https://github.com/torvalds/linux/commit/736706bee3298208343a76096370e4f6a5c55915
    
    Add in a fallback so systemtap works on arm in these cases.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 .../systemtap/systemtap/fixarm.patch               | 27 ++++++++++++++++++++++
 meta/recipes-kernel/systemtap/systemtap_git.inc    |  1 +
 2 files changed, 28 insertions(+)

diff --git a/meta/recipes-kernel/systemtap/systemtap/fixarm.patch b/meta/recipes-kernel/systemtap/systemtap/fixarm.patch
new file mode 100644
index 0000000..1b3a822
--- /dev/null
+++ b/meta/recipes-kernel/systemtap/systemtap/fixarm.patch
@@ -0,0 +1,27 @@
+5.2 and later kernels removed get_ds() on arm and other architectures:
+
+https://github.com/torvalds/linux/commit/736706bee3298208343a76096370e4f6a5c55915
+
+Add in a fallback so systemtap works on arm in these cases.
+
+Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
+2019/9/5 RP
+
+Upstream-Status: Pending
+
+diff --git a/runtime/linux/regs.c b/runtime/linux/regs.c
+index 479b802fd..57436b558 100644
+--- a/runtime/linux/regs.c
++++ b/runtime/linux/regs.c
+@@ -225,6 +225,11 @@ static const char *processor_modes[]=
+   "UK8_32" , "UK9_32" , "UK10_32", "UND_32" , "UK12_32", "UK13_32", "UK14_32", "SYS_32"
+ };
+ 
++/* get_ds() removed in 736706bee3298208343a76096370e4f6a5c55915 */
++#ifndef get_ds
++#define get_ds()	(KERNEL_DS)
++#endif
++
+ static void _stp_print_regs(struct pt_regs * regs)
+ {
+ 	unsigned long flags = regs->ARM_cpsr;
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc
index 627fcc7..7d2d61a 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.inc
+++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
@@ -11,6 +11,7 @@ SRC_URI = "git://sourceware.org/git/systemtap.git \
            file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \
            file://0001-Install-python-modules-to-correct-library-dir.patch \
            file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \
+           file://fixarm.patch \
            "
 
 COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips).*-linux'

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list