Re: [PATCH 1/2] nmi: Export CPU backtrace APIs for loadable modules
Doug Anderson <[email protected]> Thu, 30 Jul 2026 18:54:13 -0700
| Newsgroups | org.kernel.vger.linux-watchdog,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAD=FV=VXC7LQOERckkZJfcSDuDiGALaG8Z7RcfOZQOsGYFCaWQ@mail.gmail.com> |
Hi, On Thu, Jul 30, 2026 at 3:00=E2=80=AFPM Mayank Rungta via B4 Relay <[email protected]> wrote: > > From: Mayank Rungta <[email protected]> > > Currently, CPU backtrace functions cannot be called from loadable > modules because the underlying helper arch_trigger_cpumask_backtrace() > is not exported. > > Instead of exporting arch_trigger_cpumask_backtrace() individually > across every supported architecture, introduce and export a common > helper, cpumask_backtrace(), in lib/nmi_backtrace.c. Update the four > inline CPU backtrace macros in include/linux/nmi.h to route through this > centralized helper. > > Signed-off-by: Mayank Rungta <[email protected]> > --- > include/linux/nmi.h | 10 ++++++---- > lib/nmi_backtrace.c | 7 +++++++ > 2 files changed, 13 insertions(+), 4 deletions(-) Reviewed-by: Douglas Anderson <[email protected]>