Re: [PATCH 09/19] src: add constants for domain stats 'cpu.' parameters

2025-03-04 Thread Peter Krempa
On Tue, Mar 04, 2025 at 15:43:10 +, Daniel P. Berrangé wrote: > On Tue, Mar 04, 2025 at 04:02:28PM +0100, Peter Krempa wrote: > > On Tue, Mar 04, 2025 at 14:04:04 +, Daniel P. Berrangé wrote: > > > Contrary to most APIs returning typed parameters, there are no constants > > > defined for th

Re: [PATCH 09/19] src: add constants for domain stats 'cpu.' parameters

2025-03-04 Thread Daniel P . Berrangé
On Tue, Mar 04, 2025 at 04:02:28PM +0100, Peter Krempa wrote: > On Tue, Mar 04, 2025 at 14:04:04 +, Daniel P. Berrangé wrote: > > Contrary to most APIs returning typed parameters, there are no constants > > defined for the domain stats data keys. This is was because many of the > > keys needs t

Re: [PATCH 09/19] src: add constants for domain stats 'cpu.' parameters

2025-03-04 Thread Peter Krempa
On Tue, Mar 04, 2025 at 14:04:04 +, Daniel P. Berrangé wrote: > Contrary to most APIs returning typed parameters, there are no constants > defined for the domain stats data keys. This is was because many of the > keys needs to be dynamically constructed using one or more array index > values. >

[PATCH 09/19] src: add constants for domain stats 'cpu.' parameters

2025-03-04 Thread Daniel P . Berrangé
Contrary to most APIs returning typed parameters, there are no constants defined for the domain stats data keys. This is was because many of the keys needs to be dynamically constructed using one or more array index values. It is possible to define constants while still supporting dynamic array in