[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechan
From: |
Lluís Vilanova |
Subject: |
Re: [Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechanism. |
Date: |
Tue, 25 Mar 2014 20:27:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
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: address@hidden
> + *
> + * Developed by :
> + * Frederic Konrad <address@hidden>
> + *
> + * 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 <http://www.gnu.org/licenses/>.
> + *
> + */
> +
> +#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
- [Qemu-devel] [RFC PATCH v2 00/12] Reverse execution., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 01/12] icount: put icount variables into TimerState., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 05/12] icount: check for icount clock deadline when cpu loop exits., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 03/12] migration: make qemu_savevm_state public., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 07/12] timer: add cpu_icount_to_ns function., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 11/12] cexe: synchronize icount on the next event., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechanism., fred . konrad, 2014/03/25
- Re: [Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechanism.,
Lluís Vilanova <=
- [Qemu-devel] [RFC PATCH v2 04/12] icount: introduce icount timer., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 02/12] migration: migrate icount fields., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 10/12] cpu-exec: trigger a debug request when rexec stops., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 09/12] gdbstub: allow reverse execution in gdb stub., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 06/12] icount: make icount extra computed on icount clock as well., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 12/12] cexe: allow to enable reverse execution., fred . konrad, 2014/03/25