Re: [PATCH 0/2] adding tracepoints to vhost
From: Zhi Yong Wu <hidden>
Date: 2012-04-10 13:10:50
Also in:
kvm, lkml, virtualization
On Tue, Apr 10, 2012 at 8:42 PM, Michael S. Tsirkin [off-list ref] wrote:
On Tue, Apr 10, 2012 at 12:40:50PM +0100, Stefan Hajnoczi wrote:quoted
On Tue, Apr 10, 2012 at 3:58 AM, Jason Wang [off-list ref] wrote:quoted
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a top-like utility for displaying vhost satistics drivers/vhost/trace.h | 153 ++++++++++++++++++++ drivers/vhost/vhost.c | 17 ++ tools/virtio/vhost_stat | 360 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 528 insertions(+), 2 deletions(-) create mode 100644 drivers/vhost/trace.h create mode 100755 tools/virtio/vhost_statPerhaps this can replace the vhost log feature? I'm not sure if tracepoints support the right data types but it seems like vhost debugging could be done using tracing with less code. Stefanvhost log is not a debugging tool, it logs memory accesses for migration.
Great, it is very appreciated if there's some docs about this
_______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
-- Regards, Zhi Yong Wu