SConscript revision 12655
12155SN/A# -*- mode:python -*-
22155SN/A
32155SN/A# Copyright (c) 2006 The Regents of The University of Michigan
42155SN/A# All rights reserved.
52155SN/A#
62155SN/A# Redistribution and use in source and binary forms, with or without
72155SN/A# modification, are permitted provided that the following conditions are
82155SN/A# met: redistributions of source code must retain the above copyright
92155SN/A# notice, this list of conditions and the following disclaimer;
102155SN/A# redistributions in binary form must reproduce the above copyright
112155SN/A# notice, this list of conditions and the following disclaimer in the
122155SN/A# documentation and/or other materials provided with the distribution;
132155SN/A# neither the name of the copyright holders nor the names of its
142155SN/A# contributors may be used to endorse or promote products derived from
152155SN/A# this software without specific prior written permission.
162155SN/A#
172155SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192155SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272155SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# Authors: Steve Reinhardt
302155SN/A
314202Sbinkertn@umich.eduImport('*')
322155SN/A
332178SN/Aif env['TARGET_ISA'] == 'null':
342178SN/A    SimObject('IntrControl.py')
352178SN/A    Source('intr_control_noisa.cc')
362178SN/A    Return()
372178SN/A
382178SN/A# Only build the protocol buffer instructions tracer if we have protobuf support
392178SN/Aif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86':
402178SN/A    SimObject('InstPBTrace.py')
412178SN/A    Source('inst_pb_trace.cc')
422178SN/A
432178SN/ASimObject('CheckerCPU.py')
442178SN/A
452155SN/ASimObject('BaseCPU.py')
462178SN/ASimObject('CPUTracers.py')
472155SN/ASimObject('FuncUnit.py')
482155SN/ASimObject('IntrControl.py')
492178SN/ASimObject('TimingExpr.py')
502155SN/A
515865Sksewell@umich.eduSource('activity.cc')
526181Sksewell@umich.eduSource('base.cc')
536181Sksewell@umich.eduSource('cpuevent.cc')
545865Sksewell@umich.eduSource('exetrace.cc')
553918Ssaidi@eecs.umich.eduSource('exec_context.cc')
565865Sksewell@umich.eduSource('func_unit.cc')
572623SN/ASource('inteltrace.cc')
583918Ssaidi@eecs.umich.eduSource('intr_control.cc')
592155SN/ASource('nativetrace.cc')
602155SN/ASource('pc_event.cc')
612292SN/ASource('profile.cc')
626181Sksewell@umich.eduSource('quiesce_event.cc')
636181Sksewell@umich.eduSource('reg_class.cc')
643918Ssaidi@eecs.umich.eduSource('static_inst.cc')
652292SN/ASource('simple_thread.cc')
662292SN/ASource('thread_context.cc')
672292SN/ASource('thread_state.cc')
683918Ssaidi@eecs.umich.eduSource('timing_expr.cc')
692292SN/A
702292SN/ASimObject('DummyChecker.py')
712766Sktlim@umich.eduSimObject('StaticInstFlags.py')
722766Sktlim@umich.eduSource('checker/cpu.cc')
732766Sktlim@umich.eduSource('dummy_checker.cc')
742921Sktlim@umich.eduDebugFlag('Checker')
752921Sktlim@umich.edu
762766Sktlim@umich.eduDebugFlag('Activity')
772766Sktlim@umich.eduDebugFlag('Commit')
785529Snate@binkert.orgDebugFlag('Context')
792766Sktlim@umich.eduDebugFlag('Decode')
804762Snate@binkert.orgDebugFlag('DynInst')
812155SN/ADebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
822155SN/ADebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
832155SN/ADebugFlag('ExecEffAddr', 'Format: Include effective address')
842155SN/ADebugFlag('ExecFaulting', 'Trace faulting instructions')
852155SN/ADebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
862155SN/ADebugFlag('ExecOpClass', 'Format: Include operand class')
872766Sktlim@umich.eduDebugFlag('ExecRegDelta')
882155SN/ADebugFlag('ExecResult', 'Format: Include results from execution')
895865Sksewell@umich.eduDebugFlag('ExecSymbol', 'Format: Try to include symbol names')
902155SN/ADebugFlag('ExecThread', 'Format: Include thread ID in trace')
912155SN/ADebugFlag('ExecTicks', 'Format: Include tick count')
922155SN/ADebugFlag('ExecMicro', 'Filter: Include microops')
932155SN/ADebugFlag('ExecMacro', 'Filter: Include macroops')
942178SN/ADebugFlag('ExecUser', 'Filter: Trace user mode instructions')
952178SN/ADebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
962178SN/ADebugFlag('ExecAsid', 'Format: Include ASID in trace')
972766Sktlim@umich.eduDebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
982178SN/ADebugFlag('Fetch')
992178SN/ADebugFlag('IntrControl')
1002178SN/ADebugFlag('O3PipeView')
1012178SN/ADebugFlag('PCEvent')
1022766Sktlim@umich.eduDebugFlag('Quiesce')
1032766Sktlim@umich.eduDebugFlag('Mwait')
1042766Sktlim@umich.edu
1052788Sktlim@umich.eduCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
1062178SN/A    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
1072733Sktlim@umich.edu    'ExecResult', 'ExecSymbol', 'ExecThread',
1082733Sktlim@umich.edu    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
1092817Sksewell@umich.edu    'ExecAsid', 'ExecFlags' ])
1102733Sktlim@umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
1114486Sbinkertn@umich.edu    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro',
1124486Sbinkertn@umich.edu    'ExecFaulting', 'ExecUser', 'ExecKernel' ])
1134776Sgblack@eecs.umich.eduCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
1144776Sgblack@eecs.umich.edu    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting',
1156365Sgblack@eecs.umich.edu    'ExecUser', 'ExecKernel' ])
1164486Sbinkertn@umich.edu