mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
trace: push reading of events up a level to tracetool main
Move the reading of events out of the 'tracetool.generate' method and into tracetool.main, so that the latter is not tied to generating from a single source of events. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1475588159-30598-19-git-send-email-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
d1b97bcea3
commit
9096b78a38
2 changed files with 6 additions and 6 deletions
|
@ -129,8 +129,10 @@ def main(args):
|
|||
if probe_prefix is None:
|
||||
probe_prefix = ".".join(["qemu", target_type, target_name])
|
||||
|
||||
events = tracetool.read_events(sys.stdin)
|
||||
|
||||
try:
|
||||
tracetool.generate(sys.stdin, arg_format, arg_backends,
|
||||
tracetool.generate(events, arg_format, arg_backends,
|
||||
binary=binary, probe_prefix=probe_prefix)
|
||||
except tracetool.TracetoolError as e:
|
||||
error_opt(str(e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue