From: Keir Fraser Subject: Re: LTTng-Xen Buffer shared between the hypervisor and a dom0 process Date: Fri, 09 Mar 2007 09:11:21 +0000 Message-ID: References: <20070308193025.GA20510@Krystal> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070308193025.GA20510@Krystal> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mathieu Desnoyers , Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 8/3/07 19:30, "Mathieu Desnoyers" wrote: > lttctl-xen -r (finalize buffers, signal lttd-xen, decrement refcount) > (lttd-xen : writes the last subbuffers. decrement refcount, ressources are > freed) > > If no lttd-xen is mapping the buffers, we simply free then upon > lttctl-xen -r. Okay, I get you. But what should happen if someone *is* mapping the buffers when lttctl-xen -r is invoked? Is that an error condition, or is the implementation supposed to reap the buffers 'as soon as possible' (i.e., when the last mapping goes away)? Actually I think we can support either way, although the former will work right now and the latter will need a bit of extra support added into Xen. -- Keir