[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 14/20] trace: dynamically allocate trace_dsta
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v5 14/20] trace: dynamically allocate trace_dstate in CPUState |
Date: |
Mon, 3 Oct 2016 15:04:23 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Wed, Sep 28, 2016 at 02:08:17PM +0100, Daniel P. Berrange wrote:
> The CPUState struct has a bitmap tracking which VCPU
> events are currently active. This is indexed based on
> the event ID values, and sized according the maximum
> TraceEventVCPUID enum value.
>
> When we start dynamically assigning IDs at runtime,
> we can't statically declare a bitmap without making
> an assumption about the max event count. This problem
> can be solved by dynamically allocating the per-CPU
> dstate bitmap.
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
> include/qom/cpu.h | 9 ++++++---
> qom/cpu.c | 8 ++++++--
> trace/control.c | 5 +++++
> trace/control.h | 7 +++++++
> 4 files changed, 24 insertions(+), 5 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v5 14/20] trace: dynamically allocate trace_dstate in CPUState,
Stefan Hajnoczi <=