Skip to contentSkip to conversation

qapi: fixes to trace event cleanups

PATCH In review Daniel P. Berrangé 4 participants 8 messages Nov 12 – Nov 17

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 225841bd9bb..3a05891db2b 100644
@@ -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
Reviewed-by on v1 1/2
#2 lore raw

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

Fixes 38171f59ccbe ("qapi/qom: Make @qapi-type mandatory in output of qom-list etc.")
Quoted 3 lines
#3 lore raw

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

Fixes f5c576734881 ("trace: stop tracking static disabled state")
Quoted 5 lines
Quoted 3 lines
#4 lore raw

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
index 0891bbc44de..a39feb23f5b 100644
@@ -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
index 8533e378977..5792a436115 100644
@@ -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
Reviewed-by on v1 2/2
#5 lore raw

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.

Fixes f5c576734881 ("trace: stop tracking static disabled state")
Quoted 3 lines
Reviewed-by on v1 2/2
#6 lore raw

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.

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
index 0891bbc44de..a39feb23f5b 100644
@@ -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
index 8533e378977..5792a436115 100644
@@ -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

Reviewed-by on the v1 series
#7 lore raw
In reply to Daniel P. Berrangé
Quoted 14 lines · Daniel P. Berrangé

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