From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luiz Capitulino Subject: Re: [Qemu-devel] [RFC] host and guest kernel trace merging Date: Thu, 24 Mar 2016 09:02:08 -0400 Message-ID: <20160324090208.1ead6bef@redhat.com> References: <20160303143501.0edf21a2@redhat.com> <20160304111933.GB626@stefanha-x1.localdomain> <20160304082311.5ccd1a33@gandalf.local.home> <20160324051620.GA28183@pxdev.xzpeter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Steven Rostedt , Stefan Hajnoczi , kvm@vger.kernel.org, yoshihiro.yunomae.ez@hitachi.com, mtosatti@redhat.com, qemu-devel@nongnu.org, linux-trace-users@vger.kernel.org, stefanha@redhat.com, pbonzini@redhat.com To: Peter Xu Return-path: Received: from mx1.redhat.com ([209.132.183.28]:40161 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757625AbcCXNCP (ORCPT ); Thu, 24 Mar 2016 09:02:15 -0400 In-Reply-To: <20160324051620.GA28183@pxdev.xzpeter.org> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 24 Mar 2016 13:16:20 +0800 Peter Xu wrote: > Hi, Steven, > > On Fri, Mar 04, 2016 at 08:23:11AM -0500, Steven Rostedt wrote: > > My idea for a trace-cmd server, is to have a --client operation, for > > running on the guest. > > > > trace-cmd server --client > > > > The connection will be some socket, either network or something > > directly attached to the host. > > > > Then on the host, we can have > > > > trace-cmd server --connect > > > > Where the server will create a connection to the guest. > > > > And then, you could run on the host: > > > > trace-cmd record --connect > > > > And this will start recording host events, and then connect to the > > local server that connects to the guest(s) and that will start tracing > > on the guest as well. > > > > Then events on the guest will be passed to the host server. > > > > Something like this is my idea. We can work out the details on the best > > way to get things working. We may be able to eliminate the host server > > middle man. But I envision that we need a trace-cmd server running on > > the guest to start off the commands. > > Not sure whether fully I understand the above, it seems that we can > remove the host server middle man (as you have mentioned). Moreover, > I am not sure whether we can use this for multiple hosts as well, Honest question, what's the multiple hosts use-case? I would start by thinking about the most simple use-case: a host and a guest with a single vCPU. Then add vCPUs, and then add multiple guests.