From: Rob Landley <rob@landley.net>
To: Jeff Dike <jdike@addtoit.com>
Cc: Blaisorblade <blaisorblade@yahoo.it>,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Is there an easy way to do a stack dump on UML?
Date: Sun, 4 Dec 2005 11:50:31 -0600 [thread overview]
Message-ID: <200512041150.32347.rob@landley.net> (raw)
In-Reply-To: <20051203060030.GB17426@ccure.user-mode-linux.org>
On Saturday 03 December 2005 00:00, Jeff Dike wrote:
> On Fri, Dec 02, 2005 at 09:44:20PM -0600, Rob Landley wrote:
> > I've never used mconsole. Never needed it before.
> >
> > Perhaps if I attach to a serial console instead of stdio I can send sysrq
> > that way...
>
> No. Just think a little. Banging on the SysRq key on your keyboard can't
> do anything but send SysRq to the host.
I know. That's why I asked. I thought there might be some other key
combination that could do the same thing for a UML console. (QEMU listens to
the tty to do various escapes in non-graphics mode, for example.)
> SysRq for a virtual machine has to be an out-of-band thing wrt the host.
Yeah, sending compressed data across the console becomes a bit dangerous
otherwise. But again, the difference between a pipe and a tty is that a tty
has out-of-band information attached.
Possibly a couple of different shift keys plus the character in question?
(Something X wouldn't intercept first, qemu uses ctrl-alt and it seems to
work for them.) According to man 4 console_ioctl, TIOCLINUX subcode 6 gives
me something called "shift_state", so maybe I can beat some information out
of the tty to tell when the user hit "ctrl-alt t" and turn that into sysrq-t?
In theory it might work both when stdin is a tty and via an xterm...
To-do item. The documentation on this sucks pretty badly...
> For UML, that's mconsole.
Except that serial consoles can also do sysrq. (I vaguely remember they send
a break signal or some such. Dunno how to do that on an emulated one...)
> Jeff
Rob
--
Steve Ballmer: Innovation! Inigo Montoya: You keep using that word.
I do not think it means what you think it means.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
prev parent reply other threads:[~2005-12-04 17:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-02 20:12 [uml-devel] Is there an easy way to do a stack dump on UML? Rob Landley
2005-12-03 2:59 ` Blaisorblade
2005-12-03 3:44 ` Rob Landley
2005-12-03 6:00 ` Jeff Dike
2005-12-04 17:50 ` Rob Landley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200512041150.32347.rob@landley.net \
--to=rob@landley.net \
--cc=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox