mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
userland: show stdout again?
This commit is contained in:
7
run
7
run
@@ -203,13 +203,12 @@ Run QEMU with VNC instead of the default SDL. Connect to it with:
|
||||
)
|
||||
|
||||
def timed_main(self):
|
||||
show_stdout = True
|
||||
# Common qemu / gem5 logic.
|
||||
# nokaslr:
|
||||
# * https://unix.stackexchange.com/questions/397939/turning-off-kaslr-to-debug-linux-kernel-using-qemu-and-gdb
|
||||
# * https://stackoverflow.com/questions/44612822/unable-to-debug-kernel-with-qemu-gdb/49840927#49840927
|
||||
# Turned on by default since v4.12
|
||||
raise_on_failure = True
|
||||
show_stdout = True
|
||||
kernel_cli = 'console_msg_format=syslog nokaslr norandmaps panic=-1 printk.devkmsg=on printk.time=y rw'
|
||||
if self.env['kernel_cli'] is not None:
|
||||
kernel_cli += ' {}'.format(self.env['kernel_cli'])
|
||||
@@ -427,8 +426,6 @@ Run QEMU with VNC instead of the default SDL. Connect to it with:
|
||||
qemu_user_and_system_options +
|
||||
debug_args
|
||||
)
|
||||
show_stdout = False
|
||||
raise_on_failure = False
|
||||
else:
|
||||
if not os.path.exists(self.env['image']):
|
||||
raise_image_not_found()
|
||||
@@ -600,7 +597,7 @@ Run QEMU with VNC instead of the default SDL. Connect to it with:
|
||||
cmd_file=self.env['run_cmd_file'],
|
||||
extra_env=extra_env,
|
||||
out_file=out_file,
|
||||
raise_on_failure=raise_on_failure,
|
||||
raise_on_failure=False,
|
||||
show_stdout=show_stdout,
|
||||
)
|
||||
if exit_status == 0:
|
||||
|
||||
Reference in New Issue
Block a user