From: Mark Williamson Subject: Re: LTTng Xen port Date: Fri, 15 Dec 2006 05:02:05 +0000 Message-ID: <200612150502.07421.mark.williamson@cl.cam.ac.uk> References: <20061212172923.GA24883@Krystal> <20061212221401.GA18277@Krystal> <20061213022557.GT27551@bakeyournoodle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061213022557.GT27551@bakeyournoodle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Jimi Xenidis , Ian Pratt , Robert Wisniewski , Tony Breeds , michel.dagenais@polymtl.ca, Mathieu Desnoyers , Rob Gardner List-Id: xen-devel@lists.xenproject.org > I suspect that xenbaked uses it, > http://lxr.xensource.com/lxr/source/tools/xenmon/xenbaked.c > --- > 262 int eventchn_init(void) > 263 { > 264 int rc; > 265 > 266 // to revert to old way: > 267 if (0) > 268 return -1; > 269 > 270 xce_handle = xc_evtchn_open(); > 271 > 272 if (xce_handle < 0) > 273 perror("Failed to open evtchn device"); > 274 > 275 if ((rc = xc_evtchn_bind_virq(xce_handle, VIRQ_TBUF)) == -1) > 276 perror("Failed to bind to domain exception virq port"); > 277 virq_port = rc; > 278 > 279 return xce_handle; > 280 } > --- > > With appropriate triggering, in xen/common/trace.c Ah yes. It should be fairly trivial to copy this code into xentrace.c and then replace the nanosleep with a wait on that event. This would probably be worthwhile as an interim solution until we figure out what next gen tracing ought to look like. Cheers, Mark