Received: from eggs.gnu.org ([2001:4830:134:3::10]:35133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSX0H-0005Dr-9e for qemu-devel@nongnu.org; Tue, 25 Mar 2014 15:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSX0B-0000QB-0u for qemu-devel@nongnu.org; Tue, 25 Mar 2014 15:27:17 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:35669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSX0A-0000Pt-KE for qemu-devel@nongnu.org; Tue, 25 Mar 2014 15:27:10 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1395764200-7379-1-git-send-email-fred.konrad@greensocs.com> <1395764200-7379-9-git-send-email-fred.konrad@greensocs.com> Date: Tue, 25 Mar 2014 20:27:09 +0100 In-Reply-To: <1395764200-7379-9-git-send-email-fred.konrad@greensocs.com> (fred konrad's message of "Tue, 25 Mar 2014 17:16:36 +0100") Message-ID: <8761n2w036.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechanism. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fred.konrad@greensocs.com Cc: pbonzini@redhat.com, mark.burton@greensocs.com, qemu-devel@nongnu.org fred konrad writes: [...] > diff --git a/reverse-execution.c b/reverse-execution.c > new file mode 100644 > index 0000000..44d1b80 > --- /dev/null > +++ b/reverse-execution.c > @@ -0,0 +1,326 @@ > +/* > + * reverse execution. > + * > + * Copyright (C) 2014 : GreenSocs Ltd > + * http://www.greensocs.com/ , email: info@greensocs.com > + * > + * Developed by : > + * Frederic Konrad > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation, either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License along > + * with this program; if not, see . > + * > + */ > + > +#include "qemu/timer.h" > +#include "sysemu/sysemu.h" > +#include "migration/qemu-file.h" > + > +#include "reverse-execution.h" > + > +#define DEBUG_REV_EXEC > + > +#ifdef DEBUG_REV_EXEC > +#define DPRINTF(fmt, ...) \ > +do { printf("rexec: " fmt , ## __VA_ARGS__); } while (0) > +#else > +#define DPRINTF(fmt, ...) do { } while (0) > +#endif This code should probably use trace events instead of DPRINTFs. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth