mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

Change-Id: I1419231a721fab210e166d26a264cae04d661dcd Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com> Signed-off-by: macabral <matias.a.cabral@intel.com> Signed-off-by: davidoli <david.olien@intel.com> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com> Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com> Signed-off-by: Latif, Raiyan <raiyan.latif@intel.com> Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <level_zero/zet_api.h>
|
|
|
|
struct _zet_tracer_exp_handle_t {};
|
|
|
|
namespace L0 {
|
|
|
|
struct APITracer : _zet_tracer_exp_handle_t {
|
|
static APITracer *create();
|
|
virtual ~APITracer() = default;
|
|
static APITracer *fromHandle(zet_tracer_exp_handle_t handle) { return static_cast<APITracer *>(handle); }
|
|
inline zet_tracer_exp_handle_t toHandle() { return this; }
|
|
virtual ze_result_t destroyTracer(zet_tracer_exp_handle_t phTracer) = 0;
|
|
virtual ze_result_t setPrologues(zet_core_callbacks_t *pCoreCbs) = 0;
|
|
virtual ze_result_t setEpilogues(zet_core_callbacks_t *pCoreCbs) = 0;
|
|
virtual ze_result_t enableTracer(ze_bool_t enable) = 0;
|
|
};
|
|
|
|
ze_result_t createAPITracer(zet_context_handle_t hContext, const zet_tracer_exp_desc_t *desc, zet_tracer_exp_handle_t *phTracer);
|
|
|
|
struct APITracerContext {
|
|
virtual ~APITracerContext() = default;
|
|
virtual void *getActiveTracersList() = 0;
|
|
virtual void releaseActivetracersList() = 0;
|
|
};
|
|
|
|
} // namespace L0
|