qapi: fixes to trace event cleanups
cover qapi: fixes to trace event cleanups
Daniel P. Berrangé (2):
docs: document 'unavailable' state is no longer output
qapi: correctly mark 'ignore-unavailable' deprecated
docs/about/deprecated.rst | 8 ++++++++ docs/about/removed-features.rst | 8 ++++++++ qapi/trace.json | 10 ++++++++-- 3 files changed, 24 insertions(+), 2 deletions(-)
Signature · 1 line
2.56.1
PATCH 1/2 docs: document 'unavailable' state is no longer output
The concept of unavailable trace events no longer exists so this enum entry was obsolete.
--- docs/about/removed-features.rst | 8 ++++++++ 1 file changed, 8 insertions(+)
docs/about/removed-features.rst +8 -0
@@ -802,6 +802,14 @@ The ability to instrument QEMU helper functions with vCPU-aware trace points was removed in 7.0. +``unavailable`` state no longer reported for trace events (removed in 11.2) +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Trace events are now unconditionally built-in to all QEMU builds, +so the concept of an 'unavailable' trace event no longer exists. +The ``TraceEventState`` value ``unavailable`` can thus never +be reported and has been removed from the schema. + Human Monitor Protocol (HMP) commands -------------------------------------
Signature · 1 line
2.56.1
Re: [PATCH 1/2] docs: document 'unavailable' state is no longer output
Quoted 3 lines · Daniel P. Berrangé
The concept of unavailable trace events no longer exists so this enum entry was obsolete.
Suggest
Quoted 3 lines
Reported-by Marc-André Lureau <[email protected]>Reported-by Markus Armbruster <[email protected]>Signed-off-by Daniel P. Berrangé <[email protected]>
Re: [PATCH 1/2] docs: document 'unavailable' state is no longer output
Quoted 9 lines · Markus Armbruster
Quoted 3 lines · Daniel P. Berrangé
The concept of unavailable trace events no longer exists so this enum entry was obsolete.
Suggest
Fixes 38171f59ccbe ("qapi/qom: Make @qapi-type mandatory in output of qom-list etc.")
Pasto! Instead
Quoted 5 lines
Quoted 3 lines
Reported-by Marc-André Lureau <[email protected]>Reported-by Markus Armbruster <[email protected]>Signed-off-by Daniel P. Berrangé <[email protected]>Reviewed-by Markus Armbruster <[email protected]>
PATCH 2/2 qapi: correctly mark 'ignore-unavailable' deprecated
In reply to Daniel P. BerrangéFollow the proper QAPI syntax for deprecations and mention it in the documentation.
--- docs/about/deprecated.rst | 8 ++++++++ qapi/trace.json | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-)
docs/about/deprecated.rst +8 -0
@@ -182,6 +182,14 @@ execution. This special treatment of ``"no"`` is deprecated. Use an empty string instead. In a future version, ``"no"`` will be treated as a plain file name. +``ignore-unavailable`` in ``trace-event-set-state`` (since 11.2) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Trace events are now unconditionally built-in to all QEMU builds, +so the concept of an 'unavailable' trace event no longer exists. +The ``ignore-unavailable`` parameter in ``trace-event-set-state`` +thus has no effect and should no longer be used. + Human Machine Protocol (HMP) commands -------------------------------------
qapi/trace.json +8 -2
@@ -67,10 +67,14 @@ # @enable: Whether to enable tracing. # # @ignore-unavailable: Do not match unavailable events with @name. -# Deprecated: since 11.2 # # Since: 2.2 # +# Features: +# +# @deprecated: @ignore-unavailable no longer has any effect +# (since 11.2) +# # .. qmp-example:: # # -> { "execute": "trace-event-set-state",
@@ -78,4 +82,6 @@ # <- { "return": {} } ## { 'command': 'trace-event-set-state', - 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool' } } + 'data': {'name': 'str', 'enable': 'bool', + '*ignore-unavailable': { 'type': 'bool', + 'features': ['deprecated'] } } }
Signature · 1 line
2.56.1
Re: [PATCH 2/2] qapi: correctly mark 'ignore-unavailable' deprecated
Quoted 3 lines · Daniel P. Berrangé
Follow the proper QAPI syntax for deprecations and mention it in the documentation.
Quoted 3 lines
Reported-by Marc-André Lureau <[email protected]>Reported-by Markus Armbruster <[email protected]>Signed-off-by Daniel P. Berrangé <[email protected]>
Re: [PATCH 2/2] qapi: correctly mark 'ignore-unavailable' deprecated
In reply to Daniel P. BerrangéQuoted 7 lines · Daniel P. Berrangé
Follow the proper QAPI syntax for deprecations and mention it in the documentation.
Reported-by Marc-André Lureau <[email protected]>Reported-by Markus Armbruster <[email protected]>Signed-off-by Daniel P. Berrangé <[email protected]>
Quoted 55 lines
--- docs/about/deprecated.rst | 8 ++++++++ qapi/trace.json | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-)docs/about/deprecated.rst +8
-0@@ -182,6 +182,14 @@ execution. This special treatment of ``"no"`` is deprecated. Use an empty string instead. In a future version, ``"no"`` will be treated as a plain file name. +``ignore-unavailable`` in ``trace-event-set-state`` (since 11.2) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Trace events are now unconditionally built-in to all QEMU builds, +so the concept of an 'unavailable' trace event no longer exists. +The ``ignore-unavailable`` parameter in ``trace-event-set-state`` +thus has no effect and should no longer be used. + Human Machine Protocol (HMP) commands -------------------------------------qapi/trace.json +8
-3@@ -67,10 +67,14 @@ # @enable: Whether to enable tracing. # # @ignore-unavailable: Do not match unavailable events with @name. -# Deprecated: since 11.2 # # Since: 2.2 # +# Features: +# +# @deprecated: @ignore-unavailable no longer has any effect +# (since 11.2) +# # .. qmp-example:: # # -> { "execute": "trace-event-set-state",@@ -78,4 +82,6 @@ # <- { "return": {} } ## { 'command': 'trace-event-set-state', - 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool' } } + 'data': {'name': 'str', 'enable': 'bool', + '*ignore-unavailable': { 'type': 'bool', + 'features': ['deprecated'] } } } --2.56.1
Quoted 14 lines · Daniel P. Berrangé
Daniel P. Berrangé (2):
docs: document 'unavailable' state is no longer output
qapi: correctly mark 'ignore-unavailable' deprecateddocs/about/deprecated.rst | 8 ++++++++ docs/about/removed-features.rst | 8 ++++++++ qapi/trace.json | 10 ++++++++-- 3 files changed, 24 insertions(+), 2 deletions(-)Signature · 1 line
2.56.1