mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
tracing: excise the tcg related from tracetool
Now we have no TCG trace events and no longer handle them in the code we can remove the handling from the tracetool to generate them. vcpu tracing is still available although the existing syscall event is an exercise in redundancy (plugins and -strace can also get the information). Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Cc: Luis Vilanova <vilanova@imperial.ac.uk> Cc: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20220204204335.1689602-21-alex.bennee@linaro.org>
This commit is contained in:
parent
d201cf7a73
commit
126d4123c5
9 changed files with 4 additions and 350 deletions
|
@ -19,19 +19,9 @@ from tracetool import Arguments, try_import
|
|||
def transform_event(event):
|
||||
"""Transform event to comply with the 'vcpu' property (if present)."""
|
||||
if "vcpu" in event.properties:
|
||||
# events with 'tcg-trans' and 'tcg-exec' are auto-generated from
|
||||
# already-patched events
|
||||
assert "tcg-trans" not in event.properties
|
||||
assert "tcg-exec" not in event.properties
|
||||
|
||||
event.args = Arguments([("void *", "__cpu"), event.args])
|
||||
if "tcg" in event.properties:
|
||||
fmt = "\"cpu=%p \""
|
||||
event.fmt = [fmt + event.fmt[0],
|
||||
fmt + event.fmt[1]]
|
||||
else:
|
||||
fmt = "\"cpu=%p \""
|
||||
event.fmt = fmt + event.fmt
|
||||
fmt = "\"cpu=%p \""
|
||||
event.fmt = fmt + event.fmt
|
||||
return event
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue