Options.py revision 11703
11689SN/A# Copyright (c) 2013 ARM Limited
28707Sandreas.hansson@arm.com# All rights reserved.
37849SAli.Saidi@ARM.com#
47849SAli.Saidi@ARM.com# The license below extends only to copyright in the software and shall
57849SAli.Saidi@ARM.com# not be construed as granting a license to any other intellectual
67849SAli.Saidi@ARM.com# property including but not limited to intellectual property relating
77849SAli.Saidi@ARM.com# to a hardware implementation of the functionality of the software
87849SAli.Saidi@ARM.com# licensed hereunder.  You may use the software subject to the license
97849SAli.Saidi@ARM.com# terms below provided that you ensure that this notice is replicated
107849SAli.Saidi@ARM.com# unmodified and in its entirety in all distributions of the software,
117849SAli.Saidi@ARM.com# modified or unmodified, in source code or in binary form.
127849SAli.Saidi@ARM.com#
137849SAli.Saidi@ARM.com# Copyright (c) 2006-2008 The Regents of The University of Michigan
142329SN/A# All rights reserved.
151689SN/A#
161689SN/A# Redistribution and use in source and binary forms, with or without
171689SN/A# modification, are permitted provided that the following conditions are
181689SN/A# met: redistributions of source code must retain the above copyright
191689SN/A# notice, this list of conditions and the following disclaimer;
201689SN/A# redistributions in binary form must reproduce the above copyright
211689SN/A# notice, this list of conditions and the following disclaimer in the
221689SN/A# documentation and/or other materials provided with the distribution;
231689SN/A# neither the name of the copyright holders nor the names of its
241689SN/A# contributors may be used to endorse or promote products derived from
251689SN/A# this software without specific prior written permission.
261689SN/A#
271689SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
281689SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
291689SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
301689SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
311689SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
321689SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
331689SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
341689SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
351689SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
361689SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
371689SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
381689SN/A#
392665Ssaidi@eecs.umich.edu# Authors: Lisa Hsu
402665Ssaidi@eecs.umich.edu
412756Sksewell@umich.eduimport m5
421689SN/Afrom m5.defines import buildEnv
431689SN/Afrom m5.objects import *
442292SN/Afrom common.Benchmarks import *
452292SN/A
461060SN/Afrom common import CpuConfig
479020Sgblack@eecs.umich.edufrom common import MemConfig
488229Snate@binkert.orgfrom common import PlatformConfig
492669Sktlim@umich.edu
501461SN/Adef _listCpuTypes(option, opt, value, parser):
516658Snate@binkert.org    CpuConfig.print_cpu_list()
521060SN/A    sys.exit(0)
538229Snate@binkert.org
547849SAli.Saidi@ARM.comdef _listMemTypes(option, opt, value, parser):
553348Sbinkertn@umich.edu    MemConfig.print_mem_list()
562669Sktlim@umich.edu    sys.exit(0)
571461SN/A
581060SN/Adef _listPlatformTypes(option, opt, value, parser):
598737Skoansin.tan@gmail.com    PlatformConfig.print_platform_list()
605529Snate@binkert.org    sys.exit(0)
611060SN/A
622329SN/A# Add the very basic options that work also in the case of the no ISA
632329SN/A# being used, and consequently no CPUs, but rather various types of
642329SN/A# testers and traffic generators.
652329SN/Adef addNoISAOptions(parser):
662348SN/A    parser.add_option("-n", "--num-cpus", type="int", default=1)
672329SN/A    parser.add_option("--sys-voltage", action="store", type="string",
681060SN/A                      default='1.0V',
691060SN/A                      help = """Top-level voltage for blocks running at system
702292SN/A                      power supply""")
711060SN/A    parser.add_option("--sys-clock", action="store", type="string",
721060SN/A                      default='1GHz',
731060SN/A                      help = """Top-level clock for blocks running at system
741061SN/A                      speed""")
751060SN/A
761061SN/A    # Memory Options
772733Sktlim@umich.edu    parser.add_option("--list-mem-types",
781060SN/A                      action="callback", callback=_listMemTypes,
792292SN/A                      help="List available memory types")
801061SN/A    parser.add_option("--mem-type", type="choice", default="DDR3_1600_x64",
811061SN/A                      choices=MemConfig.mem_names(),
821061SN/A                      help = "type of memory to use")
831060SN/A    parser.add_option("--mem-channels", type="int", default=1,
841060SN/A                      help = "number of memory channels")
852107SN/A    parser.add_option("--mem-ranks", type="int", default=None,
862292SN/A                      help = "number of memory ranks per channel")
872632Sstever@eecs.umich.edu    parser.add_option("--mem-size", action="store", type="string",
887849SAli.Saidi@ARM.com                      default="512MB",
897849SAli.Saidi@ARM.com                      help="Specify the physical memory size (single memory)")
907849SAli.Saidi@ARM.com
917849SAli.Saidi@ARM.com
927849SAli.Saidi@ARM.com    parser.add_option("--memchecker", action="store_true")
937849SAli.Saidi@ARM.com
947849SAli.Saidi@ARM.com    # Cache Options
957849SAli.Saidi@ARM.com    parser.add_option("--external-memory-system", type="string",
967849SAli.Saidi@ARM.com                      help="use external ports of this port_type for caches")
977849SAli.Saidi@ARM.com    parser.add_option("--tlm-memory", type="string",
987849SAli.Saidi@ARM.com                      help="use external port for SystemC TLM cosimulation")
997944SGiacomo.Gabrielli@arm.com    parser.add_option("--caches", action="store_true")
1007944SGiacomo.Gabrielli@arm.com    parser.add_option("--l2cache", action="store_true")
1017944SGiacomo.Gabrielli@arm.com    parser.add_option("--num-dirs", type="int", default=1)
1027944SGiacomo.Gabrielli@arm.com    parser.add_option("--num-l2caches", type="int", default=1)
1037849SAli.Saidi@ARM.com    parser.add_option("--num-l3caches", type="int", default=1)
1047849SAli.Saidi@ARM.com    parser.add_option("--l1d_size", type="string", default="64kB")
1057849SAli.Saidi@ARM.com    parser.add_option("--l1i_size", type="string", default="32kB")
1067849SAli.Saidi@ARM.com    parser.add_option("--l2_size", type="string", default="2MB")
1077849SAli.Saidi@ARM.com    parser.add_option("--l3_size", type="string", default="16MB")
1087849SAli.Saidi@ARM.com    parser.add_option("--l1d_assoc", type="int", default=2)
1097849SAli.Saidi@ARM.com    parser.add_option("--l1i_assoc", type="int", default=2)
1107849SAli.Saidi@ARM.com    parser.add_option("--l2_assoc", type="int", default=8)
1112935Sksewell@umich.edu    parser.add_option("--l3_assoc", type="int", default=16)
1128462Sgeoffrey.blake@arm.com    parser.add_option("--cacheline_size", type="int", default=64)
1138462Sgeoffrey.blake@arm.com
1148462Sgeoffrey.blake@arm.com    # Enable Ruby
1158462Sgeoffrey.blake@arm.com    parser.add_option("--ruby", action="store_true")
1168462Sgeoffrey.blake@arm.com
1178462Sgeoffrey.blake@arm.com    # Run duration options
1188462Sgeoffrey.blake@arm.com    parser.add_option("-m", "--abs-max-tick", type="int", default=m5.MaxTick,
1198462Sgeoffrey.blake@arm.com                      metavar="TICKS", help="Run to absolute simulated tick "
1208462Sgeoffrey.blake@arm.com                      "specified including ticks from a restored checkpoint")
1218462Sgeoffrey.blake@arm.com    parser.add_option("--rel-max-tick", type="int", default=None,
1228462Sgeoffrey.blake@arm.com                      metavar="TICKS", help="Simulate for specified number of"
1238462Sgeoffrey.blake@arm.com                      " ticks relative to the simulation start tick (e.g. if "
1248462Sgeoffrey.blake@arm.com                      "restoring a checkpoint)")
1258462Sgeoffrey.blake@arm.com    parser.add_option("--maxtime", type="float", default=None,
1268462Sgeoffrey.blake@arm.com                      help="Run to the specified absolute simulated time in "
1278462Sgeoffrey.blake@arm.com                      "seconds")
1288462Sgeoffrey.blake@arm.com
1298462Sgeoffrey.blake@arm.com# Add common options that assume a non-NULL ISA.
1308462Sgeoffrey.blake@arm.comdef addCommonOptions(parser):
1318462Sgeoffrey.blake@arm.com    # start by adding the base options that do not assume an ISA
1328462Sgeoffrey.blake@arm.com    addNoISAOptions(parser)
1338462Sgeoffrey.blake@arm.com
1348462Sgeoffrey.blake@arm.com    # system options
1358462Sgeoffrey.blake@arm.com    parser.add_option("--list-cpu-types",
1368462Sgeoffrey.blake@arm.com                      action="callback", callback=_listCpuTypes,
1378462Sgeoffrey.blake@arm.com                      help="List available CPU types")
1388462Sgeoffrey.blake@arm.com    parser.add_option("--cpu-type", type="choice", default="atomic",
1398462Sgeoffrey.blake@arm.com                      choices=CpuConfig.cpu_names(),
1408462Sgeoffrey.blake@arm.com                      help = "type of cpu to run with")
1418462Sgeoffrey.blake@arm.com    parser.add_option("--checker", action="store_true");
1428462Sgeoffrey.blake@arm.com    parser.add_option("--cpu-clock", action="store", type="string",
1438462Sgeoffrey.blake@arm.com                      default='2GHz',
1448462Sgeoffrey.blake@arm.com                      help="Clock for blocks running at CPU speed")
1458462Sgeoffrey.blake@arm.com    parser.add_option("--smt", action="store_true", default=False,
1468462Sgeoffrey.blake@arm.com                      help = """
1478462Sgeoffrey.blake@arm.com                      Only used if multiple programs are specified. If true,
1488462Sgeoffrey.blake@arm.com                      then the number of threads per cpu is same as the
1498462Sgeoffrey.blake@arm.com                      number of programs.""")
1508462Sgeoffrey.blake@arm.com    parser.add_option("--elastic-trace-en", action="store_true",
1511060SN/A                      help="""Enable capture of data dependency and instruction
1522329SN/A                      fetch traces using elastic trace probe.""")
1532329SN/A    # Trace file paths input to trace probe in a capture simulation and input
1542292SN/A    # to Trace CPU in a replay simulation
1552292SN/A    parser.add_option("--inst-trace-file", action="store", type="string",
1562292SN/A                      help="""Instruction fetch trace file input to
1572292SN/A                      Elastic Trace probe in a capture simulation and
1582292SN/A                      Trace CPU in a replay simulation""", default="")
1592292SN/A    parser.add_option("--data-trace-file", action="store", type="string",
1602292SN/A                      help="""Data dependency trace file input to
1612292SN/A                      Elastic Trace probe in a capture simulation and
1621060SN/A                      Trace CPU in a replay simulation""", default="")
1631060SN/A
1641060SN/A    parser.add_option("-l", "--lpae", action="store_true")
1651060SN/A    parser.add_option("-V", "--virtualisation", action="store_true")
1662292SN/A
1672292SN/A    parser.add_option("--fastmem", action="store_true")
1682292SN/A
1692307SN/A    # dist-gem5 options
1707849SAli.Saidi@ARM.com    parser.add_option("--dist", action="store_true",
1712669Sktlim@umich.edu                      help="Parallel distributed gem5 simulation.")
1722696Sktlim@umich.edu    parser.add_option("--dist-sync-on-pseudo-op", action="store_true",
1738460SAli.Saidi@ARM.com                      help="Use a pseudo-op to start dist-gem5 synchronization.")
1748460SAli.Saidi@ARM.com    parser.add_option("--is-switch", action="store_true",
1751060SN/A                      help="Select the network switch simulator process for a"\
1761060SN/A                      "distributed gem5 run")
1772292SN/A    parser.add_option("--dist-rank", default=0, action="store", type="int",
1782292SN/A                      help="Rank of this system within the dist gem5 run.")
1792292SN/A    parser.add_option("--dist-size", default=0, action="store", type="int",
1802292SN/A                      help="Number of gem5 processes within the dist gem5 run.")
1812292SN/A    parser.add_option("--dist-server-name",
1822292SN/A                      default="127.0.0.1",
1832292SN/A                      action="store", type="string",
1842292SN/A                      help="Name of the message server host\nDEFAULT: localhost")
1851060SN/A    parser.add_option("--dist-server-port",
1862292SN/A                      default=2200,
1872292SN/A                      action="store", type="int",
1882292SN/A                      help="Message server listen port\nDEFAULT: 2200")
1892292SN/A    parser.add_option("--dist-sync-repeat",
1902292SN/A                      default="0us",
1912292SN/A                      action="store", type="string",
1922292SN/A                      help="Repeat interval for synchronisation barriers among dist-gem5 processes\nDEFAULT: --ethernet-linkdelay")
1932292SN/A    parser.add_option("--dist-sync-start",
1942292SN/A                      default="5200000000000t",
1952292SN/A                      action="store", type="string",
1962292SN/A                      help="Time to schedule the first dist synchronisation barrier\nDEFAULT:5200000000000t")
1976221Snate@binkert.org    parser.add_option("--ethernet-linkspeed", default="10Gbps",
1981060SN/A                        action="store", type="string",
1991060SN/A                        help="Link speed in bps\nDEFAULT: 10Gbps")
2002292SN/A    parser.add_option("--ethernet-linkdelay", default="10us",
2015529Snate@binkert.org                      action="store", type="string",
2021684SN/A                      help="Link delay in seconds\nDEFAULT: 10us")
2032292SN/A
2042292SN/A    # Run duration options
2051684SN/A    parser.add_option("-I", "--maxinsts", action="store", type="int",
2062292SN/A                      default=None, help="""Total number of instructions to
2071062SN/A                                            simulate (default: run forever)""")
2081062SN/A    parser.add_option("--work-item-id", action="store", type="int",
2092292SN/A                      help="the specific work id for exit & checkpointing")
2101060SN/A    parser.add_option("--num-work-ids", action="store", type="int",
2111060SN/A                      help="Number of distinct work item types")
2122292SN/A    parser.add_option("--work-begin-cpu-id-exit", action="store", type="int",
2136221Snate@binkert.org                      help="exit when work starts on the specified cpu")
2142292SN/A    parser.add_option("--work-end-exit-count", action="store", type="int",
2152292SN/A                      help="exit at specified work end count")
2161060SN/A    parser.add_option("--work-begin-exit-count", action="store", type="int",
2171060SN/A                      help="exit at specified work begin count")
2182292SN/A    parser.add_option("--init-param", action="store", type="int", default=0,
2192292SN/A                      help="""Parameter available in simulation with m5
2202292SN/A                              initparam""")
2214302Sktlim@umich.edu    parser.add_option("--initialize-only", action="store_true", default=False,
2224302Sktlim@umich.edu                      help="""Exit after initialization. Do not simulate time.
2234302Sktlim@umich.edu                              Useful when gem5 is run as a library.""")
2248707Sandreas.hansson@arm.com
2258707Sandreas.hansson@arm.com    # Simpoint options
2268707Sandreas.hansson@arm.com    parser.add_option("--simpoint-profile", action="store_true",
2272292SN/A                      help="Enable basic block profiling for SimPoints")
2282669Sktlim@umich.edu    parser.add_option("--simpoint-interval", type="int", default=10000000,
2292292SN/A                      help="SimPoint interval in num of instructions")
2302843Sktlim@umich.edu    parser.add_option("--take-simpoint-checkpoints", action="store", type="string",
2312863Sktlim@umich.edu        help="<simpoint file,weight file,interval-length,warmup-length>")
2322843Sktlim@umich.edu    parser.add_option("--restore-simpoint-checkpoint", action="store_true",
2332843Sktlim@umich.edu        help="restore from a simpoint checkpoint taken with " +
2342843Sktlim@umich.edu             "--take-simpoint-checkpoints")
2352843Sktlim@umich.edu
2362843Sktlim@umich.edu    # Checkpointing options
2372307SN/A    ###Note that performing checkpointing via python script files will override
2382307SN/A    ###checkpoint instructions built into binaries.
2392348SN/A    parser.add_option("--take-checkpoints", action="store", type="string",
2402307SN/A        help="<M,N> take checkpoints at tick M and every N ticks thereafter")
2412307SN/A    parser.add_option("--max-checkpoints", action="store", type="int",
2422348SN/A        help="the maximum number of checkpoints to drop", default=5)
2432307SN/A    parser.add_option("--checkpoint-dir", action="store", type="string",
2442307SN/A        help="Place all checkpoints in this absolute directory")
2452348SN/A    parser.add_option("-r", "--checkpoint-restore", action="store", type="int",
2462292SN/A        help="restore from checkpoint <N>")
2471060SN/A    parser.add_option("--checkpoint-at-end", action="store_true",
2481061SN/A                      help="take a checkpoint at end of run")
2492329SN/A    parser.add_option("--work-begin-checkpoint-count", action="store", type="int",
2502329SN/A                      help="checkpoint at specified work begin count")
2512292SN/A    parser.add_option("--work-end-checkpoint-count", action="store", type="int",
2522292SN/A                      help="checkpoint at specified work end count")
2532292SN/A    parser.add_option("--work-cpus-checkpoint-count", action="store", type="int",
2542329SN/A                      help="checkpoint and exit when active cpu count is reached")
2552329SN/A    parser.add_option("--restore-with-cpu", action="store", type="choice",
2562292SN/A                      default="atomic", choices=CpuConfig.cpu_names(),
2572292SN/A                      help = "cpu type for restoring from a checkpoint")
2582292SN/A
2591061SN/A
2601061SN/A    # CPU Switching - default switch model goes from a checkpoint
2611061SN/A    # to a timing simple CPU with caches to warm up, then to detailed CPU for
2621763SN/A    # data measurement
2631061SN/A    parser.add_option("--repeat-switch", action="store", type="int",
2641061SN/A        default=None,
2652935Sksewell@umich.edu        help="switch back and forth between CPUs with period <N>")
2661061SN/A    parser.add_option("-s", "--standard-switch", action="store", type="int",
2671061SN/A        default=None,
2687720Sgblack@eecs.umich.edu        help="switch from timing to Detailed CPU after warmup period of <N>")
2691062SN/A    parser.add_option("-p", "--prog-interval", type="str",
2701062SN/A        help="CPU Progress Interval")
2711062SN/A
2721062SN/A    # Fastforwarding and simpoint related materials
2731062SN/A    parser.add_option("-W", "--warmup-insts", action="store", type="int",
2747764Sgblack@eecs.umich.edu        default=None,
2752292SN/A        help="Warmup period in total instructions (requires --standard-switch)")
2762292SN/A    parser.add_option("--bench", action="store", type="string", default=None,
2772292SN/A        help="base names for --take-checkpoint and --checkpoint-restore")
2787764Sgblack@eecs.umich.edu    parser.add_option("-F", "--fast-forward", action="store", type="string",
2791062SN/A        default=None,
2801062SN/A        help="Number of instructions to fast forward before switching")
2817849SAli.Saidi@ARM.com    parser.add_option("-S", "--simpoint", action="store_true", default=False,
2827849SAli.Saidi@ARM.com        help="""Use workload simpoints as an instruction offset for
2831062SN/A                --checkpoint-restore or --take-checkpoint.""")
2847847Sminkyu.jeong@arm.com    parser.add_option("--at-instruction", action="store_true", default=False,
2857847Sminkyu.jeong@arm.com        help="""Treat value of --checkpoint-restore or --take-checkpoint as a
2867847Sminkyu.jeong@arm.com                number of instructions.""")
2877847Sminkyu.jeong@arm.com    parser.add_option("--spec-input", default="ref", type="choice",
2887847Sminkyu.jeong@arm.com                      choices=["ref", "test", "train", "smred", "mdred",
2897847Sminkyu.jeong@arm.com                               "lgred"],
2907847Sminkyu.jeong@arm.com                      help="Input set size for SPEC CPU2000 benchmarks.")
2917847Sminkyu.jeong@arm.com    parser.add_option("--arm-iset", default="arm", type="choice",
2927847Sminkyu.jeong@arm.com                      choices=["arm", "thumb", "aarch64"],
2932292SN/A                      help="ARM instruction set.")
2948503Sgblack@eecs.umich.edu
2958503Sgblack@eecs.umich.edu
2961684SN/Adef addSEOptions(parser):
2972292SN/A    # Benchmark options
2982292SN/A    parser.add_option("-c", "--cmd", default="",
2992292SN/A                      help="The binary to run in syscall emulation mode.")
3007720Sgblack@eecs.umich.edu    parser.add_option("-o", "--options", default="",
3018503Sgblack@eecs.umich.edu                      help="""The options to pass to the binary, use " "
3028503Sgblack@eecs.umich.edu                              around the entire string""")
3032292SN/A    parser.add_option("-e", "--env", default="",
3042292SN/A                      help="Initialize workload environment from text file.")
3056221Snate@binkert.org    parser.add_option("-i", "--input", default="",
3062292SN/A                      help="Read stdin from a file.")
3072292SN/A    parser.add_option("--output", default="",
3082292SN/A                      help="Redirect stdout to a file.")
3092292SN/A    parser.add_option("--errout", default="",
3101684SN/A                      help="Redirect stderr to a file.")
3111684SN/A
3122292SN/Adef addFSOptions(parser):
3132292SN/A    from FSConfig import os_types
3142292SN/A
3152292SN/A    # Simulation options
3168503Sgblack@eecs.umich.edu    parser.add_option("--timesync", action="store_true",
3178503Sgblack@eecs.umich.edu            help="Prevent simulated time from getting ahead of real time")
3181684SN/A
3192292SN/A    # System options
3202292SN/A    parser.add_option("--kernel", action="store", type="string")
3212292SN/A    parser.add_option("--os-type", action="store", type="choice",
3221684SN/A            choices=os_types[buildEnv['TARGET_ISA']], default="linux",
3231684SN/A            help="Specifies type of OS to boot")
3242292SN/A    parser.add_option("--script", action="store", type="string")
3252292SN/A    parser.add_option("--frame-capture", action="store_true",
3262292SN/A            help="Stores changed frame buffers from the VNC server to compressed "\
3276221Snate@binkert.org            "files in the gem5 output directory")
3281684SN/A
3292292SN/A    if buildEnv['TARGET_ISA'] == "arm":
3302292SN/A        parser.add_option("--bare-metal", action="store_true",
3312292SN/A                   help="Provide the raw system without the linux specific bits")
3322292SN/A        parser.add_option("--list-machine-types",
3332292SN/A                          action="callback", callback=_listPlatformTypes,
3342292SN/A                      help="List available platform types")
3352292SN/A        parser.add_option("--machine-type", action="store", type="choice",
3362292SN/A                choices=PlatformConfig.platform_names(),
3371062SN/A                default="VExpress_EMM")
3381062SN/A        parser.add_option("--dtb-filename", action="store", type="string",
3391062SN/A              help="Specifies device tree blob file to use with device-tree-"\
3401062SN/A              "enabled kernels")
3411061SN/A        parser.add_option("--enable-context-switch-stats-dump", \
3428541Sgblack@eecs.umich.edu                action="store_true", help="Enable stats dump at context "\
3439020Sgblack@eecs.umich.edu                "switches and dump tasks file (required for Streamline)")
3448541Sgblack@eecs.umich.edu
3451060SN/A    # Benchmark options
3467764Sgblack@eecs.umich.edu    parser.add_option("--dual", action="store_true",
3477764Sgblack@eecs.umich.edu                      help="Simulate two systems attached with an ethernet link")
3487764Sgblack@eecs.umich.edu    parser.add_option("-b", "--benchmark", action="store", type="string",
3497764Sgblack@eecs.umich.edu                      dest="benchmark",
3502292SN/A                      help="Specify the benchmark to run. Available benchmarks: %s"\
3516221Snate@binkert.org                      % DefinedBenchmarks)
3522292SN/A
3532292SN/A    # Metafile options
3546221Snate@binkert.org    parser.add_option("--etherdump", action="store", type="string", dest="etherdump",
3552292SN/A                      help="Specify the filename to dump a pcap capture of the" \
3562292SN/A                      "ethernet traffic")
3576221Snate@binkert.org
3582292SN/A    # Disk Image Options
3592292SN/A    parser.add_option("--disk-image", action="store", type="string", default=None,
3606221Snate@binkert.org                      help="Path to the disk image to use.")
3612292SN/A    parser.add_option("--root-device", action="store", type="string", default=None,
3626221Snate@binkert.org                      help="OS device name for root partition")
3636221Snate@binkert.org
3646221Snate@binkert.org    # Command line options
3652292SN/A    parser.add_option("--command-line", action="store", type="string",
3668462Sgeoffrey.blake@arm.com                      default=None,
3678462Sgeoffrey.blake@arm.com                      help="Template for the kernel command line.")
3688462Sgeoffrey.blake@arm.com    parser.add_option("--command-line-file", action="store",
3698462Sgeoffrey.blake@arm.com                      default=None, type="string",
3708462Sgeoffrey.blake@arm.com                      help="File with a template for the kernel command line")
3718462Sgeoffrey.blake@arm.com