110663SN/A# Copyright (c) 2007 The Regents of The University of Michigan 210663SN/A# All rights reserved. 310663SN/A# 410663SN/A# Redistribution and use in source and binary forms, with or without 510663SN/A# modification, are permitted provided that the following conditions are 610663SN/A# met: redistributions of source code must retain the above copyright 710663SN/A# notice, this list of conditions and the following disclaimer; 810663SN/A# redistributions in binary form must reproduce the above copyright 910663SN/A# notice, this list of conditions and the following disclaimer in the 1010663SN/A# documentation and/or other materials provided with the distribution; 1110663SN/A# neither the name of the copyright holders nor the names of its 1210663SN/A# contributors may be used to endorse or promote products derived from 1310663SN/A# this software without specific prior written permission. 1410663SN/A# 1510663SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1610663SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1710663SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1810663SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1910663SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2010663SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2110663SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2210663SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2310663SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2410663SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2510663SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2610663SN/A# 2710663SN/A# Authors: Gabe Black 2810663SN/A 2910663SN/Afrom m5.SimObject import SimObject 3010663SN/Afrom m5.params import * 3113665Sandreas.sandberg@arm.com 3213665Sandreas.sandberg@arm.comfrom m5.objects.InstTracer import InstTracer 3310663SN/A 3410695SAli.Saidi@ARM.comclass InstPBTrace(InstTracer): 3510695SAli.Saidi@ARM.com type = 'InstPBTrace' 3610695SAli.Saidi@ARM.com cxx_class = 'Trace::InstPBTrace' 3710695SAli.Saidi@ARM.com cxx_header = 'cpu/inst_pb_trace.hh' 3810695SAli.Saidi@ARM.com file_name = Param.String("Instruction trace output file") 39