[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 21/20] linux-user/bsd-user: initialize trace
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH v6 21/20] linux-user/bsd-user: initialize trace events subsystem |
Date: |
Fri, 7 Oct 2016 15:14:09 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
Just Cc'ing Stefan this time
On Fri, Oct 07, 2016 at 02:51:17PM +0100, Daniel P. Berrange wrote:
> The bsd-user/linux-user programs make use of the CPU emulation
> code and this now requires that the trace events subsystem
> is enabled, otherwise it'll crash trying to allocate an empty
> trace events bitmap for the CPU object.
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
>
> Stefan, technically this patch ought to be squashed into:
>
> [PATCH v6 13/20] trace: provide mechanism for registering trace events
>
> bsd-user/main.c | 1 +
> linux-user/main.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/bsd-user/main.c b/bsd-user/main.c
> index d803d3e..90d5bbd 100644
> --- a/bsd-user/main.c
> +++ b/bsd-user/main.c
> @@ -730,6 +730,7 @@ int main(int argc, char **argv)
> if (argc <= 1)
> usage();
>
> + module_call_init(MODULE_INIT_TRACE);
> qemu_init_cpu_list();
> module_call_init(MODULE_INIT_QOM);
>
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 9e4b430..0e31dad 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -4158,6 +4158,7 @@ int main(int argc, char **argv, char **envp)
> int ret;
> int execfd;
>
> + module_call_init(MODULE_INIT_TRACE);
> qemu_init_cpu_list();
> module_call_init(MODULE_INIT_QOM);
>
> --
> 2.7.4
>
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
- [Qemu-devel] [PATCH v6 17/20] trace: rename _read_events to read_events, (continued)
- [Qemu-devel] [PATCH v6 17/20] trace: rename _read_events to read_events, Daniel P. Berrange, 2016/10/04
- [Qemu-devel] [PATCH v6 19/20] trace: pass trace-events to tracetool as a positional param, Daniel P. Berrange, 2016/10/04
- [Qemu-devel] [PATCH v6 18/20] trace: push reading of events up a level to tracetool main, Daniel P. Berrange, 2016/10/04
- [Qemu-devel] [PATCH v6 20/20] trace: introduce a formal group name for trace events, Daniel P. Berrange, 2016/10/04
- Re: [Qemu-devel] [PATCH v6 00/20] Refactor trace to allow modular build, Stefan Hajnoczi, 2016/10/05
- Re: [Qemu-devel] [PATCH v6 00/20] Refactor trace to allow modular build, Stefan Hajnoczi, 2016/10/05
- [Qemu-devel] [PATCH v6 21/20] linux-user/bsd-user: initialize trace events subsystem, Daniel P. Berrange, 2016/10/07