summary refs log tree commit diff stats
path: root/scripts/tracetool/backend/simple.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/simple.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/simple.py')
-rw-r--r--scripts/tracetool/backend/simple.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backend/simple.py
index 2688d4b64b..7c84c06b20 100644
--- a/scripts/tracetool/backend/simple.py
+++ b/scripts/tracetool/backend/simple.py
@@ -37,11 +37,7 @@ def generate_h_begin(events, group):
 
 def generate_h(event, group):
     event_id = 'TRACE_' + event.name.upper()
-    if "vcpu" in event.properties:
-        # already checked on the generic format code
-        cond = "true"
-    else:
-        cond = "trace_event_get_state(%s)" % event_id
+    cond = "trace_event_get_state(%s)" % event_id
     out('    if (%(cond)s) {',
         '        _simple_%(api)s(%(args)s);',
         '    }',