mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Source Level Debugger - debugger library interface
- interface to debugger dynamic library - code is included when source level debugger header exists, otherwise implementation is exluded from build - unit tests do not load real dynamic library, instead test version (DebbugerLibrary) of OsLibrary is used. Change-Id: Id3229c77963352e8001043ee41b7d48c6b180a59
This commit is contained in:
committed by
sys_ocldev
parent
b79be3dafb
commit
efda64eb4a
@@ -30,6 +30,7 @@ set(RUNTIME_SRCS_DLL_BASE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/create_deferred_deleter.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/create_tbx_sockets.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/options.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source_level_debugger.cpp
|
||||
|
||||
${IGDRCL_SOURCE_DIR}/runtime/api/api.cpp
|
||||
${IGDRCL_SOURCE_DIR}/runtime/gmm_helper/resource_info.cpp
|
||||
@@ -44,10 +45,12 @@ set(RUNTIME_SRCS_DLL_BASE
|
||||
)
|
||||
|
||||
set(RUNTIME_SRCS_DLL_LINUX
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/linux/options.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/linux/drm_neo_create.cpp
|
||||
)
|
||||
|
||||
set(RUNTIME_SRCS_DLL_WINDOWS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/options.cpp
|
||||
${IGDRCL_SOURCE_DIR}/runtime/gmm_helper/gmm_memory.cpp
|
||||
${IGDRCL_SOURCE_DIR}/runtime/gmm_helper/page_table_mngr.cpp
|
||||
${IGDRCL_SOURCE_DIR}/runtime/os_interface/windows/sys_calls.cpp
|
||||
|
||||
34
runtime/dll/linux/options.cpp
Normal file
34
runtime/dll/linux/options.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "compiler.config.h"
|
||||
#include "runtime/os_interface/os_library.h"
|
||||
|
||||
namespace Os {
|
||||
// Compiler library names
|
||||
const char *frontEndDllName = FCL_LIBRARY_NAME;
|
||||
const char *igcDllName = IGC_LIBRARY_NAME;
|
||||
const char *libvaDllName = "libva.so.2";
|
||||
|
||||
const char *sysFsPciPath = "/sys/bus/pci/devices/";
|
||||
const char *tbxLibName = "libtbxAccess.so";
|
||||
}
|
||||
32
runtime/dll/source_level_debugger.cpp
Normal file
32
runtime/dll/source_level_debugger.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "runtime/source_level_debugger/source_level_debugger.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace OCLRT {
|
||||
|
||||
OsLibrary *SourceLevelDebugger::loadDebugger() {
|
||||
return OsLibrary::load(SourceLevelDebugger::dllName);
|
||||
}
|
||||
} // namespace OCLRT
|
||||
33
runtime/dll/windows/options.cpp
Normal file
33
runtime/dll/windows/options.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Os {
|
||||
#if defined(_WIN64)
|
||||
const char *frontEndDllName = "igdfcl64.dll";
|
||||
const char *igcDllName = "igc64.dll";
|
||||
#else
|
||||
const char *frontEndDllName = "igdfcl32.dll";
|
||||
const char *igcDllName = "igc32.dll";
|
||||
#endif
|
||||
|
||||
const char *gdiDllName = "gdi32.dll";
|
||||
} // namespace Os
|
||||
Reference in New Issue
Block a user