tools: Add guest trace agent as a user tool
authorYoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Thu, 9 Aug 2012 12:31:30 +0000 (21:31 +0900)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Sep 2012 05:35:13 +0000 (14:35 +0930)
commit108fc82596e3b66b819df9d28c1ebbc9ab5de14c
tree66c051fac35849764818a47aa278d073af72b182
parent8ca84a50e5b39487ea1de8809d0ee1c8474f6a5c
tools: Add guest trace agent as a user tool

This patch adds a user tool, "trace agent" for sending trace data of a guest to
a Host in low overhead. This agent has the following functions:
 - splice a page of ring-buffer to read_pipe without memory copying
 - splice the page from write_pipe to virtio-console without memory copying
 - write trace data to stdout by using -o option
 - controlled by start/stop orders from a Host

Changes in v2:
 - Cleanup (change fprintf() to pr_err() and an include guard)

Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/virtio/virtio-trace/Makefile [new file with mode: 0644]
tools/virtio/virtio-trace/README [new file with mode: 0644]
tools/virtio/virtio-trace/trace-agent-ctl.c [new file with mode: 0644]
tools/virtio/virtio-trace/trace-agent-rw.c [new file with mode: 0644]
tools/virtio/virtio-trace/trace-agent.c [new file with mode: 0644]
tools/virtio/virtio-trace/trace-agent.h [new file with mode: 0644]