|
From: | Paolo Bonzini |
Subject: | Re: [PATCH 7/8] qmp: add filtering of statistics by name |
Date: | Tue, 24 May 2022 18:49:13 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
On 5/24/22 15:08, Markus Armbruster wrote:
Did you drop the parameter names intentionally?-typedef void SchemaRetrieveFunc(StatsSchemaList **result, Error **errp); + strList *names, strList *targets, Error **errp); +typedef void SchemaRetrieveFunc(StatsSchemaList **, Error **);
No, I didn't.
+ /* No names allowed is the same as skipping the provider. */Long line.+ return false;Any other elements of filter->providers that match @provider will be silently ignored. Is this what you want?
Hmm, key/value pairs are ugly in QMP.I'll see if I can make it work nicely without inlining stats_provider_requested() in the caller.
Uh, do we leak @p_names if earlier elements matched?
No, it's not copied so there are no leaks.
[Prev in Thread] | Current Thread | [Next in Thread] |