From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmcgJ-000564-Lx for qemu-devel@nongnu.org; Tue, 29 Aug 2017 05:19:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmcgI-0002TH-P6 for qemu-devel@nongnu.org; Tue, 29 Aug 2017 05:19:35 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:34821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmcgI-0002Rf-Fr for qemu-devel@nongnu.org; Tue, 29 Aug 2017 05:19:34 -0400 Received: by mail-wr0-x230.google.com with SMTP id j29so7381063wre.2 for ; Tue, 29 Aug 2017 02:19:33 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170826000232.GB29654@flamenco> References: <20170727104302.GI2555@redhat.com> <20170727152137.GW2555@redhat.com> <20170727154535.GY2555@redhat.com> <20170728133430.GS12364@stefanha-x1.localdomain> <20170728140623.GQ31495@redhat.com> <87vamclf6w.fsf@frigg.lan> <20170826000232.GB29654@flamenco> From: Peter Maydell Date: Tue, 29 Aug 2017 10:19:11 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH 00/13] instrument: Add basic event instrumentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" Cc: "Daniel P. Berrange" , Stefan Hajnoczi , Stefan Hajnoczi , QEMU Developers On 26 August 2017 at 01:02, Emilio G. Cota wrote: > An additional "nice to have" would be: > > * Allow inlining of TCG code by the instrumenter. Example use case: > the instrumenter wants to increment a counter every time a > basic block is executed. Instead of calling a callback function on every block's > execution, we could just have a translation-time callback to emit at the beginning > of the translated block the counter increment. This would be much faster, and > is something that all other tools (e.g. DynamoRIO/Pin) implement. This is a feature I would strongly prefer us not to implement. It exposes too much of QEMU's internals (ie TCG) to the instrumentation, and it would be pretty complicated to use. thanks -- PMM