mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
monitor: add support for boolean statistics
The next version of Linux will introduce boolean statistics, which can only have 0 or 1 values. Support them in the schema and in the HMP command. Suggested-by: Amneesh Singh <natto@weirdnatto.in> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
0ebf76aae5
commit
1ca1a7ec36
2 changed files with 5 additions and 1 deletions
|
@ -38,11 +38,12 @@
|
|||
# @bytes: stat reported in bytes.
|
||||
# @seconds: stat reported in seconds.
|
||||
# @cycles: stat reported in clock cycles.
|
||||
# @boolean: stat is a boolean value.
|
||||
#
|
||||
# Since: 7.1
|
||||
##
|
||||
{ 'enum' : 'StatsUnit',
|
||||
'data' : [ 'bytes', 'seconds', 'cycles' ] }
|
||||
'data' : [ 'bytes', 'seconds', 'cycles', 'boolean' ] }
|
||||
|
||||
##
|
||||
# @StatsProvider:
|
||||
|
@ -123,6 +124,7 @@
|
|||
##
|
||||
{ 'alternate': 'StatsValue',
|
||||
'data': { 'scalar': 'uint64',
|
||||
'boolean': 'bool',
|
||||
'list': [ 'uint64' ] } }
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue