Received: from eggs.gnu.org ([2001:4830:134:3::10]:52293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abrPa-0006Ux-UF for qemu-devel@nongnu.org; Fri, 04 Mar 2016 10:13:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abrPY-0004nQ-7f for qemu-devel@nongnu.org; Fri, 04 Mar 2016 10:13:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abrPY-0004ml-2f for qemu-devel@nongnu.org; Fri, 04 Mar 2016 10:13:00 -0500 Date: Fri, 4 Mar 2016 15:12:57 +0000 From: Stefan Hajnoczi Message-ID: <20160304151257.GD9130@stefanha-x1.localdomain> References: <1456949575-1633-1-git-send-email-hollis_blanchard@mentor.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NtwzykIc2mflq5ck" Content-Disposition: inline In-Reply-To: <1456949575-1633-1-git-send-email-hollis_blanchard@mentor.com> Subject: Re: [Qemu-devel] [PATCH v2 1/2] trace: include CPU index in trace_memory_region_*() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hollis Blanchard Cc: qemu-devel@nongnu.org --NtwzykIc2mflq5ck Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 02, 2016 at 12:12:54PM -0800, Hollis Blanchard wrote: > Knowing which CPU performed an action is essential for understanding SMP = guest > behavior. >=20 > However, cpu_physical_memory_rw() may be executed by a machine init funct= ion, > before any VCPUs are running, when there is no CPU running ('current_cpu'= is > NULL). In this case, store -1 in the trace record as the CPU index. Trace > analysis tools may need to be aware of this special case. >=20 > Signed-off-by: Hollis Blanchard > --- > v2: use get_cpu_index() helper function > --- > memory.c | 32 ++++++++++++++++++++------------ > trace-events | 8 ++++---- > 2 files changed, 24 insertions(+), 16 deletions(-) Thanks, applied to my tracing tree: https://github.com/stefanha/qemu/commits/tracing Stefan --NtwzykIc2mflq5ck Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJW2aX5AAoJEJykq7OBq3PIuusH/i9DRXHNuJKqMQmIW9Pez/i8 ZdIl2kBHYMCGhgSPAqTkGjwe9fG4nqw475dd+xCHeOWD+kg/plSucH4JnxPHktLK Sv0bsjRgQE9oSiBpP5JFIiFcq9kazy1g0F4nIDODCB/mZeqV0jVfNDctsr+MVLoZ /U3sWnKThMFZi25/3e/phJQjx4aylM9Tdep1PT/5xMhe8OB+abvrBVC3OrjpSSkv zh4oBmMUBjchLDx2k+LRXEhodCeMIxLr+udvczY8leD9Dm+SF2frI1v3AcyqniGQ O3ZGRWPK5m4q6yh0v4J20i01kYxsSHR8GaPAEv3+CRZ5r55+tlWH7dJzxlueGQ0= =m4OX -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck--