mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
In level_zero/sysman directory This change: - Adds support for accessing linux based filesystem - Add support for telemetry - Add support for LinuxSysmanImp Related-To: LOCI-3889 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
27 lines
796 B
C++
27 lines
796 B
C++
/*
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "level_zero/sysman/source/linux/pmt/pmt.h"
|
|
#include "level_zero/sysman/source/linux/pmt/pmt_xml_offsets.h"
|
|
|
|
namespace L0 {
|
|
namespace Sysman {
|
|
|
|
ze_result_t PlatformMonitoringTech::getKeyOffsetMap(std::string guid, std::map<std::string, uint64_t> &keyOffsetMap) {
|
|
ze_result_t retVal = ZE_RESULT_ERROR_UNKNOWN;
|
|
auto keyOffsetMapEntry = guidToKeyOffsetMap.find(guid);
|
|
if (keyOffsetMapEntry == guidToKeyOffsetMap.end()) {
|
|
// We didnt have any entry for this guid in guidToKeyOffsetMap
|
|
retVal = ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
|
return retVal;
|
|
}
|
|
keyOffsetMap = keyOffsetMapEntry->second;
|
|
return ZE_RESULT_SUCCESS;
|
|
}
|
|
|
|
} // namespace Sysman
|
|
} // namespace L0
|