From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: Re: [PATCH] kvm tools: Add 'kvm stat' command Date: Mon, 15 Aug 2011 17:55:39 +0300 (EEST) Message-ID: References: <1313418780-4171-1-git-send-email-levinsasha928@gmail.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: mingo@elte.hu, asias.hejun@gmail.com, prasadjoshi124@gmail.com, gorcunov@gmail.com, kvm@vger.kernel.org To: Sasha Levin Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:64828 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753925Ab1HOOzs (ORCPT ); Mon, 15 Aug 2011 10:55:48 -0400 Received: by bke11 with SMTP id 11so3046012bke.19 for ; Mon, 15 Aug 2011 07:55:47 -0700 (PDT) In-Reply-To: <1313418780-4171-1-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 15 Aug 2011, Sasha Levin wrote: > +static int do_memstat(const char *name, int pid) > +{ > + printf("Sending memstat command to %s, output should be on the targets' terminal.\n", name); > + return kill(pid, SIGKVMMEMSTAT); > +} I applied the patch but I think we should come up with a mechanism to transport the output back to the command. Doing the printout in the guest terminal isn't going to work in the long run. Pekka