SConscript revision 12246
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2006 The Regents of The University of Michigan 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# Redistribution and use in source and binary forms, with or without 72139SN/A# modification, are permitted provided that the following conditions are 82139SN/A# met: redistributions of source code must retain the above copyright 92139SN/A# notice, this list of conditions and the following disclaimer; 102139SN/A# redistributions in binary form must reproduce the above copyright 112139SN/A# notice, this list of conditions and the following disclaimer in the 122139SN/A# documentation and/or other materials provided with the distribution; 132139SN/A# neither the name of the copyright holders nor the names of its 142139SN/A# contributors may be used to endorse or promote products derived from 152139SN/A# this software without specific prior written permission. 162139SN/A# 172139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Steve Reinhardt 302139SN/A 314202Sbinkertn@umich.eduImport('*') 328961Sgblack@eecs.umich.edu 332139SN/Aif env['TARGET_ISA'] == 'null': 344202Sbinkertn@umich.edu SimObject('IntrControl.py') 352152SN/A Source('intr_control_noisa.cc') 362152SN/A Return() 372139SN/A 382139SN/A# Only build the protocol buffer instructions tracer if we have protobuf support 392139SN/Aif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86': 402139SN/A SimObject('InstPBTrace.py') 412139SN/A Source('inst_pb_trace.cc') 422152SN/A 432152SN/ASimObject('CheckerCPU.py') 442139SN/A 452139SN/ASimObject('BaseCPU.py') 462139SN/ASimObject('CPUTracers.py') 479020Sgblack@eecs.umich.eduSimObject('FuncUnit.py') 484781Snate@binkert.orgSimObject('IntrControl.py') 497799Sgblack@eecs.umich.eduSimObject('TimingExpr.py') 504781Snate@binkert.org 514781Snate@binkert.orgSource('activity.cc') 523170Sstever@eecs.umich.eduSource('base.cc') 535664Sgblack@eecs.umich.eduSource('cpuevent.cc') 548105Sgblack@eecs.umich.eduSource('exetrace.cc') 556179Sksewell@umich.eduSource('exec_context.cc') 564781Snate@binkert.orgSource('func_unit.cc') 576329Sgblack@eecs.umich.eduSource('inteltrace.cc') 584781Snate@binkert.orgSource('intr_control.cc') 594781Snate@binkert.orgSource('nativetrace.cc') 604781Snate@binkert.orgSource('pc_event.cc') 614781Snate@binkert.orgSource('profile.cc') 624781Snate@binkert.orgSource('quiesce_event.cc') 634781Snate@binkert.orgSource('reg_class.cc') 642139SN/ASource('static_inst.cc') 652139SN/ASource('simple_thread.cc') 663546Sgblack@eecs.umich.eduSource('thread_context.cc') 674202Sbinkertn@umich.eduSource('thread_state.cc') 682152SN/ASource('timing_expr.cc') 692152SN/A 702152SN/ASimObject('DummyChecker.py') 712152SN/ASimObject('StaticInstFlags.py') 722152SN/ASource('checker/cpu.cc') 732152SN/ASource('dummy_checker.cc') 742152SN/ADebugFlag('Checker') 752152SN/A 762152SN/ADebugFlag('Activity') 772152SN/ADebugFlag('Commit') 782152SN/ADebugFlag('Context') 792152SN/ADebugFlag('Decode') 802504SN/ADebugFlag('DynInst') 812504SN/ADebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)') 822504SN/ADebugFlag('ExecCPSeq', 'Format: Instruction sequence number') 832504SN/ADebugFlag('ExecEffAddr', 'Format: Include effective address') 842152SN/ADebugFlag('ExecFaulting', 'Trace faulting instructions') 852504SN/ADebugFlag('ExecFetchSeq', 'Format: Fetch sequence number') 862152SN/ADebugFlag('ExecOpClass', 'Format: Include operand class') 872152SN/ADebugFlag('ExecRegDelta') 882152SN/ADebugFlag('ExecResult', 'Format: Include results from execution') 892152SN/ADebugFlag('ExecSymbol', 'Format: Try to include symbol names') 902152SN/ADebugFlag('ExecThread', 'Format: Include thread ID in trace') 912152SN/ADebugFlag('ExecTicks', 'Format: Include tick count') 928584Sgblack@eecs.umich.eduDebugFlag('ExecMicro', 'Filter: Include microops') 938584Sgblack@eecs.umich.eduDebugFlag('ExecMacro', 'Filter: Include macroops') 946993Snate@binkert.orgDebugFlag('ExecUser', 'Filter: Trace user mode instructions') 956993Snate@binkert.orgDebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions') 966993Snate@binkert.orgDebugFlag('ExecAsid', 'Format: Include ASID in trace') 976993Snate@binkert.orgDebugFlag('ExecFlags', 'Format: Include instruction flags in trace') 988887Sgeoffrey.blake@arm.comDebugFlag('Fetch') 996993Snate@binkert.orgDebugFlag('IntrControl') 1006993Snate@binkert.orgDebugFlag('O3PipeView') 1016993Snate@binkert.orgDebugFlag('PCEvent') 1026993Snate@binkert.orgDebugFlag('Quiesce') 1036993Snate@binkert.orgDebugFlag('Mwait') 1046993Snate@binkert.org 1056993Snate@binkert.orgCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr', 1068584Sgblack@eecs.umich.edu 'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta', 1078584Sgblack@eecs.umich.edu 'ExecResult', 'ExecSymbol', 'ExecThread', 1088584Sgblack@eecs.umich.edu 'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel', 1098584Sgblack@eecs.umich.edu 'ExecAsid', 'ExecFlags' ]) 1108584Sgblack@eecs.umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread', 1118961Sgblack@eecs.umich.edu 'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro', 1126993Snate@binkert.org 'ExecFaulting', 'ExecUser', 'ExecKernel' ]) 1136993Snate@binkert.orgCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread', 1146993Snate@binkert.org 'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting', 1156998Snate@binkert.org 'ExecUser', 'ExecKernel' ]) 1166998Snate@binkert.org