DPC++ Runtime
Runtime libraries for oneAPI DPC++
tracing.cpp File Reference
#include "xpti/xpti_data_types.h"
#include <exception>
#include <level_zero/layers/zel_tracing_api.h>
#include <level_zero/ze_api.h>
#include <xpti/xpti_trace_framework.h>
#include <sycl/detail/iostream_proxy.hpp>
#include "ze_api.def"
Include dependency graph for tracing.cpp:

Go to the source code of this file.

Macros

#define _ZE_API(call, domain, cb, params_type)   call,
 

Enumerations

enum  ZEApiKind { ZEApiKind::_ZE_API }
 

Functions

void enableZeTracing ()
 
void disableZeTracing ()
 

Variables

constexpr auto ZE_CALL_STREAM_NAME = "sycl.experimental.level_zero.call"
 
constexpr auto ZE_DEBUG_STREAM_NAME = "sycl.experimental.level_zero.debug"
 
thread_local uint64_t CallCorrelationID = 0
 
thread_local uint64_t DebugCorrelationID = 0
 
constexpr auto GVerStr = "0.1"
 
constexpr int GMajVer = 0
 
constexpr int GMinVer = 1
 

Macro Definition Documentation

◆ _ZE_API

#define _ZE_API (   call,
  domain,
  cb,
  params_type 
)    call,

Definition at line 33 of file tracing.cpp.

Enumeration Type Documentation

◆ ZEApiKind

enum ZEApiKind
strong
Enumerator
_ZE_API 

Definition at line 32 of file tracing.cpp.

Function Documentation

◆ disableZeTracing()

void disableZeTracing ( )

Definition at line 143 of file tracing.cpp.

References ZE_CALL_STREAM_NAME, and ZE_DEBUG_STREAM_NAME.

Referenced by piTearDown().

◆ enableZeTracing()

void enableZeTracing ( )

Definition at line 38 of file tracing.cpp.

References std::cerr, GMajVer, GMinVer, GVerStr, ZE_CALL_STREAM_NAME, and ZE_DEBUG_STREAM_NAME.

Referenced by piPluginInit().

Variable Documentation

◆ CallCorrelationID

thread_local uint64_t CallCorrelationID = 0

Definition at line 20 of file tracing.cpp.

◆ DebugCorrelationID

thread_local uint64_t DebugCorrelationID = 0

Definition at line 21 of file tracing.cpp.

◆ GMajVer

constexpr int GMajVer = 0
constexpr

Definition at line 24 of file tracing.cpp.

Referenced by enableZeTracing(), and cl::sycl::detail::pi::initializePlugins().

◆ GMinVer

constexpr int GMinVer = 1
constexpr

Definition at line 25 of file tracing.cpp.

Referenced by enableZeTracing(), and cl::sycl::detail::pi::initializePlugins().

◆ GVerStr

constexpr auto GVerStr = "0.1"
constexpr

Definition at line 23 of file tracing.cpp.

Referenced by enableZeTracing(), and cl::sycl::detail::pi::initializePlugins().

◆ ZE_CALL_STREAM_NAME

constexpr auto ZE_CALL_STREAM_NAME = "sycl.experimental.level_zero.call"
constexpr

Definition at line 17 of file tracing.cpp.

Referenced by disableZeTracing(), and enableZeTracing().

◆ ZE_DEBUG_STREAM_NAME

constexpr auto ZE_DEBUG_STREAM_NAME = "sycl.experimental.level_zero.debug"
constexpr

Definition at line 18 of file tracing.cpp.

Referenced by disableZeTracing(), and enableZeTracing().