From: "Glauber Costa" Subject: Re: [PATCH 0/2] kvmtrace: Allow user to clean up stale trace setup Date: Wed, 22 Oct 2008 16:05:01 -0200 Message-ID: <5d6222a80810221105x4446583w3e7f09b8a4957015@mail.gmail.com> References: <1224696928-22187-1-git-send-email-ehabkost@redhat.com> <5d6222a80810221042n44684c1fpdd5ea3f8cadb88db@mail.gmail.com> <20081022175454.GM27959@blackpad> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Avi Kivity" , kvm@vger.kernel.org To: "Eduardo Habkost" Return-path: Received: from mail-gx0-f16.google.com ([209.85.217.16]:54544 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757445AbYJVSFE (ORCPT ); Wed, 22 Oct 2008 14:05:04 -0400 Received: by gxk9 with SMTP id 9so7884066gxk.13 for ; Wed, 22 Oct 2008 11:05:02 -0700 (PDT) In-Reply-To: <20081022175454.GM27959@blackpad> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Oct 22, 2008 at 3:54 PM, Eduardo Habkost wrote: > On Wed, Oct 22, 2008 at 03:42:27PM -0200, Glauber Costa wrote: >> On Wed, Oct 22, 2008 at 3:35 PM, Eduardo Habkost wrote: >> > If kvmtrace crashes or gets killed while collecting trace data, stale >> > trace setup information may be enabled on the kernel, and currently >> > there is no way to force the previous trace setup to be overwritten >> > or disabled. >> > >> > The following two patches against kvm-userspace will add a new >> > command-line option to kvmtrace (-f), that will allow the user to forcibly >> > clean up an existing trace setup before enabling trace. >> >> Why can't we simply disable potential stale setups everytime, before we start? >> The option would then not be needed > > Another kvmtrace instance may be already running. Do we want to kill > its tracing setup without asking, by default? do we allow more than one instance? Note that if the answer is "yes", we also have the problem in which we have two or three instances in flight. Which one of them does the command kill ? > > -- > Eduardo > -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."