2018-09-14 05:31:37 -07:00
|
|
|
/*
|
2021-03-19 13:43:50 +01:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2018-09-14 05:31:37 -07:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-09-14 05:31:37 -07:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-10-16 12:10:52 +02:00
|
|
|
#include "shared/source/aub/aub_helper.h"
|
2021-12-07 11:22:25 +00:00
|
|
|
#include "shared/source/aub_mem_dump/aub_mem_dump.h"
|
2018-09-14 05:31:37 -07:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-09-14 05:31:37 -07:00
|
|
|
|
|
|
|
|
template <typename Family>
|
|
|
|
|
int AubHelperHw<Family>::getMemTraceForPml4Entry() const {
|
|
|
|
|
if (localMemoryEnabled) {
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TraceLocal;
|
|
|
|
|
}
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TracePml4Entry;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <typename Family>
|
|
|
|
|
int AubHelperHw<Family>::getMemTraceForPdpEntry() const {
|
|
|
|
|
if (localMemoryEnabled) {
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TraceLocal;
|
|
|
|
|
}
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TracePhysicalPdpEntry;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <typename Family>
|
|
|
|
|
int AubHelperHw<Family>::getMemTraceForPdEntry() const {
|
|
|
|
|
if (localMemoryEnabled) {
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TraceLocal;
|
|
|
|
|
}
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TracePpgttPdEntry;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <typename Family>
|
|
|
|
|
int AubHelperHw<Family>::getMemTraceForPtEntry() const {
|
|
|
|
|
if (localMemoryEnabled) {
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TraceLocal;
|
|
|
|
|
}
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TracePpgttEntry;
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|