SConscript revision 13227
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('*')
322139SN/A
334202Sbinkertn@umich.eduif env['TARGET_ISA'] == 'null':
342152SN/A    SimObject('IntrControl.py')
352152SN/A    Source('intr_control_noisa.cc')
362139SN/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')
412152SN/A    Source('inst_pb_trace.cc')
422152SN/A
432139SN/ASimObject('CheckerCPU.py')
442139SN/A
452139SN/ASimObject('BaseCPU.py')
464781Snate@binkert.orgSimObject('CPUTracers.py')
474781Snate@binkert.orgSimObject('FuncUnit.py')
484781Snate@binkert.orgSimObject('IntrControl.py')
494781Snate@binkert.orgSimObject('TimingExpr.py')
504781Snate@binkert.org
513170Sstever@eecs.umich.eduSource('activity.cc')
523806Ssaidi@eecs.umich.eduSource('base.cc')
534781Snate@binkert.orgSource('cpuevent.cc')
544781Snate@binkert.orgSource('exetrace.cc')
554781Snate@binkert.orgSource('exec_context.cc')
564781Snate@binkert.orgSource('func_unit.cc')
574781Snate@binkert.orgSource('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')
632139SN/ASource('reg_class.cc')
642139SN/ASource('static_inst.cc')
653546Sgblack@eecs.umich.eduSource('simple_thread.cc')
664202Sbinkertn@umich.eduSource('thread_context.cc')
672152SN/ASource('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')
792504SN/ADebugFlag('Decode')
802504SN/ADebugFlag('DynInst')
812504SN/ADebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
822504SN/ADebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
832152SN/ADebugFlag('ExecEffAddr', 'Format: Include effective address')
842504SN/ADebugFlag('ExecFaulting', 'Trace faulting instructions')
852152SN/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')
922152SN/ADebugFlag('ExecMicro', 'Filter: Include microops')
932632Sstever@eecs.umich.eduDebugFlag('ExecMacro', 'Filter: Include macroops')
942155SN/ADebugFlag('ExecUser', 'Filter: Trace user mode instructions')
952155SN/ADebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
962155SN/ADebugFlag('ExecAsid', 'Format: Include ASID in trace')
972155SN/ADebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
982155SN/ADebugFlag('Fetch')
992155SN/ADebugFlag('IntrControl')
1004202Sbinkertn@umich.eduDebugFlag('O3PipeView')
1012155SN/ADebugFlag('PCEvent')
1022155SN/ADebugFlag('Quiesce')
1032155SN/ADebugFlag('Mwait')
1042152SN/A
1052766Sktlim@umich.eduCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
1062766Sktlim@umich.edu    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
1072766Sktlim@umich.edu    'ExecResult', 'ExecSymbol', 'ExecThread',
1082766Sktlim@umich.edu    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
1092766Sktlim@umich.edu    'ExecAsid', 'ExecFlags' ])
1102152SN/ACompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
1112152SN/A    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro',
1122152SN/A    'ExecFaulting', 'ExecUser', 'ExecKernel' ])
1132155SN/ACompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
1142152SN/A    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting',
1152152SN/A    'ExecUser', 'ExecKernel' ])
1162718Sstever@eecs.umich.edu