From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9nXM-0004Yw-0l for qemu-devel@nongnu.org; Tue, 09 Oct 2018 04:38:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9nXH-0006FU-28 for qemu-devel@nongnu.org; Tue, 09 Oct 2018 04:38:39 -0400 Received: from mail.ispras.ru ([83.149.199.45]:52078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9nXC-0006AE-KM for qemu-devel@nongnu.org; Tue, 09 Oct 2018 04:38:32 -0400 From: "Pavel Dovgalyuk" References: <20181005154910.3099-1-alex.bennee@linaro.org> <001201d45f99$4f710930$ee531b90$@ru> <87tvlvmsgg.fsf@linaro.org> In-Reply-To: <87tvlvmsgg.fsf@linaro.org> Date: Tue, 9 Oct 2018 11:38:24 +0300 Message-ID: <002501d45fab$71487f90$53d97eb0$@ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: ru Subject: Re: [Qemu-devel] [RFC PATCH 00/21] Trace updates and plugin RFC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?'Alex_Benn=C3=A9e'?= Cc: qemu-devel@nongnu.org, Pavel.Dovgaluk@ispras.ru, vilanova@ac.upc.edu, cota@braap.org > From: Alex Benn=C3=A9e [mailto:alex.bennee@linaro.org] > Pavel Dovgalyuk writes: >=20 > >> From: Alex Benn=C3=A9e [mailto:alex.bennee@linaro.org] > >> Any serious analysis tool should allow for us to track all memory > >> accesses so I think the guest_mem_before trace point should = probably > >> be split into guest_mem_before_store and guest_mem_after_load. We > >> could go the whole hog and add potential trace points for start/end = of > >> all memory operations. > > > > I wanted to ask about memory tracing and found this one. > > Is it possible to use tracepoints for capturing all memory accesses? > > In our implementation we insert helpers before and after tcg > > read/write operations. >=20 > The current tracepoint isn't enough but yes I think we could. The = first > thing I need to do is de-macrofy the atomic helpers a little just to > make it a bit simpler to add the before/after tracepoints. But memory accesses can use 'fast path' without the helpers. Thus you still need inserting the new helper for that case. Pavel Dovgalyuk