Skip to content

Commit

Permalink
qemu.py: redirect qemu outputs on --log
Browse files Browse the repository at this point in the history
This allows to redirect qemu log output based on recent QemuNyx changes.

When building QemuNyx in debug mode, additional output can be produced via
the 'nyx' log facility. Enable this by default when --log is given.
  • Loading branch information
il-steffen committed Nov 7, 2022
1 parent 19bf493 commit 1a07f29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kafl_fuzzer/worker/qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ def __init__(self, pid, config, debug_mode=False, notifiers=True, resume=False):

self.cmd.extend(["-m", str(config.qemu_memory)])

if self.debug_mode and self.config.log:
#self.cmd.extend("-trace", "events=/tmp/events"])
#self.cmd.extend("-d", "kafl", "-D", "self.qemu_trace_log"])
pass
if self.config.log:
self.cmd.extend(["-d", "nyx", "-D", self.qemu_trace_log])
#self.cmd.extend(["-d", "kafl,trace:kvm*"])
#self.cmd.extend(["-trace", "events=/tmp/events"])

if self.config.gdbserver:
self.cmd.extend(["-s", "-S"])
Expand Down

0 comments on commit 1a07f29

Please sign in to comment.