MemTraceProbe.py revision 12191:402368e3ca19
12207SN/A# Copyright (c) 2014-2015 ARM Limited 22207SN/A# All rights reserved. 32207SN/A# 42207SN/A# The license below extends only to copyright in the software and shall 52207SN/A# not be construed as granting a license to any other intellectual 62207SN/A# property including but not limited to intellectual property relating 72207SN/A# to a hardware implementation of the functionality of the software 82207SN/A# licensed hereunder. You may use the software subject to the license 92207SN/A# terms below provided that you ensure that this notice is replicated 102207SN/A# unmodified and in its entirety in all distributions of the software, 112207SN/A# modified or unmodified, in source code or in binary form. 122207SN/A# 132207SN/A# Redistribution and use in source and binary forms, with or without 142207SN/A# modification, are permitted provided that the following conditions are 152207SN/A# met: redistributions of source code must retain the above copyright 162207SN/A# notice, this list of conditions and the following disclaimer; 172207SN/A# redistributions in binary form must reproduce the above copyright 182207SN/A# notice, this list of conditions and the following disclaimer in the 192207SN/A# documentation and/or other materials provided with the distribution; 202207SN/A# neither the name of the copyright holders nor the names of its 212207SN/A# contributors may be used to endorse or promote products derived from 222207SN/A# this software without specific prior written permission. 232207SN/A# 242207SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 252207SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 262207SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 272665Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 282665Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 292665Ssaidi@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 302207SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 312207SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 323589Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 334111Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 342474SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 358229Snate@binkert.org# 366335Sgblack@eecs.umich.edu# Authors: Andreas Sandberg 373760Sgblack@eecs.umich.edu 388229Snate@binkert.orgfrom m5.params import * 392454SN/Afrom m5.proxy import * 402454SN/Afrom BaseMemProbe import BaseMemProbe 412680Sktlim@umich.edu 428232Snate@binkert.orgclass MemTraceProbe(BaseMemProbe): 432561SN/A type = 'MemTraceProbe' 444434Ssaidi@eecs.umich.edu cxx_header = "mem/probes/mem_trace.hh" 452474SN/A 462207SN/A # Boolean to compress the trace or not. 472458SN/A trace_compress = Param.Bool(True, "Enable trace compression") 482474SN/A 492458SN/A # For requests with a valid PC, include the PC in the trace 505958Sgblack@eecs.umich.edu with_pc = Param.Bool(False, "Include PC info in the trace") 515958Sgblack@eecs.umich.edu 522207SN/A # packet trace output file, disabled by default 535154Sgblack@eecs.umich.edu trace_file = Param.String("", "Packet trace output file") 545285Sgblack@eecs.umich.edu 555285Sgblack@eecs.umich.edu # System object to look up the name associated with a master ID 562474SN/A system = Param.System(Parent.any, "System the probe belongs to") 572474SN/A