Re: Amiga, serial and SYSRQ

Geert Uytterhoeven
2024-05-19T13:31:22Z

Hi Paolo,

On Sun, May 19, 2024 at 3:27 PM Paolo Pisati <p.pisati@gmail.com> wrote:
> On Sun, May 19, 2024 at 07:36:43PM +1200, Michael Schmitz wrote:
> > Paolo,
> >
> > please try adding 'initcall_debug' to the kernel command line.
>
> I'm afraid that won't work - init/main.c:
>
> bool initcall_debug;
> core_param(initcall_debug, initcall_debug, bool, 0644);
>
> #ifdef TRACEPOINTS_ENABLED
> static void __init initcall_debug_enable(void);
> #else
> static inline void initcall_debug_enable(void)
> {
> }
> #endif

That's just a forward declaration for part of the initcall_debug
support.

> and TRACING_SUPPORT:
> ...
> depends on TRACE_IRQFLAGS_SUPPORT
> depends on STACKTRACE_SUPPORT
> ...
>
> which are both missing on m68k, IIUIC.

Without TRACEPOINTS_ENABLED, you get:

#ifdef TRACEPOINTS_ENABLED
...
#else
static inline void do_trace_initcall_start(initcall_t fn)
{
if (!initcall_debug)
return;
trace_initcall_start_cb(&initcall_calltime, fn);
}
static inline void do_trace_initcall_finish(initcall_t fn, int ret)
{
if (!initcall_debug)
return;
trace_initcall_finish_cb(&initcall_calltime, fn, ret);
}
#endif /* !TRACEPOINTS_ENABLED */

That second part should still work fine.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds