Options.py revision 11238
19665Sandreas.hansson@arm.com# Copyright (c) 2013 ARM Limited
29665Sandreas.hansson@arm.com# All rights reserved.
39665Sandreas.hansson@arm.com#
49665Sandreas.hansson@arm.com# The license below extends only to copyright in the software and shall
59665Sandreas.hansson@arm.com# not be construed as granting a license to any other intellectual
69665Sandreas.hansson@arm.com# property including but not limited to intellectual property relating
79665Sandreas.hansson@arm.com# to a hardware implementation of the functionality of the software
89665Sandreas.hansson@arm.com# licensed hereunder.  You may use the software subject to the license
99665Sandreas.hansson@arm.com# terms below provided that you ensure that this notice is replicated
109665Sandreas.hansson@arm.com# unmodified and in its entirety in all distributions of the software,
119665Sandreas.hansson@arm.com# modified or unmodified, in source code or in binary form.
129665Sandreas.hansson@arm.com#
135353Svilas.sridharan@gmail.com# Copyright (c) 2006-2008 The Regents of The University of Michigan
143395Shsul@eecs.umich.edu# All rights reserved.
153395Shsul@eecs.umich.edu#
163395Shsul@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
173395Shsul@eecs.umich.edu# modification, are permitted provided that the following conditions are
183395Shsul@eecs.umich.edu# met: redistributions of source code must retain the above copyright
193395Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
203395Shsul@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
213395Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
223395Shsul@eecs.umich.edu# documentation and/or other materials provided with the distribution;
233395Shsul@eecs.umich.edu# neither the name of the copyright holders nor the names of its
243395Shsul@eecs.umich.edu# contributors may be used to endorse or promote products derived from
253395Shsul@eecs.umich.edu# this software without specific prior written permission.
263395Shsul@eecs.umich.edu#
273395Shsul@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
283395Shsul@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
293395Shsul@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
303395Shsul@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
313395Shsul@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
323395Shsul@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
333395Shsul@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
343395Shsul@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
353395Shsul@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
363395Shsul@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
373395Shsul@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
383395Shsul@eecs.umich.edu#
393395Shsul@eecs.umich.edu# Authors: Lisa Hsu
403395Shsul@eecs.umich.edu
418920Snilay@cs.wisc.eduimport m5
428920Snilay@cs.wisc.edufrom m5.defines import buildEnv
438920Snilay@cs.wisc.edufrom m5.objects import *
448920Snilay@cs.wisc.edufrom Benchmarks import *
457025SBrad.Beckmann@amd.com
469520SAndreas.Sandberg@ARM.comimport CpuConfig
479665Sandreas.hansson@arm.comimport MemConfig
4811238Sandreas.sandberg@arm.comimport PlatformConfig
499520SAndreas.Sandberg@ARM.com
5010747SChris.Emmons@arm.comfrom FSConfig import os_types
5110747SChris.Emmons@arm.com
529520SAndreas.Sandberg@ARM.comdef _listCpuTypes(option, opt, value, parser):
539520SAndreas.Sandberg@ARM.com    CpuConfig.print_cpu_list()
549520SAndreas.Sandberg@ARM.com    sys.exit(0)
559520SAndreas.Sandberg@ARM.com
569665Sandreas.hansson@arm.comdef _listMemTypes(option, opt, value, parser):
579665Sandreas.hansson@arm.com    MemConfig.print_mem_list()
589665Sandreas.hansson@arm.com    sys.exit(0)
599665Sandreas.hansson@arm.com
6011238Sandreas.sandberg@arm.comdef _listPlatformTypes(option, opt, value, parser):
6111238Sandreas.sandberg@arm.com    PlatformConfig.print_platform_list()
6211238Sandreas.sandberg@arm.com    sys.exit(0)
6311238Sandreas.sandberg@arm.com
648920Snilay@cs.wisc.edudef addCommonOptions(parser):
658920Snilay@cs.wisc.edu    # system options
669520SAndreas.Sandberg@ARM.com    parser.add_option("--list-cpu-types",
679520SAndreas.Sandberg@ARM.com                      action="callback", callback=_listCpuTypes,
689520SAndreas.Sandberg@ARM.com                      help="List available CPU types")
698920Snilay@cs.wisc.edu    parser.add_option("--cpu-type", type="choice", default="atomic",
709520SAndreas.Sandberg@ARM.com                      choices=CpuConfig.cpu_names(),
718920Snilay@cs.wisc.edu                      help = "type of cpu to run with")
728920Snilay@cs.wisc.edu    parser.add_option("--checker", action="store_true");
738920Snilay@cs.wisc.edu    parser.add_option("-n", "--num-cpus", type="int", default=1)
749827Sakash.bagdia@arm.com    parser.add_option("--sys-voltage", action="store", type="string",
759827Sakash.bagdia@arm.com                      default='1.0V',
769827Sakash.bagdia@arm.com                      help = """Top-level voltage for blocks running at system
779827Sakash.bagdia@arm.com                      power supply""")
789790Sakash.bagdia@arm.com    parser.add_option("--sys-clock", action="store", type="string",
799790Sakash.bagdia@arm.com                      default='1GHz',
809790Sakash.bagdia@arm.com                      help = """Top-level clock for blocks running at system
819790Sakash.bagdia@arm.com                      speed""")
829789Sakash.bagdia@arm.com    parser.add_option("--cpu-clock", action="store", type="string",
839789Sakash.bagdia@arm.com                      default='2GHz',
849789Sakash.bagdia@arm.com                      help="Clock for blocks running at CPU speed")
859800Snilay@cs.wisc.edu    parser.add_option("--smt", action="store_true", default=False,
869800Snilay@cs.wisc.edu                      help = """
879800Snilay@cs.wisc.edu                      Only used if multiple programs are specified. If true,
889800Snilay@cs.wisc.edu                      then the number of threads per cpu is same as the
899800Snilay@cs.wisc.edu                      number of programs.""")
909800Snilay@cs.wisc.edu
919800Snilay@cs.wisc.edu    # Memory Options
929800Snilay@cs.wisc.edu    parser.add_option("--list-mem-types",
939800Snilay@cs.wisc.edu                      action="callback", callback=_listMemTypes,
949800Snilay@cs.wisc.edu                      help="List available memory types")
9510789Sandreas.hansson@arm.com    parser.add_option("--mem-type", type="choice", default="DDR3_1600_x64",
969800Snilay@cs.wisc.edu                      choices=MemConfig.mem_names(),
979800Snilay@cs.wisc.edu                      help = "type of memory to use")
989836Sandreas.hansson@arm.com    parser.add_option("--mem-channels", type="int", default=1,
999836Sandreas.hansson@arm.com                      help = "number of memory channels")
10010620Sandreas.hansson@arm.com    parser.add_option("--mem-ranks", type="int", default=None,
10110620Sandreas.hansson@arm.com                      help = "number of memory ranks per channel")
1029800Snilay@cs.wisc.edu    parser.add_option("--mem-size", action="store", type="string",
1039800Snilay@cs.wisc.edu                      default="512MB",
1049800Snilay@cs.wisc.edu                      help="Specify the physical memory size (single memory)")
1059800Snilay@cs.wisc.edu
10610037SARM gem5 Developers    parser.add_option("-l", "--lpae", action="store_true")
10710037SARM gem5 Developers    parser.add_option("-V", "--virtualisation", action="store_true")
10810037SARM gem5 Developers
10910613SMarco.Elver@ARM.com    parser.add_option("--memchecker", action="store_true")
11010613SMarco.Elver@ARM.com
1119800Snilay@cs.wisc.edu    # Cache Options
11210780SCurtis.Dunham@arm.com    parser.add_option("--external-memory-system", type="string",
11310780SCurtis.Dunham@arm.com                      help="use external ports of this port_type for caches")
11410993Sjungma@eit.uni-kl.de    parser.add_option("--tlm-memory", type="string",
11510993Sjungma@eit.uni-kl.de                      help="use external port for SystemC TLM cosimulation")
1169800Snilay@cs.wisc.edu    parser.add_option("--caches", action="store_true")
1179800Snilay@cs.wisc.edu    parser.add_option("--l2cache", action="store_true")
1189800Snilay@cs.wisc.edu    parser.add_option("--fastmem", action="store_true")
1198920Snilay@cs.wisc.edu    parser.add_option("--num-dirs", type="int", default=1)
1208920Snilay@cs.wisc.edu    parser.add_option("--num-l2caches", type="int", default=1)
1218920Snilay@cs.wisc.edu    parser.add_option("--num-l3caches", type="int", default=1)
1228920Snilay@cs.wisc.edu    parser.add_option("--l1d_size", type="string", default="64kB")
1238920Snilay@cs.wisc.edu    parser.add_option("--l1i_size", type="string", default="32kB")
1248920Snilay@cs.wisc.edu    parser.add_option("--l2_size", type="string", default="2MB")
1258920Snilay@cs.wisc.edu    parser.add_option("--l3_size", type="string", default="16MB")
1268920Snilay@cs.wisc.edu    parser.add_option("--l1d_assoc", type="int", default=2)
1278920Snilay@cs.wisc.edu    parser.add_option("--l1i_assoc", type="int", default=2)
1288920Snilay@cs.wisc.edu    parser.add_option("--l2_assoc", type="int", default=8)
1298920Snilay@cs.wisc.edu    parser.add_option("--l3_assoc", type="int", default=16)
1308920Snilay@cs.wisc.edu    parser.add_option("--cacheline_size", type="int", default=64)
1319800Snilay@cs.wisc.edu
1329800Snilay@cs.wisc.edu    # Enable Ruby
1338920Snilay@cs.wisc.edu    parser.add_option("--ruby", action="store_true")
1343395Shsul@eecs.umich.edu
1358920Snilay@cs.wisc.edu    # Run duration options
1369909Snilay@cs.wisc.edu    parser.add_option("-m", "--abs-max-tick", type="int", default=m5.MaxTick,
1379816Sjthestness@gmail.com                      metavar="TICKS", help="Run to absolute simulated tick " \
1389816Sjthestness@gmail.com                      "specified including ticks from a restored checkpoint")
1399816Sjthestness@gmail.com    parser.add_option("--rel-max-tick", type="int", default=None,
1409816Sjthestness@gmail.com                      metavar="TICKS", help="Simulate for specified number of" \
1419816Sjthestness@gmail.com                      " ticks relative to the simulation start tick (e.g. if " \
1429816Sjthestness@gmail.com                      "restoring a checkpoint)")
1439816Sjthestness@gmail.com    parser.add_option("--maxtime", type="float", default=None,
1449816Sjthestness@gmail.com                      help="Run to the specified absolute simulated time in " \
1459816Sjthestness@gmail.com                      "seconds")
1468920Snilay@cs.wisc.edu    parser.add_option("-I", "--maxinsts", action="store", type="int",
1478920Snilay@cs.wisc.edu                      default=None, help="""Total number of instructions to
1488920Snilay@cs.wisc.edu                                            simulate (default: run forever)""")
1498920Snilay@cs.wisc.edu    parser.add_option("--work-item-id", action="store", type="int",
1508920Snilay@cs.wisc.edu                      help="the specific work id for exit & checkpointing")
15110159Sgedare@rtems.org    parser.add_option("--num-work-ids", action="store", type="int",
15210159Sgedare@rtems.org                      help="Number of distinct work item types")
1538920Snilay@cs.wisc.edu    parser.add_option("--work-begin-cpu-id-exit", action="store", type="int",
1548920Snilay@cs.wisc.edu                      help="exit when work starts on the specified cpu")
1558920Snilay@cs.wisc.edu    parser.add_option("--work-end-exit-count", action="store", type="int",
1568920Snilay@cs.wisc.edu                      help="exit at specified work end count")
1578920Snilay@cs.wisc.edu    parser.add_option("--work-begin-exit-count", action="store", type="int",
1588920Snilay@cs.wisc.edu                      help="exit at specified work begin count")
1598920Snilay@cs.wisc.edu    parser.add_option("--init-param", action="store", type="int", default=0,
1608920Snilay@cs.wisc.edu                      help="""Parameter available in simulation with m5
1618920Snilay@cs.wisc.edu                              initparam""")
16210757SCurtis.Dunham@arm.com    parser.add_option("--initialize-only", action="store_true", default=False,
16310757SCurtis.Dunham@arm.com                      help="""Exit after initialization. Do not simulate time.
16410757SCurtis.Dunham@arm.com                              Useful when gem5 is run as a library.""")
1656776SBrad.Beckmann@amd.com
1669800Snilay@cs.wisc.edu    # Simpoint options
1679800Snilay@cs.wisc.edu    parser.add_option("--simpoint-profile", action="store_true",
1689800Snilay@cs.wisc.edu                      help="Enable basic block profiling for SimPoints")
1699800Snilay@cs.wisc.edu    parser.add_option("--simpoint-interval", type="int", default=10000000,
1709800Snilay@cs.wisc.edu                      help="SimPoint interval in num of instructions")
17110608Sdam.sunwoo@arm.com    parser.add_option("--take-simpoint-checkpoints", action="store", type="string",
17210608Sdam.sunwoo@arm.com        help="<simpoint file,weight file,interval-length,warmup-length>")
17310608Sdam.sunwoo@arm.com    parser.add_option("--restore-simpoint-checkpoint", action="store_true",
17410608Sdam.sunwoo@arm.com        help="restore from a simpoint checkpoint taken with " +
17510608Sdam.sunwoo@arm.com             "--take-simpoint-checkpoints")
1769800Snilay@cs.wisc.edu
1778920Snilay@cs.wisc.edu    # Checkpointing options
1788920Snilay@cs.wisc.edu    ###Note that performing checkpointing via python script files will override
1798920Snilay@cs.wisc.edu    ###checkpoint instructions built into binaries.
1808920Snilay@cs.wisc.edu    parser.add_option("--take-checkpoints", action="store", type="string",
1819357Sandreas.hansson@arm.com        help="<M,N> take checkpoints at tick M and every N ticks thereafter")
1828920Snilay@cs.wisc.edu    parser.add_option("--max-checkpoints", action="store", type="int",
1838920Snilay@cs.wisc.edu        help="the maximum number of checkpoints to drop", default=5)
1848920Snilay@cs.wisc.edu    parser.add_option("--checkpoint-dir", action="store", type="string",
1858920Snilay@cs.wisc.edu        help="Place all checkpoints in this absolute directory")
1868920Snilay@cs.wisc.edu    parser.add_option("-r", "--checkpoint-restore", action="store", type="int",
1878920Snilay@cs.wisc.edu        help="restore from checkpoint <N>")
1888920Snilay@cs.wisc.edu    parser.add_option("--checkpoint-at-end", action="store_true",
1898920Snilay@cs.wisc.edu                      help="take a checkpoint at end of run")
1908920Snilay@cs.wisc.edu    parser.add_option("--work-begin-checkpoint-count", action="store", type="int",
1918920Snilay@cs.wisc.edu                      help="checkpoint at specified work begin count")
1928920Snilay@cs.wisc.edu    parser.add_option("--work-end-checkpoint-count", action="store", type="int",
1938920Snilay@cs.wisc.edu                      help="checkpoint at specified work end count")
1948920Snilay@cs.wisc.edu    parser.add_option("--work-cpus-checkpoint-count", action="store", type="int",
1958920Snilay@cs.wisc.edu                      help="checkpoint and exit when active cpu count is reached")
1968920Snilay@cs.wisc.edu    parser.add_option("--restore-with-cpu", action="store", type="choice",
1979736Sandreas@sandberg.pp.se                      default="atomic", choices=CpuConfig.cpu_names(),
1988920Snilay@cs.wisc.edu                      help = "cpu type for restoring from a checkpoint")
1993395Shsul@eecs.umich.edu
2005361Srstrong@cs.ucsd.edu
2018920Snilay@cs.wisc.edu    # CPU Switching - default switch model goes from a checkpoint
2028920Snilay@cs.wisc.edu    # to a timing simple CPU with caches to warm up, then to detailed CPU for
2038920Snilay@cs.wisc.edu    # data measurement
2049151Satgutier@umich.edu    parser.add_option("--repeat-switch", action="store", type="int",
2059151Satgutier@umich.edu        default=None,
2069151Satgutier@umich.edu        help="switch back and forth between CPUs with period <N>")
2079151Satgutier@umich.edu    parser.add_option("-s", "--standard-switch", action="store", type="int",
2089151Satgutier@umich.edu        default=None,
2099151Satgutier@umich.edu        help="switch from timing to Detailed CPU after warmup period of <N>")
2109562Ssaidi@eecs.umich.edu    parser.add_option("-p", "--prog-interval", type="str",
2118920Snilay@cs.wisc.edu        help="CPU Progress Interval")
2128920Snilay@cs.wisc.edu
2138920Snilay@cs.wisc.edu    # Fastforwarding and simpoint related materials
2148920Snilay@cs.wisc.edu    parser.add_option("-W", "--warmup-insts", action="store", type="int",
2158920Snilay@cs.wisc.edu        default=None,
2168920Snilay@cs.wisc.edu        help="Warmup period in total instructions (requires --standard-switch)")
2178920Snilay@cs.wisc.edu    parser.add_option("--bench", action="store", type="string", default=None,
2188920Snilay@cs.wisc.edu        help="base names for --take-checkpoint and --checkpoint-restore")
2198920Snilay@cs.wisc.edu    parser.add_option("-F", "--fast-forward", action="store", type="string",
2208920Snilay@cs.wisc.edu        default=None,
2218920Snilay@cs.wisc.edu        help="Number of instructions to fast forward before switching")
2228920Snilay@cs.wisc.edu    parser.add_option("-S", "--simpoint", action="store_true", default=False,
2238920Snilay@cs.wisc.edu        help="""Use workload simpoints as an instruction offset for
2248920Snilay@cs.wisc.edu                --checkpoint-restore or --take-checkpoint.""")
2258920Snilay@cs.wisc.edu    parser.add_option("--at-instruction", action="store_true", default=False,
2268920Snilay@cs.wisc.edu        help="""Treat value of --checkpoint-restore or --take-checkpoint as a
2278920Snilay@cs.wisc.edu                number of instructions.""")
22810037SARM gem5 Developers    parser.add_option("--spec-input", default="ref", type="choice",
22910037SARM gem5 Developers                      choices=["ref", "test", "train", "smred", "mdred",
23010037SARM gem5 Developers                               "lgred"],
23110037SARM gem5 Developers                      help="Input set size for SPEC CPU2000 benchmarks.")
23210037SARM gem5 Developers    parser.add_option("--arm-iset", default="arm", type="choice",
23310037SARM gem5 Developers                      choices=["arm", "thumb", "aarch64"],
23410037SARM gem5 Developers                      help="ARM instruction set.")
23510037SARM gem5 Developers
2368920Snilay@cs.wisc.edu
2378920Snilay@cs.wisc.edudef addSEOptions(parser):
2388920Snilay@cs.wisc.edu    # Benchmark options
2398920Snilay@cs.wisc.edu    parser.add_option("-c", "--cmd", default="",
2408920Snilay@cs.wisc.edu                      help="The binary to run in syscall emulation mode.")
2418920Snilay@cs.wisc.edu    parser.add_option("-o", "--options", default="",
2428920Snilay@cs.wisc.edu                      help="""The options to pass to the binary, use " "
2438920Snilay@cs.wisc.edu                              around the entire string""")
24410803Sbrandon.potter@amd.com    parser.add_option("-e", "--env", default="",
24510803Sbrandon.potter@amd.com                      help="Initialize workload environment from text file.")
2468920Snilay@cs.wisc.edu    parser.add_option("-i", "--input", default="",
2478920Snilay@cs.wisc.edu                      help="Read stdin from a file.")
2488920Snilay@cs.wisc.edu    parser.add_option("--output", default="",
2498920Snilay@cs.wisc.edu                      help="Redirect stdout to a file.")
2508920Snilay@cs.wisc.edu    parser.add_option("--errout", default="",
2518920Snilay@cs.wisc.edu                      help="Redirect stderr to a file.")
2528920Snilay@cs.wisc.edu
2538920Snilay@cs.wisc.edudef addFSOptions(parser):
2548920Snilay@cs.wisc.edu    # Simulation options
2558920Snilay@cs.wisc.edu    parser.add_option("--timesync", action="store_true",
2568920Snilay@cs.wisc.edu            help="Prevent simulated time from getting ahead of real time")
2578920Snilay@cs.wisc.edu
2588920Snilay@cs.wisc.edu    # System options
2598920Snilay@cs.wisc.edu    parser.add_option("--kernel", action="store", type="string")
26010747SChris.Emmons@arm.com    parser.add_option("--os-type", action="store", type="choice",
26110747SChris.Emmons@arm.com            choices=os_types[buildEnv['TARGET_ISA']], default="linux",
26210747SChris.Emmons@arm.com            help="Specifies type of OS to boot")
2638920Snilay@cs.wisc.edu    parser.add_option("--script", action="store", type="string")
2648920Snilay@cs.wisc.edu    parser.add_option("--frame-capture", action="store_true",
2658920Snilay@cs.wisc.edu            help="Stores changed frame buffers from the VNC server to compressed "\
2668920Snilay@cs.wisc.edu            "files in the gem5 output directory")
2678920Snilay@cs.wisc.edu
2688920Snilay@cs.wisc.edu    if buildEnv['TARGET_ISA'] == "arm":
2698920Snilay@cs.wisc.edu        parser.add_option("--bare-metal", action="store_true",
2708920Snilay@cs.wisc.edu                   help="Provide the raw system without the linux specific bits")
27111238Sandreas.sandberg@arm.com        parser.add_option("--list-machine-types",
27211238Sandreas.sandberg@arm.com                          action="callback", callback=_listPlatformTypes,
27311238Sandreas.sandberg@arm.com                      help="List available platform types")
2748920Snilay@cs.wisc.edu        parser.add_option("--machine-type", action="store", type="choice",
27511238Sandreas.sandberg@arm.com                choices=PlatformConfig.platform_names(),
27611238Sandreas.sandberg@arm.com                default="VExpress_EMM")
2779539Satgutier@umich.edu        parser.add_option("--dtb-filename", action="store", type="string",
2789539Satgutier@umich.edu              help="Specifies device tree blob file to use with device-tree-"\
2799539Satgutier@umich.edu              "enabled kernels")
2809935Sdam.sunwoo@arm.com        parser.add_option("--enable-context-switch-stats-dump", \
2819935Sdam.sunwoo@arm.com                action="store_true", help="Enable stats dump at context "\
2829935Sdam.sunwoo@arm.com                "switches and dump tasks file (required for Streamline)")
2839935Sdam.sunwoo@arm.com
2848920Snilay@cs.wisc.edu    # Benchmark options
2858920Snilay@cs.wisc.edu    parser.add_option("--dual", action="store_true",
2868920Snilay@cs.wisc.edu                      help="Simulate two systems attached with an ethernet link")
2878920Snilay@cs.wisc.edu    parser.add_option("-b", "--benchmark", action="store", type="string",
2888920Snilay@cs.wisc.edu                      dest="benchmark",
2898920Snilay@cs.wisc.edu                      help="Specify the benchmark to run. Available benchmarks: %s"\
2908920Snilay@cs.wisc.edu                      % DefinedBenchmarks)
2918920Snilay@cs.wisc.edu
2928920Snilay@cs.wisc.edu    # Metafile options
2938920Snilay@cs.wisc.edu    parser.add_option("--etherdump", action="store", type="string", dest="etherdump",
2948920Snilay@cs.wisc.edu                      help="Specify the filename to dump a pcap capture of the" \
2958920Snilay@cs.wisc.edu                      "ethernet traffic")
2968956Sjayneel@cs.wisc.edu
2978956Sjayneel@cs.wisc.edu    # Disk Image Options
2988956Sjayneel@cs.wisc.edu    parser.add_option("--disk-image", action="store", type="string", default=None,
2998956Sjayneel@cs.wisc.edu                      help="Path to the disk image to use.")
30010697SCurtis.Dunham@arm.com    parser.add_option("--root-device", action="store", type="string", default=None,
30110697SCurtis.Dunham@arm.com                      help="OS device name for root partition")
30210594Sgabeblack@google.com
30310594Sgabeblack@google.com    # Command line options
30410594Sgabeblack@google.com    parser.add_option("--command-line", action="store", type="string",
30510594Sgabeblack@google.com                      default=None,
30610594Sgabeblack@google.com                      help="Template for the kernel command line.")
30710594Sgabeblack@google.com    parser.add_option("--command-line-file", action="store",
30810594Sgabeblack@google.com                      default=None, type="string",
30910594Sgabeblack@google.com                      help="File with a template for the kernel command line")
310