Remove from api_intercept api_enter

- create new api_enter file
- fix dependencies
- remove platform include form wddm

Change-Id: I5614c3aadbf373b58dfdb34f2f3dec8977e20a3d
This commit is contained in:
kamdiedrich
2020-01-02 13:20:18 +01:00
committed by sys_ocldev
parent 8e3c5892ac
commit cfca7215e3
10 changed files with 36 additions and 78 deletions

View File

@@ -1,31 +1,22 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/utilities/logger.h"
#include "runtime/utilities/perf_profiler.h"
#define API_ENTER(retValPointer) \
LoggerApiEnterWrapper<NEO::FileLogger<globalDebugFunctionalityLevel>::enabled()> ApiWrapperForSingleCall(__FUNCTION__, retValPointer)
#define SYSTEM_ENTER()
#define SYSTEM_LEAVE(id)
#define WAIT_ENTER()
#define WAIT_LEAVE()
#if KMD_PROFILING == 1
#undef API_ENTER
#undef SYSTEM_ENTER
#undef SYSTEM_LEAVE
#undef WAIT_ENTER
#undef WAIT_LEAVE
#define API_ENTER(x) \
PerfProfilerApiWrapper globalPerfProfilersWrapperInstanceForSingleApiFunction(__FUNCTION__)
#define SYSTEM_ENTER() \
PerfProfiler::create(); \
gPerfProfiler->systemEnter();