diff options
author | Tanish Desai <tanishdesai37@gmail.com> | 2025-07-22 11:43:52 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2025-07-22 10:44:49 -0400 |
commit | 2b1791323e7ce043cbc3857699e5d5b0ad021cbc (patch) | |
tree | 10e0ba13a93333a14f11905d238d793d97508341 /scripts/tracetool/backend/log.py | |
parent | ebcc602aae19c06a4f492da3920b64c8033f0d7f (diff) | |
download | qemu-tracing.zip qemu-tracing.tar.gz qemu-tracing.tar.bz2 |
tracetool: removed the unused vcpu propertytracing
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.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/tracetool/backend/log.py b/scripts/tracetool/backend/log.py index 17ba1cd..5c9d09d 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) {', |