From: Martin Cermak Date: Mon, 2 Sep 2024 15:16:16 +0000 (+0200) Subject: RHEL-55262: Handle S390_lowcore macro removal X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=11fbab091d4289c8c92d141c9ba4948bee7b11e2;p=systemtap.git RHEL-55262: Handle S390_lowcore macro removal In kernel commit 39976f1278a9, macro S390_lowcore was replaced with get_lowcore() causing https://issues.redhat.com/browse/RHEL-55262 . --- diff --git a/runtime/stack-s390.c b/runtime/stack-s390.c index e047da50d..c4d73c64d 100644 --- a/runtime/stack-s390.c +++ b/runtime/stack-s390.c @@ -63,9 +63,16 @@ static void __stp_stack_print (struct pt_regs *regs, unsigned long sp = (unsigned long)_sp; // unsigned long sp = (unsigned long)*_sp; +// The S390_lowcore macro removed in kernel commit 39976f1278a9 +#ifdef S390_lowcore sp = __stp_show_stack(sp, S390_lowcore.async_stack - ASYNC_SIZE, S390_lowcore.async_stack, verbose); +#else + sp = __stp_show_stack(sp, + get_lowcore()->async_stack - ASYNC_SIZE, + get_lowcore()->async_stack, verbose); +#endif #ifdef CONFIG_THREAD_INFO_IN_TASK /* FIXME: Note that this CONFIG_THREAD_INFO_IN_TASK @@ -75,8 +82,15 @@ static void __stp_stack_print (struct pt_regs *regs, (((unsigned long)current->stack) + THREAD_SIZE), verbose); #else +// The S390_lowcore macro removed in kernel commit 39976f1278a9 +#ifdef S390_lowcore __stp_show_stack(sp, S390_lowcore.thread_info, S390_lowcore.thread_info + THREAD_SIZE, verbose); +#else + __stp_show_stack(sp, + get_lowcore()->thread_info, + get_lowcore()->thread_info + THREAD_SIZE, verbose); +#endif #endif }