qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 6/8] hmp: add filtering of statistics by provider


From: Paolo Bonzini
Subject: Re: [PATCH v3 6/8] hmp: add filtering of statistics by provider
Date: Wed, 25 May 2022 16:01:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 5/25/22 12:35, Dr. David Alan Gilbert wrote:
+        return filter;
+    }
+
+    /* "info stats" can only query either one or all the providers.  */
+    StatsRequest *request = g_new0(StatsRequest, 1);
+    request->provider = provider;
+    StatsRequestList *request_list = g_new0(StatsRequestList, 1);
Why that g_new0 there? isn't that request_list = NULL and let the
PREPEND below do the alloc?


Yes, it is fixed in patch 8.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]