SConscript revision 12839
1955SN/A# -*- mode:python -*- 2955SN/A 31762SN/A# Copyright (c) 2006 The Regents of The University of Michigan 4955SN/A# All rights reserved. 5955SN/A# 6955SN/A# Redistribution and use in source and binary forms, with or without 7955SN/A# modification, are permitted provided that the following conditions are 8955SN/A# met: redistributions of source code must retain the above copyright 9955SN/A# notice, this list of conditions and the following disclaimer; 10955SN/A# redistributions in binary form must reproduce the above copyright 11955SN/A# notice, this list of conditions and the following disclaimer in the 12955SN/A# documentation and/or other materials provided with the distribution; 13955SN/A# neither the name of the copyright holders nor the names of its 14955SN/A# contributors may be used to endorse or promote products derived from 15955SN/A# this software without specific prior written permission. 16955SN/A# 17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 294762Snate@binkert.org# Authors: Steve Reinhardt 30955SN/A 3112563Sgabeblack@google.comImport('*') 3212563Sgabeblack@google.com 335522Snate@binkert.orgif env['TARGET_ISA'] == 'null': 346143Snate@binkert.org SimObject('IntrControl.py') 3512371Sgabeblack@google.com Source('intr_control_noisa.cc') 364762Snate@binkert.org Return() 375522Snate@binkert.org 38955SN/A# Only build the protocol buffer instructions tracer if we have protobuf support 395522Snate@binkert.orgif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86': 4011974Sgabeblack@google.com SimObject('InstPBTrace.py') 41955SN/A Source('inst_pb_trace.cc') 425522Snate@binkert.org 434202Sbinkertn@umich.eduSimObject('CheckerCPU.py') 445742Snate@binkert.org 45955SN/ASimObject('BaseCPU.py') 464381Sbinkertn@umich.eduSimObject('CPUTracers.py') 474381Sbinkertn@umich.eduSimObject('FuncUnit.py') 4812246Sgabeblack@google.comSimObject('IntrControl.py') 4912246Sgabeblack@google.comSimObject('TimingExpr.py') 508334Snate@binkert.org 51955SN/ASource('activity.cc') 52955SN/ASource('base.cc') 534202Sbinkertn@umich.eduSource('cpuevent.cc') 54955SN/ASource('exetrace.cc') 554382Sbinkertn@umich.eduSource('exec_context.cc') 564382Sbinkertn@umich.eduSource('func_unit.cc') 574382Sbinkertn@umich.eduSource('inteltrace.cc') 586654Snate@binkert.orgSource('intr_control.cc') 595517Snate@binkert.orgSource('nativetrace.cc') 608614Sgblack@eecs.umich.eduSource('pc_event.cc') 617674Snate@binkert.orgSource('profile.cc') 626143Snate@binkert.orgSource('quiesce_event.cc') 636143Snate@binkert.orgSource('reg_class.cc') 646143Snate@binkert.orgSource('static_inst.cc') 6512302Sgabeblack@google.comSource('simple_thread.cc') 6612302Sgabeblack@google.comSource('thread_context.cc') 6712302Sgabeblack@google.comSource('thread_state.cc') 6812371Sgabeblack@google.comSource('timing_expr.cc') 6912371Sgabeblack@google.com 7012371Sgabeblack@google.comSimObject('DummyChecker.py') 7112371Sgabeblack@google.comSimObject('StaticInstFlags.py') 7212371Sgabeblack@google.comSource('checker/cpu.cc') 7312371Sgabeblack@google.comSource('dummy_checker.cc') 7412371Sgabeblack@google.comDebugFlag('Checker') 7512371Sgabeblack@google.com 7612371Sgabeblack@google.comDebugFlag('Activity') 7712371Sgabeblack@google.comDebugFlag('Commit') 7812371Sgabeblack@google.comDebugFlag('Context') 7912371Sgabeblack@google.comDebugFlag('Decode') 8012371Sgabeblack@google.comDebugFlag('DynInst') 8112371Sgabeblack@google.comDebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)') 8212371Sgabeblack@google.comDebugFlag('ExecCPSeq', 'Format: Instruction sequence number') 8312371Sgabeblack@google.comDebugFlag('ExecEffAddr', 'Format: Include effective address') 8412371Sgabeblack@google.comDebugFlag('ExecFaulting', 'Trace faulting instructions') 8512371Sgabeblack@google.comDebugFlag('ExecFetchSeq', 'Format: Fetch sequence number') 8612371Sgabeblack@google.comDebugFlag('ExecOpClass', 'Format: Include operand class') 8712371Sgabeblack@google.comDebugFlag('ExecRegDelta') 8812371Sgabeblack@google.comDebugFlag('ExecResult', 'Format: Include results from execution') 8912371Sgabeblack@google.comDebugFlag('ExecSymbol', 'Format: Try to include symbol names') 9012371Sgabeblack@google.comDebugFlag('ExecThread', 'Format: Include thread ID in trace') 9112371Sgabeblack@google.comDebugFlag('ExecTicks', 'Format: Include tick count') 9212371Sgabeblack@google.comDebugFlag('ExecMicro', 'Filter: Include microops') 9312371Sgabeblack@google.comDebugFlag('ExecMacro', 'Filter: Include macroops') 9412371Sgabeblack@google.comDebugFlag('ExecUser', 'Filter: Trace user mode instructions') 9512371Sgabeblack@google.comDebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions') 9612371Sgabeblack@google.comDebugFlag('ExecAsid', 'Format: Include ASID in trace') 9712371Sgabeblack@google.comDebugFlag('ExecFlags', 'Format: Include instruction flags in trace') 9812371Sgabeblack@google.comDebugFlag('Fetch') 9912371Sgabeblack@google.comDebugFlag('IntrControl') 10012371Sgabeblack@google.comDebugFlag('O3PipeView') 10112371Sgabeblack@google.comDebugFlag('PCEvent') 10212371Sgabeblack@google.comDebugFlag('Quiesce') 10312371Sgabeblack@google.comDebugFlag('Mwait') 10412371Sgabeblack@google.com 10512371Sgabeblack@google.comCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr', 10612371Sgabeblack@google.com 'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta', 10712371Sgabeblack@google.com 'ExecResult', 'ExecSymbol', 'ExecThread', 10812371Sgabeblack@google.com 'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel', 10912371Sgabeblack@google.com 'ExecAsid', 'ExecFlags' ]) 11012371Sgabeblack@google.comCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread', 11112371Sgabeblack@google.com 'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro', 11212371Sgabeblack@google.com 'ExecFaulting', 'ExecUser', 'ExecKernel' ]) 11312371Sgabeblack@google.comCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread', 11412371Sgabeblack@google.com 'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting', 11512302Sgabeblack@google.com 'ExecUser', 'ExecKernel' ]) 11612371Sgabeblack@google.com