RE: Real-Time Preemption: Magic Sysrq p doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> * kus Kusche Klaus <[email protected]> wrote:
> 
> > While testing, I noticed that Sysrq p is silently ignored 
> on current 
> > RT kernels with RT preemption: The syslog contains a message that 
> > Sysrq p was pressed, but no registers are printed.
> 
> yes, that's because the keyboard interrupt is 'threaded' - 
> hence there's 
> no 'interrupted stack' to print a backtrace of. You should be able to 
> see all (including currently running) task's backtraces in SysRq-T 
> output.
> 
> are you trying to use it to debug a particular bug?

No, not yet.

I've been asked to analyze the various tools and possibilities available
to debug an RT kernel.

Up to now, what I've found is not too impressive:
* Plain GDB can be used to display the current value of kernel variables
symbolically, but no more: It won't tell anything about the kernel's
current activity.
* kgdb and kdb seem to be deeply incompatible with the RT patches (they
mess with the scheduler, interrupts etc.), applying their patches to an
RT tree fails quite impressively.
* LKCD is too heavy for debugging embedded systems (which do not have
swap partitions or other permanent memory to spare); for netdump, I was
unable to find any recent and working download (I found the server, but
where is the client-side kernel code?); and kdump-via-kexec is "not yet
there". Moreover, most of them are for i386 and won't support ARM (or
PPC).

So Sysrq was one of my hopes to give developers an easy tool to check
quickly where their kernel is, if it still moves or loops, what the
reg's are, ...

Sysrq t works, but produces by far too much output for that purpose -
it's hard to get any information (especially if things are still
changing or already frozen) from Sysrq t "at a quick glance".

Any other hints for debugging?

-- 
Klaus Kusche                 (Software Development - Control Systems)
KEBA AG             Gewerbepark Urfahr, A-4041 Linz, Austria (Europe)
Tel: +43 / 732 / 7090-3120                 Fax: +43 / 732 / 7090-6301
E-Mail: [email protected]                                WWW: www.keba.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux