From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj4u4-0008LK-UJ for qemu-devel@nongnu.org; Thu, 24 Mar 2016 09:02:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj4tz-0000nq-VP for qemu-devel@nongnu.org; Thu, 24 Mar 2016 09:02:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj4tz-0000nj-Pq for qemu-devel@nongnu.org; Thu, 24 Mar 2016 09:02:15 -0400 Date: Thu, 24 Mar 2016 09:02:08 -0400 From: Luiz Capitulino Message-ID: <20160324090208.1ead6bef@redhat.com> In-Reply-To: <20160324051620.GA28183@pxdev.xzpeter.org> 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 Subject: Re: [Qemu-devel] [RFC] host and guest kernel trace merging List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: kvm@vger.kernel.org, Stefan Hajnoczi , yoshihiro.yunomae.ez@hitachi.com, mtosatti@redhat.com, qemu-devel@nongnu.org, Steven Rostedt , linux-trace-users@vger.kernel.org, stefanha@redhat.com, pbonzini@redhat.com 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.