From a25199c9580b9b66424c494d3bf39c4d1b7e1f7b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 5 Sep 2019 09:13:13 -0400 Subject: [PATCH] runtime: 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 --- runtime/linux/regs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/linux/regs.c b/runtime/linux/regs.c index 6573967de..e917c213b 100644 --- a/runtime/linux/regs.c +++ b/runtime/linux/regs.c @@ -226,6 +226,11 @@ static const char *processor_modes[]= }; +/* 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; -- 2.43.5