cpu: Pass a reference of the parent tracer to the ExeTracerRecord

Change-Id: I3576df2b7bee1289db60bb6072bd9c90038ca8ce
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
This commit is contained in:
Giacomo Travaglini
2023-09-22 09:01:09 +01:00
parent 2d85707a75
commit 952c4f5eea
3 changed files with 59 additions and 11 deletions

View File

@@ -1,4 +1,16 @@
/*
* Copyright (c) 2023 Arm Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the functionality of the software
* licensed hereunder. You may use the software subject to the license
* terms below provided that you ensure that this notice is replicated
* unmodified and in its entirety in all distributions of the software,
* modified or unmodified, in source code or in binary form.
*
* Copyright (c) 2006-2009 The Regents of The University of Michigan
* All rights reserved.
*
@@ -49,6 +61,17 @@ NativeTrace::NativeTrace(const Params &p)
fd = native_listener->accept();
}
NativeTraceRecord::NativeTraceRecord(
NativeTrace *_parent,
Tick _when, ThreadContext *_thread,
const StaticInstPtr _staticInst, const PCStateBase &_pc,
const StaticInstPtr _macroStaticInst)
: ExeTracerRecord(_when, _thread, _staticInst, _pc,
*_parent, _macroStaticInst),
parent(_parent)
{
}
void
NativeTraceRecord::dump()
{