Options.py revision 11626
14403Srdreslin@umich.edu# Copyright (c) 2013 ARM Limited 21693Sstever@eecs.umich.edu# All rights reserved. 31693Sstever@eecs.umich.edu# 41693Sstever@eecs.umich.edu# The license below extends only to copyright in the software and shall 51693Sstever@eecs.umich.edu# not be construed as granting a license to any other intellectual 61693Sstever@eecs.umich.edu# property including but not limited to intellectual property relating 71693Sstever@eecs.umich.edu# to a hardware implementation of the functionality of the software 81693Sstever@eecs.umich.edu# licensed hereunder. You may use the software subject to the license 91693Sstever@eecs.umich.edu# terms below provided that you ensure that this notice is replicated 101693Sstever@eecs.umich.edu# unmodified and in its entirety in all distributions of the software, 111693Sstever@eecs.umich.edu# modified or unmodified, in source code or in binary form. 121693Sstever@eecs.umich.edu# 131693Sstever@eecs.umich.edu# Copyright (c) 2006-2008 The Regents of The University of Michigan 141693Sstever@eecs.umich.edu# All rights reserved. 151693Sstever@eecs.umich.edu# 161693Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 171693Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are 181693Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright 191693Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 201693Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 211693Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 221693Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution; 231693Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its 241693Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from 251693Sstever@eecs.umich.edu# this software without specific prior written permission. 261693Sstever@eecs.umich.edu# 271693Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 281693Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 293358Srdreslin@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 303358Srdreslin@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 311516SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 326654Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 336654Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 346654Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 356654Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 363358Srdreslin@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 373358Srdreslin@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 386654Snate@binkert.org# 396654Snate@binkert.org# Authors: Lisa Hsu 401516SN/A 413358Srdreslin@umich.eduimport m5 423358Srdreslin@umich.edufrom m5.defines import buildEnv 433358Srdreslin@umich.edufrom m5.objects import * 443358Srdreslin@umich.edufrom Benchmarks import * 453358Srdreslin@umich.edu 463358Srdreslin@umich.eduimport CpuConfig 473358Srdreslin@umich.eduimport MemConfig 483358Srdreslin@umich.eduimport PlatformConfig 493358Srdreslin@umich.edu 503358Srdreslin@umich.edufrom FSConfig import os_types 513358Srdreslin@umich.edu 523358Srdreslin@umich.edudef _listCpuTypes(option, opt, value, parser): 533360Srdreslin@umich.edu CpuConfig.print_cpu_list() 543358Srdreslin@umich.edu sys.exit(0) 553360Srdreslin@umich.edu 563360Srdreslin@umich.edudef _listMemTypes(option, opt, value, parser): 573360Srdreslin@umich.edu MemConfig.print_mem_list() 585255Ssaidi@eecs.umich.edu sys.exit(0) 593360Srdreslin@umich.edu 603360Srdreslin@umich.edudef _listPlatformTypes(option, opt, value, parser): 613360Srdreslin@umich.edu PlatformConfig.print_platform_list() 625255Ssaidi@eecs.umich.edu sys.exit(0) 633358Srdreslin@umich.edu 644403Srdreslin@umich.edudef addCommonOptions(parser): 653360Srdreslin@umich.edu # system options 663358Srdreslin@umich.edu parser.add_option("--list-cpu-types", 673358Srdreslin@umich.edu action="callback", callback=_listCpuTypes, 683358Srdreslin@umich.edu help="List available CPU types") 693358Srdreslin@umich.edu parser.add_option("--cpu-type", type="choice", default="atomic", 703358Srdreslin@umich.edu choices=CpuConfig.cpu_names(), 713358Srdreslin@umich.edu help = "type of cpu to run with") 723358Srdreslin@umich.edu parser.add_option("--checker", action="store_true"); 733358Srdreslin@umich.edu parser.add_option("-n", "--num-cpus", type="int", default=1) 743358Srdreslin@umich.edu parser.add_option("--sys-voltage", action="store", type="string", 753360Srdreslin@umich.edu default='1.0V', 763360Srdreslin@umich.edu help = """Top-level voltage for blocks running at system 773360Srdreslin@umich.edu power supply""") 783360Srdreslin@umich.edu parser.add_option("--sys-clock", action="store", type="string", 793358Srdreslin@umich.edu default='1GHz', 803358Srdreslin@umich.edu help = """Top-level clock for blocks running at system 813358Srdreslin@umich.edu speed""") 823358Srdreslin@umich.edu parser.add_option("--cpu-clock", action="store", type="string", 834403Srdreslin@umich.edu default='2GHz', 844403Srdreslin@umich.edu help="Clock for blocks running at CPU speed") 855256Ssaidi@eecs.umich.edu parser.add_option("--smt", action="store_true", default=False, 865255Ssaidi@eecs.umich.edu help = """ 873358Srdreslin@umich.edu Only used if multiple programs are specified. If true, 883358Srdreslin@umich.edu then the number of threads per cpu is same as the 894403Srdreslin@umich.edu number of programs.""") 904403Srdreslin@umich.edu parser.add_option("--elastic-trace-en", action="store_true", 915255Ssaidi@eecs.umich.edu help="""Enable capture of data dependency and instruction 923358Srdreslin@umich.edu fetch traces using elastic trace probe.""") 933358Srdreslin@umich.edu # Trace file paths input to trace probe in a capture simulation and input 944403Srdreslin@umich.edu # to Trace CPU in a replay simulation 955255Ssaidi@eecs.umich.edu parser.add_option("--inst-trace-file", action="store", type="string", 964403Srdreslin@umich.edu help="""Instruction fetch trace file input to 973358Srdreslin@umich.edu Elastic Trace probe in a capture simulation and 983358Srdreslin@umich.edu Trace CPU in a replay simulation""", default="") 994403Srdreslin@umich.edu parser.add_option("--data-trace-file", action="store", type="string", 1005255Ssaidi@eecs.umich.edu help="""Data dependency trace file input to 1014403Srdreslin@umich.edu Elastic Trace probe in a capture simulation and 1023358Srdreslin@umich.edu Trace CPU in a replay simulation""", default="") 1033358Srdreslin@umich.edu 1044403Srdreslin@umich.edu # Memory Options 1055255Ssaidi@eecs.umich.edu parser.add_option("--list-mem-types", 1064403Srdreslin@umich.edu action="callback", callback=_listMemTypes, 1073358Srdreslin@umich.edu help="List available memory types") 1083358Srdreslin@umich.edu parser.add_option("--mem-type", type="choice", default="DDR3_1600_x64", 1094403Srdreslin@umich.edu choices=MemConfig.mem_names(), 1105255Ssaidi@eecs.umich.edu help = "type of memory to use") 1114403Srdreslin@umich.edu parser.add_option("--mem-channels", type="int", default=1, 1124403Srdreslin@umich.edu help = "number of memory channels") 1133358Srdreslin@umich.edu parser.add_option("--mem-ranks", type="int", default=None, 1143358Srdreslin@umich.edu help = "number of memory ranks per channel") 1154403Srdreslin@umich.edu parser.add_option("--mem-size", action="store", type="string", 1165255Ssaidi@eecs.umich.edu default="512MB", 1174403Srdreslin@umich.edu help="Specify the physical memory size (single memory)") 1184403Srdreslin@umich.edu 1194403Srdreslin@umich.edu parser.add_option("-l", "--lpae", action="store_true") 1203360Srdreslin@umich.edu parser.add_option("-V", "--virtualisation", action="store_true") 1214403Srdreslin@umich.edu 1223358Srdreslin@umich.edu parser.add_option("--memchecker", action="store_true") 1233358Srdreslin@umich.edu 1244403Srdreslin@umich.edu # Cache Options 1255255Ssaidi@eecs.umich.edu parser.add_option("--external-memory-system", type="string", 1264403Srdreslin@umich.edu help="use external ports of this port_type for caches") 1273358Srdreslin@umich.edu parser.add_option("--tlm-memory", type="string", 1283358Srdreslin@umich.edu help="use external port for SystemC TLM cosimulation") 1294403Srdreslin@umich.edu parser.add_option("--caches", action="store_true") 1305255Ssaidi@eecs.umich.edu parser.add_option("--l2cache", action="store_true") 1314403Srdreslin@umich.edu parser.add_option("--fastmem", action="store_true") 1323358Srdreslin@umich.edu parser.add_option("--num-dirs", type="int", default=1) 1333358Srdreslin@umich.edu parser.add_option("--num-l2caches", type="int", default=1) 1344403Srdreslin@umich.edu parser.add_option("--num-l3caches", type="int", default=1) 1355256Ssaidi@eecs.umich.edu parser.add_option("--l1d_size", type="string", default="64kB") 1365255Ssaidi@eecs.umich.edu parser.add_option("--l1i_size", type="string", default="32kB") 1374403Srdreslin@umich.edu parser.add_option("--l2_size", type="string", default="2MB") 1383358Srdreslin@umich.edu parser.add_option("--l3_size", type="string", default="16MB") 1393358Srdreslin@umich.edu parser.add_option("--l1d_assoc", type="int", default=2) 1404403Srdreslin@umich.edu parser.add_option("--l1i_assoc", type="int", default=2) 1415255Ssaidi@eecs.umich.edu parser.add_option("--l2_assoc", type="int", default=8) 1424403Srdreslin@umich.edu parser.add_option("--l3_assoc", type="int", default=16) 1434403Srdreslin@umich.edu parser.add_option("--cacheline_size", type="int", default=64) 1444403Srdreslin@umich.edu 1453360Srdreslin@umich.edu # dist-gem5 options 1464403Srdreslin@umich.edu parser.add_option("--dist", action="store_true", 1473358Srdreslin@umich.edu help="Parallel distributed gem5 simulation.") 1483358Srdreslin@umich.edu parser.add_option("--is-switch", action="store_true", 1494403Srdreslin@umich.edu help="Select the network switch simulator process for a"\ 1505255Ssaidi@eecs.umich.edu "distributed gem5 run") 1514403Srdreslin@umich.edu parser.add_option("--dist-rank", default=0, action="store", type="int", 1524403Srdreslin@umich.edu help="Rank of this system within the dist gem5 run.") 1534403Srdreslin@umich.edu parser.add_option("--dist-size", default=0, action="store", type="int", 1543360Srdreslin@umich.edu help="Number of gem5 processes within the dist gem5 run.") 1554403Srdreslin@umich.edu parser.add_option("--dist-server-name", 1563358Srdreslin@umich.edu default="127.0.0.1", 1573358Srdreslin@umich.edu action="store", type="string", 1583358Srdreslin@umich.edu help="Name of the message server host\nDEFAULT: localhost") 1593358Srdreslin@umich.edu parser.add_option("--dist-server-port", 1603358Srdreslin@umich.edu default=2200, 1613358Srdreslin@umich.edu action="store", type="int", 1623358Srdreslin@umich.edu help="Message server listen port\nDEFAULT: 2200") 1633358Srdreslin@umich.edu parser.add_option("--dist-sync-repeat", 1643358Srdreslin@umich.edu default="0us", 1653358Srdreslin@umich.edu action="store", type="string", 1663358Srdreslin@umich.edu help="Repeat interval for synchronisation barriers among dist-gem5 processes\nDEFAULT: --ethernet-linkdelay") 1673358Srdreslin@umich.edu parser.add_option("--dist-sync-start", 1683358Srdreslin@umich.edu default="5200000000000t", 1693358Srdreslin@umich.edu action="store", type="string", 1703358Srdreslin@umich.edu help="Time to schedule the first dist synchronisation barrier\nDEFAULT:5200000000000t") 1713358Srdreslin@umich.edu parser.add_option("--ethernet-linkspeed", default="10Gbps", 1723358Srdreslin@umich.edu action="store", type="string", 1733358Srdreslin@umich.edu help="Link speed in bps\nDEFAULT: 10Gbps") 1743358Srdreslin@umich.edu parser.add_option("--ethernet-linkdelay", default="10us", 1753358Srdreslin@umich.edu action="store", type="string", 1763358Srdreslin@umich.edu help="Link delay in seconds\nDEFAULT: 10us") 1773358Srdreslin@umich.edu 1783358Srdreslin@umich.edu # Enable Ruby 1793358Srdreslin@umich.edu parser.add_option("--ruby", action="store_true") 1803358Srdreslin@umich.edu 1813358Srdreslin@umich.edu # Run duration options 1823358Srdreslin@umich.edu parser.add_option("-m", "--abs-max-tick", type="int", default=m5.MaxTick, 1833358Srdreslin@umich.edu metavar="TICKS", help="Run to absolute simulated tick " \ 1843358Srdreslin@umich.edu "specified including ticks from a restored checkpoint") 1853358Srdreslin@umich.edu parser.add_option("--rel-max-tick", type="int", default=None, 1863358Srdreslin@umich.edu metavar="TICKS", help="Simulate for specified number of" \ 1873358Srdreslin@umich.edu " ticks relative to the simulation start tick (e.g. if " \ 1883358Srdreslin@umich.edu "restoring a checkpoint)") 1893358Srdreslin@umich.edu parser.add_option("--maxtime", type="float", default=None, 1903358Srdreslin@umich.edu help="Run to the specified absolute simulated time in " \ 1913358Srdreslin@umich.edu "seconds") 1921516SN/A parser.add_option("-I", "--maxinsts", action="store", type="int", 1933358Srdreslin@umich.edu default=None, help="""Total number of instructions to 1943358Srdreslin@umich.edu simulate (default: run forever)""") 1953358Srdreslin@umich.edu parser.add_option("--work-item-id", action="store", type="int", 1961516SN/A help="the specific work id for exit & checkpointing") 1973358Srdreslin@umich.edu parser.add_option("--num-work-ids", action="store", type="int", 1983358Srdreslin@umich.edu help="Number of distinct work item types") 1993358Srdreslin@umich.edu parser.add_option("--work-begin-cpu-id-exit", action="store", type="int", 2003358Srdreslin@umich.edu help="exit when work starts on the specified cpu") 2013358Srdreslin@umich.edu parser.add_option("--work-end-exit-count", action="store", type="int", 2021516SN/A help="exit at specified work end count") 2033358Srdreslin@umich.edu parser.add_option("--work-begin-exit-count", action="store", type="int", 2043358Srdreslin@umich.edu help="exit at specified work begin count") 2053358Srdreslin@umich.edu parser.add_option("--init-param", action="store", type="int", default=0, 2063358Srdreslin@umich.edu help="""Parameter available in simulation with m5 2073358Srdreslin@umich.edu initparam""") 2083358Srdreslin@umich.edu parser.add_option("--initialize-only", action="store_true", default=False, 2093358Srdreslin@umich.edu help="""Exit after initialization. Do not simulate time. 2103358Srdreslin@umich.edu Useful when gem5 is run as a library.""") 2113358Srdreslin@umich.edu 2123358Srdreslin@umich.edu # Simpoint options 2133358Srdreslin@umich.edu parser.add_option("--simpoint-profile", action="store_true", 2143358Srdreslin@umich.edu help="Enable basic block profiling for SimPoints") 2153358Srdreslin@umich.edu parser.add_option("--simpoint-interval", type="int", default=10000000, 2163358Srdreslin@umich.edu help="SimPoint interval in num of instructions") 2173358Srdreslin@umich.edu parser.add_option("--take-simpoint-checkpoints", action="store", type="string", 2183358Srdreslin@umich.edu help="<simpoint file,weight file,interval-length,warmup-length>") 2193358Srdreslin@umich.edu parser.add_option("--restore-simpoint-checkpoint", action="store_true", 2203358Srdreslin@umich.edu help="restore from a simpoint checkpoint taken with " + 2213358Srdreslin@umich.edu "--take-simpoint-checkpoints") 2223358Srdreslin@umich.edu 2233358Srdreslin@umich.edu # Checkpointing options 2243358Srdreslin@umich.edu ###Note that performing checkpointing via python script files will override 2253358Srdreslin@umich.edu ###checkpoint instructions built into binaries. 2263358Srdreslin@umich.edu parser.add_option("--take-checkpoints", action="store", type="string", 2273358Srdreslin@umich.edu help="<M,N> take checkpoints at tick M and every N ticks thereafter") 2283358Srdreslin@umich.edu parser.add_option("--max-checkpoints", action="store", type="int", 2293358Srdreslin@umich.edu help="the maximum number of checkpoints to drop", default=5) 2303358Srdreslin@umich.edu parser.add_option("--checkpoint-dir", action="store", type="string", 2313358Srdreslin@umich.edu help="Place all checkpoints in this absolute directory") 2323358Srdreslin@umich.edu parser.add_option("-r", "--checkpoint-restore", action="store", type="int", 2333358Srdreslin@umich.edu help="restore from checkpoint <N>") 2343358Srdreslin@umich.edu parser.add_option("--checkpoint-at-end", action="store_true", 2353358Srdreslin@umich.edu help="take a checkpoint at end of run") 2363358Srdreslin@umich.edu parser.add_option("--work-begin-checkpoint-count", action="store", type="int", 2373358Srdreslin@umich.edu help="checkpoint at specified work begin count") 2383358Srdreslin@umich.edu parser.add_option("--work-end-checkpoint-count", action="store", type="int", 2393358Srdreslin@umich.edu help="checkpoint at specified work end count") 2403358Srdreslin@umich.edu parser.add_option("--work-cpus-checkpoint-count", action="store", type="int", 2413358Srdreslin@umich.edu help="checkpoint and exit when active cpu count is reached") 2423358Srdreslin@umich.edu parser.add_option("--restore-with-cpu", action="store", type="choice", 2433358Srdreslin@umich.edu default="atomic", choices=CpuConfig.cpu_names(), 2443358Srdreslin@umich.edu help = "cpu type for restoring from a checkpoint") 2453358Srdreslin@umich.edu 2463358Srdreslin@umich.edu 2473358Srdreslin@umich.edu # CPU Switching - default switch model goes from a checkpoint 2483358Srdreslin@umich.edu # to a timing simple CPU with caches to warm up, then to detailed CPU for 2493358Srdreslin@umich.edu # data measurement 2503358Srdreslin@umich.edu parser.add_option("--repeat-switch", action="store", type="int", 2513358Srdreslin@umich.edu default=None, 2523358Srdreslin@umich.edu help="switch back and forth between CPUs with period <N>") 2533358Srdreslin@umich.edu parser.add_option("-s", "--standard-switch", action="store", type="int", 2543358Srdreslin@umich.edu default=None, 2553358Srdreslin@umich.edu help="switch from timing to Detailed CPU after warmup period of <N>") 2563358Srdreslin@umich.edu parser.add_option("-p", "--prog-interval", type="str", 2573358Srdreslin@umich.edu help="CPU Progress Interval") 2581516SN/A 2595256Ssaidi@eecs.umich.edu # Fastforwarding and simpoint related materials 2605256Ssaidi@eecs.umich.edu parser.add_option("-W", "--warmup-insts", action="store", type="int", 2615256Ssaidi@eecs.umich.edu default=None, 2625256Ssaidi@eecs.umich.edu help="Warmup period in total instructions (requires --standard-switch)") 2633358Srdreslin@umich.edu parser.add_option("--bench", action="store", type="string", default=None, 2643358Srdreslin@umich.edu help="base names for --take-checkpoint and --checkpoint-restore") 2653358Srdreslin@umich.edu parser.add_option("-F", "--fast-forward", action="store", type="string", 2663358Srdreslin@umich.edu default=None, 2673358Srdreslin@umich.edu help="Number of instructions to fast forward before switching") 2683358Srdreslin@umich.edu parser.add_option("-S", "--simpoint", action="store_true", default=False, 2693358Srdreslin@umich.edu help="""Use workload simpoints as an instruction offset for 2703358Srdreslin@umich.edu --checkpoint-restore or --take-checkpoint.""") 2713358Srdreslin@umich.edu parser.add_option("--at-instruction", action="store_true", default=False, 2723358Srdreslin@umich.edu help="""Treat value of --checkpoint-restore or --take-checkpoint as a 2733358Srdreslin@umich.edu number of instructions.""") 2743358Srdreslin@umich.edu parser.add_option("--spec-input", default="ref", type="choice", 2753358Srdreslin@umich.edu choices=["ref", "test", "train", "smred", "mdred", 2763358Srdreslin@umich.edu "lgred"], 2773358Srdreslin@umich.edu help="Input set size for SPEC CPU2000 benchmarks.") 2783358Srdreslin@umich.edu parser.add_option("--arm-iset", default="arm", type="choice", 2797525Ssteve.reinhardt@amd.com choices=["arm", "thumb", "aarch64"], 2803358Srdreslin@umich.edu help="ARM instruction set.") 2813358Srdreslin@umich.edu 2823358Srdreslin@umich.edu 2833358Srdreslin@umich.edudef addSEOptions(parser): 2843358Srdreslin@umich.edu # Benchmark options 2853646Srdreslin@umich.edu parser.add_option("-c", "--cmd", default="", 2863358Srdreslin@umich.edu help="The binary to run in syscall emulation mode.") 2873358Srdreslin@umich.edu parser.add_option("-o", "--options", default="", 2883358Srdreslin@umich.edu help="""The options to pass to the binary, use " " 289 around the entire string""") 290 parser.add_option("-e", "--env", default="", 291 help="Initialize workload environment from text file.") 292 parser.add_option("-i", "--input", default="", 293 help="Read stdin from a file.") 294 parser.add_option("--output", default="", 295 help="Redirect stdout to a file.") 296 parser.add_option("--errout", default="", 297 help="Redirect stderr to a file.") 298 299def addFSOptions(parser): 300 # Simulation options 301 parser.add_option("--timesync", action="store_true", 302 help="Prevent simulated time from getting ahead of real time") 303 304 # System options 305 parser.add_option("--kernel", action="store", type="string") 306 parser.add_option("--os-type", action="store", type="choice", 307 choices=os_types[buildEnv['TARGET_ISA']], default="linux", 308 help="Specifies type of OS to boot") 309 parser.add_option("--script", action="store", type="string") 310 parser.add_option("--frame-capture", action="store_true", 311 help="Stores changed frame buffers from the VNC server to compressed "\ 312 "files in the gem5 output directory") 313 314 if buildEnv['TARGET_ISA'] == "arm": 315 parser.add_option("--bare-metal", action="store_true", 316 help="Provide the raw system without the linux specific bits") 317 parser.add_option("--list-machine-types", 318 action="callback", callback=_listPlatformTypes, 319 help="List available platform types") 320 parser.add_option("--machine-type", action="store", type="choice", 321 choices=PlatformConfig.platform_names(), 322 default="VExpress_EMM") 323 parser.add_option("--dtb-filename", action="store", type="string", 324 help="Specifies device tree blob file to use with device-tree-"\ 325 "enabled kernels") 326 parser.add_option("--enable-context-switch-stats-dump", \ 327 action="store_true", help="Enable stats dump at context "\ 328 "switches and dump tasks file (required for Streamline)") 329 330 # Benchmark options 331 parser.add_option("--dual", action="store_true", 332 help="Simulate two systems attached with an ethernet link") 333 parser.add_option("-b", "--benchmark", action="store", type="string", 334 dest="benchmark", 335 help="Specify the benchmark to run. Available benchmarks: %s"\ 336 % DefinedBenchmarks) 337 338 # Metafile options 339 parser.add_option("--etherdump", action="store", type="string", dest="etherdump", 340 help="Specify the filename to dump a pcap capture of the" \ 341 "ethernet traffic") 342 343 # Disk Image Options 344 parser.add_option("--disk-image", action="store", type="string", default=None, 345 help="Path to the disk image to use.") 346 parser.add_option("--root-device", action="store", type="string", default=None, 347 help="OS device name for root partition") 348 349 # Command line options 350 parser.add_option("--command-line", action="store", type="string", 351 default=None, 352 help="Template for the kernel command line.") 353 parser.add_option("--command-line-file", action="store", 354 default=None, type="string", 355 help="File with a template for the kernel command line") 356