userspace o/p to kernel buffer

2 messages, 2 authors, 2012-04-13 · open the first message on its own page

userspace o/p to kernel buffer

From: Sumesh Kaana <hidden>
Date: 2012-04-13 09:57:22

Hi,
How do I capture all the output of user-space programs into a kernel buffer so that I can later read it using debugger ?  My board doesn't have a console (no serial, no network). Any direction would be of great help.


sumesh. 		 	   		  

RE: userspace o/p to kernel buffer

From: Jenkins, Clive <hidden>
Date: 2012-04-13 11:26:10

How do I capture all the output of user-space programs into
a kernel buffer so that I can later read it using debugger ?
=A0My board doesn't have a console (no serial, no network).
Assuming you are using a shell to start your user-space
programs, you could easily redirect output to /dev/kmsg
then find it in the dmesg buffer afterwards. You may need
to increase the buffer size.

Clive
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help