Files
compute-runtime/level_zero/sysman/source/diagnostics/sysman_os_diagnostics.h
Bari, Pratik 112bbec6e9 feature(sysman): Add support for the Diagnostics APIs
Added support for the Diagnostics APIs in the new sysman design
Added ULTs for the Diagnostics APIs in the new sysman design

Related-To: LOCI-4247

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2023-06-09 09:57:26 +02:00

32 lines
855 B
C++

/*
* Copyright (C) 2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "level_zero/sysman/source/os_sysman.h"
#include <level_zero/zes_api.h>
#include <memory>
#include <string>
#include <vector>
namespace L0 {
namespace Sysman {
class OsDiagnostics {
public:
virtual void osGetDiagProperties(zes_diag_properties_t *pProperties) = 0;
virtual ze_result_t osGetDiagTests(uint32_t *pCount, zes_diag_test_t *pTests) = 0;
virtual ze_result_t osRunDiagTests(uint32_t start, uint32_t end, zes_diag_result_t *pResult) = 0;
static std::unique_ptr<OsDiagnostics> create(OsSysman *pOsSysman, const std::string &diagTests);
static void getSupportedDiagTestsFromFW(void *pOsSysman, std::vector<std::string> &supportedDiagTests);
virtual ~OsDiagnostics() {}
};
} // namespace Sysman
} // namespace L0