From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMWpJ-0002wM-PK for qemu-devel@nongnu.org; Tue, 04 Aug 2015 03:39:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMWpA-00005t-Tr for qemu-devel@nongnu.org; Tue, 04 Aug 2015 03:39:57 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:35107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMWpA-00005Q-Lu for qemu-devel@nongnu.org; Tue, 04 Aug 2015 03:39:48 -0400 Received: by wibxm9 with SMTP id xm9so153339292wib.0 for ; Tue, 04 Aug 2015 00:39:48 -0700 (PDT) References: <1438593291-27109-1-git-send-email-alex.bennee@linaro.org> <1438593291-27109-2-git-send-email-alex.bennee@linaro.org> <55BF6F68.1090103@redhat.com> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <55BF6F68.1090103@redhat.com> Date: Tue, 04 Aug 2015 08:39:45 +0100 Message-ID: <87k2tblcxq.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 01/11] tcg: add ability to dump /tmp/perf-.map files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-trivial@nongnu.org, crosthwaitepeter@gmail.com, qemu-devel@nongnu.org, aurelien@aurel32.net, rth@twiddle.net Paolo Bonzini writes: > On 03/08/2015 11:14, Alex Bennée wrote: >> This allows the perf tool to map samples to each individual translation >> block. This could be expanded for user space but currently it gives >> enough information to find any hotblocks by other means. >> >> Signed-off-by: Alex Bennée > > What happens if you encounter a tb_flush? At the point of a tb_flush all bets are off as we will re-generate all the blocks at potentially different locations in the translation buffer. However for most analysis cases you are unlikely to cause the code buffer to overflow. Most other uses of tb_flush are the result debugging. I could add a printf when --perfmap is enabled to flag when a flush happens to signal to the user? I guess some more caveats in the flag description wouldn't hurt. We could consider truncating and re-starting the JIT dump at each flush? > > Paolo -- Alex Bennée