Received: from eggs.gnu.org ([2001:4830:134:3::10]:41540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCSXy-00021v-4b for qemu-devel@nongnu.org; Mon, 13 Jun 2016 10:09:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCSXs-0007QR-Fx for qemu-devel@nongnu.org; Mon, 13 Jun 2016 10:08:58 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:36705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCSXs-0007Q9-9K for qemu-devel@nongnu.org; Mon, 13 Jun 2016 10:08:52 -0400 Received: by mail-wm0-x241.google.com with SMTP id m124so15169218wme.3 for ; Mon, 13 Jun 2016 07:08:52 -0700 (PDT) Sender: Paolo Bonzini References: <145641255678.30097.2919142707547689749.stgit@localhost> <145641258612.30097.7127731954660712163.stgit@localhost> <30b46b30-fbc0-31a4-6210-657b205c121f@redhat.com> <87lh29cmip.fsf@fimbulvetr.bsc.es> From: Paolo Bonzini Message-ID: Date: Mon, 13 Jun 2016 16:08:50 +0200 MIME-Version: 1.0 In-Reply-To: <87lh29cmip.fsf@fimbulvetr.bsc.es> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 4/6] trace: Add per-vCPU tracing states for events with the 'vcpu' property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Blue Swirl , Riku Voipio , Eduardo Habkost , Stefan Hajnoczi , =?UTF-8?Q?Andreas_F=c3=a4rber?= On 13/06/2016 14:15, LluĂ­s Vilanova wrote: > > That said, I am skeptical about the benefit of the interfaces you are > > adding. They add a lot of complication and overhead (especially > > regarding the memory/cache overhead of the dstate array) without a clear > > use case, in my opinion; all the processing you do at run-time is just > > as well suited for later filtering. > > This should make tracing faster on the future with multi-threaded TCG, as well > as trace files much smaller if you're tracing something like memory > accesses. Also, bear in mind this series was split from a much larger one for > simplicity. The follow-up one provides much larger performance benefits by > avoiding the generation of TCG code to call the tracing backend when a vCPU is > not traced. This still assumes that tracing only some VCPUs is a common use case. Is it?... Paolo