This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/13078] investigate qemu virtio-serial channel for talking to stap-sh


http://sourceware.org/bugzilla/show_bug.cgi?id=13078

--- Comment #8 from Jonathan Lebon <jlebon at redhat dot com> ---
I've just deleted and recreated the jlebon/cross-vm branch containing multiple
modifications as discussed here. Here is the main diff:
- Add an "option" command to stapsh. E.g. "option verbose" increments verbosity
and "option quit" causes stapsh to send "quit" to stap upon exiting.
- The "option data" command turns on 'prefixing' which prefaces all outputs
from staprun by "data stream size".
- For the unix scheme, turn on the "data" and "quit" options.
- To deal with handling commands and data printing, a new class ShStream was
added in remote.cxx and is used by handle_poll().
- Add a -l [PORT] option to stapsh to listen to any old serial port.

There are three things that remain to be done:
- Also use SIGIO so that we have immediate knowledge of the host connecting
rather than busy polling.
- Do the TODO in ShStream::print so that scripts such as 'timer.s(1) {
printf("hello") }' --remote-prefix does not cause the output 0: hello0: hello0:
hello
- (Once stap-vm is complete) Create a qemu_stapsh class (and possibly a new
scheme qemu://VMNAME to go along with it) and move the "quit" option from
unix_stapsh to qemu_stapsh, since unix does not strictly need the quit option.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]