#include <trc_mem_acc_mapper.h>
Definition at line 50 of file trc_mem_acc_mapper.h.
◆ TrcMemAccMapper() [1/2]
TrcMemAccMapper::TrcMemAccMapper |
( |
| ) |
|
◆ TrcMemAccMapper() [2/2]
TrcMemAccMapper::TrcMemAccMapper |
( |
bool |
using_trace_id | ) |
|
◆ ~TrcMemAccMapper()
virtual TrcMemAccMapper::~TrcMemAccMapper |
( |
| ) |
|
|
virtual |
◆ AddAccessor()
◆ clearAccessorList()
virtual void TrcMemAccMapper::clearAccessorList |
( |
| ) |
|
|
protectedpure virtual |
◆ findAccessor()
◆ getFirstAccessor()
◆ getNextAccessor()
◆ InvalidateMemAccCache()
virtual void TrcMemAccMapper::InvalidateMemAccCache |
( |
const uint8_t |
cs_trace_id | ) |
|
|
virtual |
Invalidate any caching that the memory accessor functions are using. Generally called when a memory context changes in the trace.
- Parameters
-
cs_trace_id | : protocol source trace ID. |
Implements ITargetMemAccess.
◆ logMappedRanges()
virtual void TrcMemAccMapper::logMappedRanges |
( |
| ) |
|
|
pure virtual |
◆ LogMessage()
void TrcMemAccMapper::LogMessage |
( |
const std::string & |
msg | ) |
|
|
protected |
◆ LogWarn()
void TrcMemAccMapper::LogWarn |
( |
const ocsd_err_t |
err, |
|
|
const std::string & |
msg |
|
) |
| |
|
protected |
◆ readFromCurrent()
◆ ReadTargetMemory()
default interface destructor
Read a block of target memory into supplied buffer.
Bytes read set less than bytes required, along with a success return code indicates full memory location not accessible. Function will return all accessible bytes from the address up to the point where the first inaccessible location appears.
The cs_trace_id associates a memory read with a core. Different cores may have different memory spaces, the memory access may take this into account. Access will first look in the registered memory areas associated with the ID, failing that will look into any global memory spaces.
- Parameters
-
address | : Address to access. |
cs_trace_id | : protocol source trace ID. |
mem_space | : Memory space to access, (secure, non-secure, optionally with EL, or any). |
num_bytes | : [in] Number of bytes required. [out] Number of bytes actually read. |
*p_buffer | : Buffer to fill with the bytes. |
- Returns
- ocsd_err_t : OCSD_OK on successful access (including memory not available)
Implements ITargetMemAccess.
◆ RemoveAccessor()
◆ RemoveAccessorByAddress()
◆ RemoveAllAccessors()
void TrcMemAccMapper::RemoveAllAccessors |
( |
| ) |
|
◆ setErrorLog()
◆ m_acc_curr
◆ m_cache
◆ m_err_log
◆ m_trace_id_curr
uint8_t TrcMemAccMapper::m_trace_id_curr |
|
protected |
◆ m_using_trace_id
const bool TrcMemAccMapper::m_using_trace_id |
|
protected |
The documentation for this class was generated from the following file: