From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9Vgw-0002RG-7g for qemu-devel@nongnu.org; Wed, 23 Nov 2016 06:26:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9Vgs-0003bS-6r for qemu-devel@nongnu.org; Wed, 23 Nov 2016 06:26:18 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:36275) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9Vgr-0003ae-VW for qemu-devel@nongnu.org; Wed, 23 Nov 2016 06:26:14 -0500 Received: by mail-wm0-x229.google.com with SMTP id g23so73606152wme.1 for ; Wed, 23 Nov 2016 03:26:13 -0800 (PST) References: <58354B12.1050909@ispras.ru> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <58354B12.1050909@ispras.ru> Date: Wed, 23 Nov 2016 11:26:11 +0000 Message-ID: <87r362o2ss.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] log every write to Aarch64 regs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Smolov Cc: QEMU Developers Sergey Smolov writes: > Hello, List! > > I have a subset of Aarch64 registers and I need to print something to > QEMU log every time the emulator writes new data to them. > > Is this problem fully or partially solvable in QEMU? > > What QEMU components should I look inside to implement this? For local experimentation you can use plain fprintf's or qemu_log. If you want something more performance orientated you'll want to look at the tracing infrastructure. See docs/tracing.txt in the source tree. > > Thanks in advance! -- Alex Bennée