summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-10-20 15:23:27 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-10-20 15:23:27 +0200
commit921500e890b8507d345edadff8d4c79de2e34cb2 (patch)
treec1cb52076c151382c2e48c54daf1b3f584726834 /bin
parent7d14ef14dbb31657e7754138fb099551ad016aab (diff)
kconfig: support repeated measurements of identical configurations
Diffstat (limited to 'bin')
-rwxr-xr-xbin/explore-kconfig.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/explore-kconfig.py b/bin/explore-kconfig.py
index deb19b7..a43f37b 100755
--- a/bin/explore-kconfig.py
+++ b/bin/explore-kconfig.py
@@ -55,6 +55,17 @@ def main():
help="Explore neighbourhood of successful random configurations",
)
parser.add_argument(
+ "--repeatable",
+ action="store_true",
+ help="Allow repeated measurements of already benchmarked configurations",
+ )
+ parser.add_argument(
+ "--repeat",
+ type=int,
+ metavar="N",
+ help="Run each benchmark N times. Implies --repeatable",
+ )
+ parser.add_argument(
"--clean-command", type=str, help="Clean command", default="make clean"
)
parser.add_argument(
@@ -96,6 +107,11 @@ def main():
kconf.randconfig_command = args.randconfig_command
if args.kconfig_file:
kconf.kconfig = args.kconfig_file
+ if args.repeatable:
+ kconf.repeatable = args.repeatable
+ if args.repeat:
+ kconf.repeat = args.repeat - 1
+ kconf.repeatable = True
kconf.run_nfpkeys()