Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to stop after goldenrun has completed #74

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def controller(
queuedepth,
compressionlevel,
qemu_output,
goldenrun_only,
goldenrun=True,
logger=hdf5collector,
qemu_pre=None,
Expand Down Expand Up @@ -290,6 +291,10 @@ def controller(
(config_qemu["max_instruction_count"], goldenrun_data, faultlist),
lzma.open("bkup_goldenrun_results.xz", "wb"),
)

clogger.info(f"Got {len(faultlist)} fault entries")
if goldenrun_only:
return config_qemu
else:
(
config_qemu["max_instruction_count"],
Expand Down Expand Up @@ -514,6 +519,12 @@ def get_argument_parser():
action="store_true",
required=False,
)
parser.add_argument(
"--goldenrun-only",
help="Only run goldenrun to create the goldenrun backup file",
action="store_true",
required=False,
)
return parser


Expand Down Expand Up @@ -550,6 +561,12 @@ def process_arguments(args):
)
exit(1)

if args.goldenrun_only:
parguments["goldenrun_only"] = True
parguments["goldenrun"] = True
else:
parguments["goldenrun_only"] = False

qemu_conf = json.load(args.qemu)
args.qemu.close()
print(qemu_conf)
Expand Down Expand Up @@ -658,6 +675,7 @@ def init_logging():
parguments["queuedepth"], # queuedepth
parguments["compressionlevel"], # compressionlevel
args.debug, # qemu_output
parguments["goldenrun_only"],
parguments["goldenrun"], # goldenrun
hdf5collector, # logger
None, # qemu_pre
Expand Down