Options.py revision 12079:a5cc6df83fcf
12023SN/A# Copyright (c) 2013 ARM Limited 25222Sksewell@umich.edu# All rights reserved. 32023SN/A# 45222Sksewell@umich.edu# The license below extends only to copyright in the software and shall 52023SN/A# not be construed as granting a license to any other intellectual 65222Sksewell@umich.edu# property including but not limited to intellectual property relating 75222Sksewell@umich.edu# to a hardware implementation of the functionality of the software 85222Sksewell@umich.edu# licensed hereunder. You may use the software subject to the license 92665Ssaidi@eecs.umich.edu# terms below provided that you ensure that this notice is replicated 105222Sksewell@umich.edu# unmodified and in its entirety in all distributions of the software, 115222Sksewell@umich.edu# modified or unmodified, in source code or in binary form. 125222Sksewell@umich.edu# 135222Sksewell@umich.edu# Copyright (c) 2006-2008 The Regents of The University of Michigan 145222Sksewell@umich.edu# All rights reserved. 155222Sksewell@umich.edu# 165222Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without 175222Sksewell@umich.edu# modification, are permitted provided that the following conditions are 185222Sksewell@umich.edu# met: redistributions of source code must retain the above copyright 195222Sksewell@umich.edu# notice, this list of conditions and the following disclaimer; 205222Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright 215222Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the 225222Sksewell@umich.edu# documentation and/or other materials provided with the distribution; 235222Sksewell@umich.edu# neither the name of the copyright holders nor the names of its 245222Sksewell@umich.edu# contributors may be used to endorse or promote products derived from 255222Sksewell@umich.edu# this software without specific prior written permission. 265222Sksewell@umich.edu# 275222Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 285222Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 295222Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 305222Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 315222Sksewell@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 325222Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 335222Sksewell@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 345222Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 355222Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 365222Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 372023SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 382023SN/A# 392028SN/A# Authors: Lisa Hsu 402028SN/A 412023SN/Aimport m5 422597SN/Afrom m5.defines import buildEnv 435222Sksewell@umich.edufrom m5.objects import * 442023SN/Afrom common.Benchmarks import * 452023SN/A 462239SN/Afrom common import CpuConfig 472239SN/Afrom common import MemConfig 482028SN/Afrom common import PlatformConfig 492023SN/A 502131SN/Adef _listCpuTypes(option, opt, value, parser): 512023SN/A CpuConfig.print_cpu_list() 522131SN/A sys.exit(0) 532023SN/A 542525SN/Adef _listMemTypes(option, opt, value, parser): 552525SN/A MemConfig.print_mem_list() 562447SN/A sys.exit(0) 572023SN/A 585222Sksewell@umich.edudef _listPlatformTypes(option, opt, value, parser): 593093Sksewell@umich.edu PlatformConfig.print_platform_list() 603093Sksewell@umich.edu sys.exit(0) 612972Sgblack@eecs.umich.edu 622972Sgblack@eecs.umich.edu# Add the very basic options that work also in the case of the no ISA 635222Sksewell@umich.edu# being used, and consequently no CPUs, but rather various types of 642972Sgblack@eecs.umich.edu# testers and traffic generators. 652239SN/Adef addNoISAOptions(parser): 665222Sksewell@umich.edu parser.add_option("-n", "--num-cpus", type="int", default=1) 675222Sksewell@umich.edu parser.add_option("--sys-voltage", action="store", type="string", 685222Sksewell@umich.edu default='1.0V', 695222Sksewell@umich.edu help = """Top-level voltage for blocks running at system 705222Sksewell@umich.edu power supply""") 715222Sksewell@umich.edu parser.add_option("--sys-clock", action="store", type="string", 725222Sksewell@umich.edu default='1GHz', 735222Sksewell@umich.edu help = """Top-level clock for blocks running at system 745222Sksewell@umich.edu speed""") 755222Sksewell@umich.edu 765222Sksewell@umich.edu # Memory Options 775222Sksewell@umich.edu parser.add_option("--list-mem-types", 785222Sksewell@umich.edu action="callback", callback=_listMemTypes, 795222Sksewell@umich.edu help="List available memory types") 805222Sksewell@umich.edu parser.add_option("--mem-type", type="choice", default="DDR3_1600_8x8", 815222Sksewell@umich.edu choices=MemConfig.mem_names(), 825222Sksewell@umich.edu help = "type of memory to use") 835222Sksewell@umich.edu parser.add_option("--mem-channels", type="int", default=1, 845222Sksewell@umich.edu help = "number of memory channels") 855222Sksewell@umich.edu parser.add_option("--mem-ranks", type="int", default=None, 865222Sksewell@umich.edu help = "number of memory ranks per channel") 875222Sksewell@umich.edu parser.add_option("--mem-size", action="store", type="string", 885222Sksewell@umich.edu default="512MB", 895222Sksewell@umich.edu help="Specify the physical memory size (single memory)") 905222Sksewell@umich.edu 915222Sksewell@umich.edu 925222Sksewell@umich.edu parser.add_option("--memchecker", action="store_true") 935222Sksewell@umich.edu 945222Sksewell@umich.edu # Cache Options 955222Sksewell@umich.edu parser.add_option("--external-memory-system", type="string", 965222Sksewell@umich.edu help="use external ports of this port_type for caches") 975222Sksewell@umich.edu parser.add_option("--tlm-memory", type="string", 985222Sksewell@umich.edu help="use external port for SystemC TLM cosimulation") 995222Sksewell@umich.edu parser.add_option("--caches", action="store_true") 1005222Sksewell@umich.edu parser.add_option("--l2cache", action="store_true") 1015222Sksewell@umich.edu parser.add_option("--num-dirs", type="int", default=1) 1025222Sksewell@umich.edu parser.add_option("--num-l2caches", type="int", default=1) 1035222Sksewell@umich.edu parser.add_option("--num-l3caches", type="int", default=1) 1045222Sksewell@umich.edu parser.add_option("--l1d_size", type="string", default="64kB") 1055222Sksewell@umich.edu parser.add_option("--l1i_size", type="string", default="32kB") 1065222Sksewell@umich.edu parser.add_option("--l2_size", type="string", default="2MB") 1075222Sksewell@umich.edu parser.add_option("--l3_size", type="string", default="16MB") 1085222Sksewell@umich.edu parser.add_option("--l1d_assoc", type="int", default=2) 1095222Sksewell@umich.edu parser.add_option("--l1i_assoc", type="int", default=2) 1105222Sksewell@umich.edu parser.add_option("--l2_assoc", type="int", default=8) 1115222Sksewell@umich.edu parser.add_option("--l3_assoc", type="int", default=16) 1125222Sksewell@umich.edu parser.add_option("--cacheline_size", type="int", default=64) 1135222Sksewell@umich.edu 1145222Sksewell@umich.edu # Enable Ruby 1155222Sksewell@umich.edu parser.add_option("--ruby", action="store_true") 1165222Sksewell@umich.edu 1175222Sksewell@umich.edu # Run duration options 1185222Sksewell@umich.edu parser.add_option("-m", "--abs-max-tick", type="int", default=m5.MaxTick, 1195222Sksewell@umich.edu metavar="TICKS", help="Run to absolute simulated tick " 1205222Sksewell@umich.edu "specified including ticks from a restored checkpoint") 1215222Sksewell@umich.edu parser.add_option("--rel-max-tick", type="int", default=None, 1225222Sksewell@umich.edu metavar="TICKS", help="Simulate for specified number of" 1235222Sksewell@umich.edu " ticks relative to the simulation start tick (e.g. if " 1245222Sksewell@umich.edu "restoring a checkpoint)") 1255222Sksewell@umich.edu parser.add_option("--maxtime", type="float", default=None, 1265222Sksewell@umich.edu help="Run to the specified absolute simulated time in " 1275222Sksewell@umich.edu "seconds") 1285222Sksewell@umich.edu 1295222Sksewell@umich.edu# Add common options that assume a non-NULL ISA. 1305222Sksewell@umich.edudef addCommonOptions(parser): 1315222Sksewell@umich.edu # start by adding the base options that do not assume an ISA 1325222Sksewell@umich.edu addNoISAOptions(parser) 1335222Sksewell@umich.edu 1345222Sksewell@umich.edu # system options 1355222Sksewell@umich.edu parser.add_option("--list-cpu-types", 1365222Sksewell@umich.edu action="callback", callback=_listCpuTypes, 1375222Sksewell@umich.edu help="List available CPU types") 1385222Sksewell@umich.edu parser.add_option("--cpu-type", type="choice", default="AtomicSimpleCPU", 1395222Sksewell@umich.edu choices=CpuConfig.cpu_names(), 1405222Sksewell@umich.edu help = "type of cpu to run with") 1415222Sksewell@umich.edu parser.add_option("--checker", action="store_true"); 1425222Sksewell@umich.edu parser.add_option("--cpu-clock", action="store", type="string", 1435222Sksewell@umich.edu default='2GHz', 1445222Sksewell@umich.edu help="Clock for blocks running at CPU speed") 1455222Sksewell@umich.edu parser.add_option("--smt", action="store_true", default=False, 1465222Sksewell@umich.edu help = """ 1475222Sksewell@umich.edu Only used if multiple programs are specified. If true, 1485222Sksewell@umich.edu then the number of threads per cpu is same as the 1495222Sksewell@umich.edu number of programs.""") 1505222Sksewell@umich.edu parser.add_option("--elastic-trace-en", action="store_true", 1515222Sksewell@umich.edu help="""Enable capture of data dependency and instruction 1525222Sksewell@umich.edu fetch traces using elastic trace probe.""") 1535222Sksewell@umich.edu # Trace file paths input to trace probe in a capture simulation and input 1545222Sksewell@umich.edu # to Trace CPU in a replay simulation 1555222Sksewell@umich.edu parser.add_option("--inst-trace-file", action="store", type="string", 1565222Sksewell@umich.edu help="""Instruction fetch trace file input to 1575222Sksewell@umich.edu Elastic Trace probe in a capture simulation and 1585222Sksewell@umich.edu Trace CPU in a replay simulation""", default="") 1595222Sksewell@umich.edu parser.add_option("--data-trace-file", action="store", type="string", 1605222Sksewell@umich.edu help="""Data dependency trace file input to 1615222Sksewell@umich.edu Elastic Trace probe in a capture simulation and 1625222Sksewell@umich.edu Trace CPU in a replay simulation""", default="") 1635222Sksewell@umich.edu 1642972Sgblack@eecs.umich.edu parser.add_option("-l", "--lpae", action="store_true") 1652972Sgblack@eecs.umich.edu parser.add_option("-V", "--virtualisation", action="store_true") 1662131SN/A 1672972Sgblack@eecs.umich.edu parser.add_option("--fastmem", action="store_true") 1682972Sgblack@eecs.umich.edu 1694661Sksewell@umich.edu # dist-gem5 options 1702972Sgblack@eecs.umich.edu parser.add_option("--dist", action="store_true", 1712972Sgblack@eecs.umich.edu help="Parallel distributed gem5 simulation.") 1722597SN/A parser.add_option("--dist-sync-on-pseudo-op", action="store_true", 1735222Sksewell@umich.edu help="Use a pseudo-op to start dist-gem5 synchronization.") 1745222Sksewell@umich.edu parser.add_option("--is-switch", action="store_true", 1755222Sksewell@umich.edu help="Select the network switch simulator process for a"\ 1765222Sksewell@umich.edu "distributed gem5 run") 1772972Sgblack@eecs.umich.edu parser.add_option("--dist-rank", default=0, action="store", type="int", 1785222Sksewell@umich.edu help="Rank of this system within the dist gem5 run.") 1795222Sksewell@umich.edu parser.add_option("--dist-size", default=0, action="store", type="int", 1802597SN/A help="Number of gem5 processes within the dist gem5 run.") 1812972Sgblack@eecs.umich.edu parser.add_option("--dist-server-name", 1822972Sgblack@eecs.umich.edu default="127.0.0.1", 1832972Sgblack@eecs.umich.edu action="store", type="string", 1842972Sgblack@eecs.umich.edu help="Name of the message server host\nDEFAULT: localhost") 1852972Sgblack@eecs.umich.edu parser.add_option("--dist-server-port", 1862972Sgblack@eecs.umich.edu default=2200, 1875222Sksewell@umich.edu action="store", type="int", 1885222Sksewell@umich.edu help="Message server listen port\nDEFAULT: 2200") 1895222Sksewell@umich.edu parser.add_option("--dist-sync-repeat", 1905222Sksewell@umich.edu default="0us", 1912972Sgblack@eecs.umich.edu action="store", type="string", 1922972Sgblack@eecs.umich.edu help="Repeat interval for synchronisation barriers among dist-gem5 processes\nDEFAULT: --ethernet-linkdelay") 1932972Sgblack@eecs.umich.edu parser.add_option("--dist-sync-start", 1942972Sgblack@eecs.umich.edu default="5200000000000t", 1952972Sgblack@eecs.umich.edu action="store", type="string", 1962972Sgblack@eecs.umich.edu help="Time to schedule the first dist synchronisation barrier\nDEFAULT:5200000000000t") 1972597SN/A parser.add_option("--ethernet-linkspeed", default="10Gbps", 1985222Sksewell@umich.edu action="store", type="string", 1995222Sksewell@umich.edu help="Link speed in bps\nDEFAULT: 10Gbps") 2005222Sksewell@umich.edu parser.add_option("--ethernet-linkdelay", default="10us", 2012972Sgblack@eecs.umich.edu action="store", type="string", 2024661Sksewell@umich.edu help="Link delay in seconds\nDEFAULT: 10us") 2035222Sksewell@umich.edu 2042131SN/A # Run duration options 2052972Sgblack@eecs.umich.edu parser.add_option("-I", "--maxinsts", action="store", type="int", 2062972Sgblack@eecs.umich.edu default=None, help="""Total number of instructions to 2072131SN/A simulate (default: run forever)""") 2082972Sgblack@eecs.umich.edu parser.add_option("--work-item-id", action="store", type="int", 2092131SN/A help="the specific work id for exit & checkpointing") 2102972Sgblack@eecs.umich.edu parser.add_option("--num-work-ids", action="store", type="int", 2112972Sgblack@eecs.umich.edu help="Number of distinct work item types") 2122972Sgblack@eecs.umich.edu parser.add_option("--work-begin-cpu-id-exit", action="store", type="int", 2132972Sgblack@eecs.umich.edu help="exit when work starts on the specified cpu") 2142131SN/A parser.add_option("--work-end-exit-count", action="store", type="int", 2152972Sgblack@eecs.umich.edu help="exit at specified work end count") 2162972Sgblack@eecs.umich.edu parser.add_option("--work-begin-exit-count", action="store", type="int", 2172131SN/A help="exit at specified work begin count") 2185222Sksewell@umich.edu parser.add_option("--init-param", action="store", type="int", default=0, 2195222Sksewell@umich.edu help="""Parameter available in simulation with m5 2205222Sksewell@umich.edu initparam""") 2215222Sksewell@umich.edu parser.add_option("--initialize-only", action="store_true", default=False, 2224661Sksewell@umich.edu help="""Exit after initialization. Do not simulate time. 2234661Sksewell@umich.edu Useful when gem5 is run as a library.""") 2244661Sksewell@umich.edu 2254661Sksewell@umich.edu # Simpoint options 2264661Sksewell@umich.edu parser.add_option("--simpoint-profile", action="store_true", 2274661Sksewell@umich.edu help="Enable basic block profiling for SimPoints") 2284661Sksewell@umich.edu parser.add_option("--simpoint-interval", type="int", default=10000000, 2294661Sksewell@umich.edu help="SimPoint interval in num of instructions") 2305222Sksewell@umich.edu parser.add_option("--take-simpoint-checkpoints", action="store", type="string", 2314661Sksewell@umich.edu help="<simpoint file,weight file,interval-length,warmup-length>") 2324661Sksewell@umich.edu parser.add_option("--restore-simpoint-checkpoint", action="store_true", 2334661Sksewell@umich.edu help="restore from a simpoint checkpoint taken with " + 2344661Sksewell@umich.edu "--take-simpoint-checkpoints") 2355222Sksewell@umich.edu 2364661Sksewell@umich.edu # Checkpointing options 2374661Sksewell@umich.edu ###Note that performing checkpointing via python script files will override 2384661Sksewell@umich.edu ###checkpoint instructions built into binaries. 2394661Sksewell@umich.edu parser.add_option("--take-checkpoints", action="store", type="string", 2404661Sksewell@umich.edu help="<M,N> take checkpoints at tick M and every N ticks thereafter") 2414661Sksewell@umich.edu parser.add_option("--max-checkpoints", action="store", type="int", 2424661Sksewell@umich.edu help="the maximum number of checkpoints to drop", default=5) 2434661Sksewell@umich.edu parser.add_option("--checkpoint-dir", action="store", type="string", 2445222Sksewell@umich.edu help="Place all checkpoints in this absolute directory") 2454661Sksewell@umich.edu parser.add_option("-r", "--checkpoint-restore", action="store", type="int", 2464661Sksewell@umich.edu help="restore from checkpoint <N>") 2474661Sksewell@umich.edu parser.add_option("--checkpoint-at-end", action="store_true", 2484661Sksewell@umich.edu help="take a checkpoint at end of run") 2494661Sksewell@umich.edu parser.add_option("--work-begin-checkpoint-count", action="store", type="int", 2504661Sksewell@umich.edu help="checkpoint at specified work begin count") 2514661Sksewell@umich.edu parser.add_option("--work-end-checkpoint-count", action="store", type="int", 2524661Sksewell@umich.edu help="checkpoint at specified work end count") 2535222Sksewell@umich.edu parser.add_option("--work-cpus-checkpoint-count", action="store", type="int", 2544661Sksewell@umich.edu help="checkpoint and exit when active cpu count is reached") 2555222Sksewell@umich.edu parser.add_option("--restore-with-cpu", action="store", type="choice", 2564661Sksewell@umich.edu default="AtomicSimpleCPU", choices=CpuConfig.cpu_names(), 2574661Sksewell@umich.edu help = "cpu type for restoring from a checkpoint") 2585222Sksewell@umich.edu 2595222Sksewell@umich.edu 2604661Sksewell@umich.edu # CPU Switching - default switch model goes from a checkpoint 2615222Sksewell@umich.edu # to a timing simple CPU with caches to warm up, then to detailed CPU for 2624661Sksewell@umich.edu # data measurement 2634661Sksewell@umich.edu parser.add_option("--repeat-switch", action="store", type="int", 2644661Sksewell@umich.edu default=None, 2654661Sksewell@umich.edu help="switch back and forth between CPUs with period <N>") 2664661Sksewell@umich.edu parser.add_option("-s", "--standard-switch", action="store", type="int", 2674661Sksewell@umich.edu default=None, 2685222Sksewell@umich.edu help="switch from timing to Detailed CPU after warmup period of <N>") 2694661Sksewell@umich.edu parser.add_option("-p", "--prog-interval", type="str", 2705222Sksewell@umich.edu help="CPU Progress Interval") 2714661Sksewell@umich.edu 2725222Sksewell@umich.edu # Fastforwarding and simpoint related materials 2734661Sksewell@umich.edu parser.add_option("-W", "--warmup-insts", action="store", type="int", 2745222Sksewell@umich.edu default=None, 2754661Sksewell@umich.edu help="Warmup period in total instructions (requires --standard-switch)") 2765222Sksewell@umich.edu parser.add_option("--bench", action="store", type="string", default=None, 2774661Sksewell@umich.edu help="base names for --take-checkpoint and --checkpoint-restore") 2785222Sksewell@umich.edu parser.add_option("-F", "--fast-forward", action="store", type="string", 2794661Sksewell@umich.edu default=None, 2804661Sksewell@umich.edu help="Number of instructions to fast forward before switching") 2814661Sksewell@umich.edu parser.add_option("-S", "--simpoint", action="store_true", default=False, 2824661Sksewell@umich.edu help="""Use workload simpoints as an instruction offset for 2835222Sksewell@umich.edu --checkpoint-restore or --take-checkpoint.""") 2844661Sksewell@umich.edu parser.add_option("--at-instruction", action="store_true", default=False, 2855222Sksewell@umich.edu help="""Treat value of --checkpoint-restore or --take-checkpoint as a 2864661Sksewell@umich.edu number of instructions.""") 2875222Sksewell@umich.edu parser.add_option("--spec-input", default="ref", type="choice", 2884661Sksewell@umich.edu choices=["ref", "test", "train", "smred", "mdred", 2894661Sksewell@umich.edu "lgred"], 2905222Sksewell@umich.edu help="Input set size for SPEC CPU2000 benchmarks.") 2914661Sksewell@umich.edu parser.add_option("--arm-iset", default="arm", type="choice", 2924661Sksewell@umich.edu choices=["arm", "thumb", "aarch64"], 2934661Sksewell@umich.edu help="ARM instruction set.") 2944661Sksewell@umich.edu 2954661Sksewell@umich.edu 2964661Sksewell@umich.edudef addSEOptions(parser): 2974661Sksewell@umich.edu # Benchmark options 2984661Sksewell@umich.edu parser.add_option("-c", "--cmd", default="", 2994661Sksewell@umich.edu help="The binary to run in syscall emulation mode.") 3005222Sksewell@umich.edu parser.add_option("-o", "--options", default="", 3014661Sksewell@umich.edu help="""The options to pass to the binary, use " " 3025222Sksewell@umich.edu around the entire string""") 3034661Sksewell@umich.edu parser.add_option("-e", "--env", default="", 3044661Sksewell@umich.edu help="Initialize workload environment from text file.") 3054661Sksewell@umich.edu parser.add_option("-i", "--input", default="", 3064661Sksewell@umich.edu help="Read stdin from a file.") 3074661Sksewell@umich.edu parser.add_option("--output", default="", 3084661Sksewell@umich.edu help="Redirect stdout to a file.") 3094661Sksewell@umich.edu parser.add_option("--errout", default="", 3104661Sksewell@umich.edu help="Redirect stderr to a file.") 3115222Sksewell@umich.edu 3124661Sksewell@umich.edudef addFSOptions(parser): 3134661Sksewell@umich.edu from FSConfig import os_types 3144661Sksewell@umich.edu 3154661Sksewell@umich.edu # Simulation options 3164661Sksewell@umich.edu parser.add_option("--timesync", action="store_true", 3174661Sksewell@umich.edu help="Prevent simulated time from getting ahead of real time") 3184661Sksewell@umich.edu 3194661Sksewell@umich.edu # System options 3205222Sksewell@umich.edu parser.add_option("--kernel", action="store", type="string") 3214661Sksewell@umich.edu parser.add_option("--os-type", action="store", type="choice", 3224661Sksewell@umich.edu choices=os_types[buildEnv['TARGET_ISA']], default="linux", 3234661Sksewell@umich.edu help="Specifies type of OS to boot") 3244661Sksewell@umich.edu parser.add_option("--script", action="store", type="string") 3254661Sksewell@umich.edu parser.add_option("--frame-capture", action="store_true", 3265222Sksewell@umich.edu help="Stores changed frame buffers from the VNC server to compressed "\ 3274661Sksewell@umich.edu "files in the gem5 output directory") 3284661Sksewell@umich.edu 3294661Sksewell@umich.edu if buildEnv['TARGET_ISA'] == "arm": 3304661Sksewell@umich.edu parser.add_option("--bare-metal", action="store_true", 3314661Sksewell@umich.edu help="Provide the raw system without the linux specific bits") 3325222Sksewell@umich.edu parser.add_option("--list-machine-types", 3334661Sksewell@umich.edu action="callback", callback=_listPlatformTypes, 3345222Sksewell@umich.edu help="List available platform types") 3354661Sksewell@umich.edu parser.add_option("--machine-type", action="store", type="choice", 3364661Sksewell@umich.edu choices=PlatformConfig.platform_names(), 3374661Sksewell@umich.edu default="VExpress_EMM") 3384661Sksewell@umich.edu parser.add_option("--dtb-filename", action="store", type="string", 3394661Sksewell@umich.edu help="Specifies device tree blob file to use with device-tree-"\ 3404661Sksewell@umich.edu "enabled kernels") 3414661Sksewell@umich.edu parser.add_option("--enable-security-extensions", action="store_true", 3424661Sksewell@umich.edu help="Turn on the ARM Security Extensions") 3435222Sksewell@umich.edu parser.add_option("--enable-context-switch-stats-dump", \ 3444661Sksewell@umich.edu action="store_true", help="Enable stats dump at context "\ 3455222Sksewell@umich.edu "switches and dump tasks file (required for Streamline)") 3464661Sksewell@umich.edu 3474661Sksewell@umich.edu # Benchmark options 3484661Sksewell@umich.edu parser.add_option("--dual", action="store_true", 3494661Sksewell@umich.edu help="Simulate two systems attached with an ethernet link") 3505222Sksewell@umich.edu parser.add_option("-b", "--benchmark", action="store", type="string", 3514661Sksewell@umich.edu dest="benchmark", 3524661Sksewell@umich.edu help="Specify the benchmark to run. Available benchmarks: %s"\ 3534661Sksewell@umich.edu % DefinedBenchmarks) 3544661Sksewell@umich.edu 3554661Sksewell@umich.edu # Metafile options 3564661Sksewell@umich.edu parser.add_option("--etherdump", action="store", type="string", dest="etherdump", 3574661Sksewell@umich.edu help="Specify the filename to dump a pcap capture of the" \ 3584661Sksewell@umich.edu "ethernet traffic") 3595222Sksewell@umich.edu 3604661Sksewell@umich.edu # Disk Image Options 3614661Sksewell@umich.edu parser.add_option("--disk-image", action="store", type="string", default=None, 3624661Sksewell@umich.edu help="Path to the disk image to use.") 3634661Sksewell@umich.edu parser.add_option("--root-device", action="store", type="string", default=None, 3644661Sksewell@umich.edu help="OS device name for root partition") 3654661Sksewell@umich.edu 3664661Sksewell@umich.edu # Command line options 3674661Sksewell@umich.edu parser.add_option("--command-line", action="store", type="string", 3684661Sksewell@umich.edu default=None, 3695222Sksewell@umich.edu help="Template for the kernel command line.") 3704661Sksewell@umich.edu parser.add_option("--command-line-file", action="store", 3715222Sksewell@umich.edu default=None, type="string", 3724661Sksewell@umich.edu help="File with a template for the kernel command line") 3735222Sksewell@umich.edu