SConscript revision 13206
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
339850Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'null':
349850Sandreas.hansson@arm.com    SimObject('IntrControl.py')
359850Sandreas.hansson@arm.com    Source('intr_control_noisa.cc')
367768SAli.Saidi@ARM.com    Return()
377768SAli.Saidi@ARM.com
3810695SAli.Saidi@ARM.com# Only build the protocol buffer instructions tracer if we have protobuf support
3910695SAli.Saidi@ARM.comif env['HAVE_PROTOBUF'] and env['TARGET_ISA'] != 'x86':
4010695SAli.Saidi@ARM.com    SimObject('InstPBTrace.py')
4110695SAli.Saidi@ARM.com    Source('inst_pb_trace.cc')
4210695SAli.Saidi@ARM.com
438887Sgeoffrey.blake@arm.comSimObject('CheckerCPU.py')
442766Sktlim@umich.edu
454486Sbinkertn@umich.eduSimObject('BaseCPU.py')
4610663SAli.Saidi@ARM.comSimObject('CPUTracers.py')
474486Sbinkertn@umich.eduSimObject('FuncUnit.py')
488739Sgblack@eecs.umich.eduSimObject('IntrControl.py')
4910259SAndrew.Bardsley@arm.comSimObject('TimingExpr.py')
504486Sbinkertn@umich.edu
514202Sbinkertn@umich.eduSource('activity.cc')
524202Sbinkertn@umich.eduSource('base.cc')
534202Sbinkertn@umich.eduSource('cpuevent.cc')
544202Sbinkertn@umich.eduSource('exetrace.cc')
5510319SAndreas.Sandberg@ARM.comSource('exec_context.cc')
564202Sbinkertn@umich.eduSource('func_unit.cc')
574776Sgblack@eecs.umich.eduSource('inteltrace.cc')
588739Sgblack@eecs.umich.eduSource('intr_control.cc')
596365Sgblack@eecs.umich.eduSource('nativetrace.cc')
604202Sbinkertn@umich.eduSource('pc_event.cc')
618777Sgblack@eecs.umich.eduSource('profile.cc')
624202Sbinkertn@umich.eduSource('quiesce_event.cc')
639913Ssteve.reinhardt@amd.comSource('reg_class.cc')
644202Sbinkertn@umich.eduSource('static_inst.cc')
654202Sbinkertn@umich.eduSource('simple_thread.cc')
665217Ssaidi@eecs.umich.eduSource('thread_context.cc')
674202Sbinkertn@umich.eduSource('thread_state.cc')
6810259SAndrew.Bardsley@arm.comSource('timing_expr.cc')
692155SN/A
708887Sgeoffrey.blake@arm.comSimObject('DummyChecker.py')
7110201SAndrew.Bardsley@arm.comSimObject('StaticInstFlags.py')
728887Sgeoffrey.blake@arm.comSource('checker/cpu.cc')
739340SAndreas.Sandberg@arm.comSource('dummy_checker.cc')
748887Sgeoffrey.blake@arm.comDebugFlag('Checker')
755192Ssaidi@eecs.umich.edu
768335Snate@binkert.orgDebugFlag('Activity')
778335Snate@binkert.orgDebugFlag('Commit')
788335Snate@binkert.orgDebugFlag('Context')
798335Snate@binkert.orgDebugFlag('Decode')
808335Snate@binkert.orgDebugFlag('DynInst')
819534SAndreas.Sandberg@ARM.comDebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)')
829534SAndreas.Sandberg@ARM.comDebugFlag('ExecCPSeq', 'Format: Instruction sequence number')
839534SAndreas.Sandberg@ARM.comDebugFlag('ExecEffAddr', 'Format: Include effective address')
848335Snate@binkert.orgDebugFlag('ExecFaulting', 'Trace faulting instructions')
859534SAndreas.Sandberg@ARM.comDebugFlag('ExecFetchSeq', 'Format: Fetch sequence number')
869534SAndreas.Sandberg@ARM.comDebugFlag('ExecOpClass', 'Format: Include operand class')
878335Snate@binkert.orgDebugFlag('ExecRegDelta')
889534SAndreas.Sandberg@ARM.comDebugFlag('ExecResult', 'Format: Include results from execution')
899534SAndreas.Sandberg@ARM.comDebugFlag('ExecSymbol', 'Format: Try to include symbol names')
909534SAndreas.Sandberg@ARM.comDebugFlag('ExecThread', 'Format: Include thread ID in trace')
919534SAndreas.Sandberg@ARM.comDebugFlag('ExecTicks', 'Format: Include tick count')
929534SAndreas.Sandberg@ARM.comDebugFlag('ExecMicro', 'Filter: Include microops')
939534SAndreas.Sandberg@ARM.comDebugFlag('ExecMacro', 'Filter: Include macroops')
949534SAndreas.Sandberg@ARM.comDebugFlag('ExecUser', 'Filter: Trace user mode instructions')
959534SAndreas.Sandberg@ARM.comDebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
969534SAndreas.Sandberg@ARM.comDebugFlag('ExecAsid', 'Format: Include ASID in trace')
9710383Smitch.hayenga@arm.comDebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
988335Snate@binkert.orgDebugFlag('Fetch')
998335Snate@binkert.orgDebugFlag('IntrControl')
1008471SGiacomo.Gabrielli@arm.comDebugFlag('O3PipeView')
1018335Snate@binkert.orgDebugFlag('PCEvent')
1028335Snate@binkert.orgDebugFlag('Quiesce')
10310529Smorr@cs.wisc.eduDebugFlag('Mwait')
1045192Ssaidi@eecs.umich.edu
1058232Snate@binkert.orgCompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
1068232Snate@binkert.org    'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
10710664SAli.Saidi@ARM.com    'ExecResult', 'ExecSymbol', 'ExecThread',
1088300Schander.sudanthi@arm.com    'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
10910383Smitch.hayenga@arm.com    'ExecAsid', 'ExecFlags' ])
1105192Ssaidi@eecs.umich.eduCompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
11111162Ssteve.reinhardt@amd.com    'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro',
11211162Ssteve.reinhardt@amd.com    'ExecFaulting', 'ExecUser', 'ExecKernel' ])
11311162Ssteve.reinhardt@amd.comCompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread',
11411162Ssteve.reinhardt@amd.com    'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting',
1158300Schander.sudanthi@arm.com    'ExecUser', 'ExecKernel' ])
116