diff options
author | Paolo Bonzini | 2022-07-14 14:08:09 +0200 |
---|---|---|
committer | Paolo Bonzini | 2022-07-18 18:51:17 +0200 |
commit | 1ca1a7ec3637bc19818eab8085cbbe273217ad68 (patch) | |
tree | 7f75de33538fb46f235fecf7064da29b30bef5a8 /qapi | |
parent | Merge tag 'nvme-next-pull-request' of git://git.infradead.org/qemu-nvme into ... (diff) | |
download | qemu-1ca1a7ec3637bc19818eab8085cbbe273217ad68.tar.gz qemu-1ca1a7ec3637bc19818eab8085cbbe273217ad68.tar.xz qemu-1ca1a7ec3637bc19818eab8085cbbe273217ad68.zip |
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>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/stats.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi/stats.json b/qapi/stats.json index 2f8bfe8fdb..57db5b1c74 100644 --- a/qapi/stats.json +++ b/qapi/stats.json @@ -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' ] } } ## |