summary refs log tree commit diff stats
path: root/scripts/tracetool/backend/log.py
diff options
context:
space:
mode:
authorTanish Desai <tanishdesai37@gmail.com>2025-07-22 11:43:52 +0000
committerStefan Hajnoczi <stefanha@redhat.com>2025-07-22 10:44:49 -0400
commit2b1791323e7ce043cbc3857699e5d5b0ad021cbc (patch)
tree10e0ba13a93333a14f11905d238d793d97508341 /scripts/tracetool/backend/log.py
parentebcc602aae19c06a4f492da3920b64c8033f0d7f (diff)
downloadfocaccia-qemu-2b1791323e7ce043cbc3857699e5d5b0ad021cbc.tar.gz
focaccia-qemu-2b1791323e7ce043cbc3857699e5d5b0ad021cbc.zip
tracetool: removed the unused vcpu property
The vcpu property is no longer used in these backends. Removing it avoids
unnecessary checks and simplifies the code generation for these trace
backends.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Tanish Desai <tanishdesai37@gmail.com>
Message-id: 20250722114352.3624-1-tanishdesai37@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/tracetool/backend/log.py')
-rw-r--r--scripts/tracetool/backend/log.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/tracetool/backend/log.py b/scripts/tracetool/backend/log.py
index 17ba1cd90e..5c9d09dd11 100644
--- a/scripts/tracetool/backend/log.py
+++ b/scripts/tracetool/backend/log.py
@@ -29,11 +29,7 @@ def generate_h(event, group):
     if len(event.args) > 0:
         argnames = ", " + argnames
 
-    if "vcpu" in event.properties:
-        # already checked on the generic format code
-        cond = "true"
-    else:
-        cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper())
+    cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper())
 
     out('    if (%(cond)s && qemu_loglevel_mask(LOG_TRACE)) {',
         '        if (message_with_timestamp) {',