2019-12-10 23:26:35 +08:00
|
|
|
/*
|
2022-05-10 01:40:30 +08:00
|
|
|
* Copyright (C) 2019-2022 Intel Corporation
|
2019-12-10 23:26:35 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/file_io.h"
|
2021-05-06 00:00:12 +08:00
|
|
|
#include "shared/source/helpers/string_helpers.h"
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/utilities/directory.h"
|
2019-12-10 23:26:35 +08:00
|
|
|
|
2021-10-08 19:02:35 +08:00
|
|
|
#include "opencl/source/utilities/cl_logger.h"
|
|
|
|
|
2019-12-10 23:26:35 +08:00
|
|
|
#include <map>
|
|
|
|
|
2021-10-08 19:02:35 +08:00
|
|
|
using FullyEnabledClFileLogger = NEO::ClFileLogger<DebugFunctionalityLevel::Full>;
|
|
|
|
using FullyDisabledClFileLogger = NEO::ClFileLogger<DebugFunctionalityLevel::None>;
|
|
|
|
|
2019-12-10 23:26:35 +08:00
|
|
|
template <bool DebugFunctionality>
|
|
|
|
class TestLoggerApiEnterWrapper : public NEO::LoggerApiEnterWrapper<DebugFunctionality> {
|
|
|
|
public:
|
2022-05-10 01:40:30 +08:00
|
|
|
TestLoggerApiEnterWrapper(const char *functionName, int *errCode) : NEO::LoggerApiEnterWrapper<DebugFunctionality>(functionName, errCode) {
|
2019-12-10 23:26:35 +08:00
|
|
|
if (DebugFunctionality) {
|
|
|
|
loggedEnter = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-10 01:40:30 +08:00
|
|
|
bool loggedEnter = false;
|
2019-12-10 23:26:35 +08:00
|
|
|
};
|