mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00

Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
62 lines
1.7 KiB
C++
62 lines
1.7 KiB
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/aub_mem_dump/aub_mem_dump.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
template <typename Family>
|
|
int AubHelperHw<Family>::getDataHintForPml4Entry() const {
|
|
return AubMemDump::DataTypeHintValues::TraceNotype;
|
|
}
|
|
template <typename Family>
|
|
int AubHelperHw<Family>::getDataHintForPdpEntry() const {
|
|
return AubMemDump::DataTypeHintValues::TraceNotype;
|
|
}
|
|
template <typename Family>
|
|
int AubHelperHw<Family>::getDataHintForPdEntry() const {
|
|
return AubMemDump::DataTypeHintValues::TraceNotype;
|
|
}
|
|
template <typename Family>
|
|
int AubHelperHw<Family>::getDataHintForPtEntry() const {
|
|
return AubMemDump::DataTypeHintValues::TraceNotype;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
} // namespace OCLRT
|