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

set include path to third_party/aub_stream rename third_party/aub_stream/headers -> third_party/aub_stream/aubstream Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
31 lines
898 B
C++
31 lines
898 B
C++
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "aubstream/aubstream.h"
|
|
|
|
namespace aub_stream_stubs {
|
|
uint16_t tbxServerPort = 4321;
|
|
std::string tbxServerIp = "127.0.0.1";
|
|
bool tbxFrontdoorMode = false;
|
|
} // namespace aub_stream_stubs
|
|
|
|
namespace aub_stream {
|
|
|
|
extern "C" {
|
|
void injectMMIOList(MMIOList mmioList){};
|
|
void setTbxServerPort(uint16_t port) { aub_stream_stubs::tbxServerPort = port; };
|
|
void setTbxServerIp(std::string server) {
|
|
// better to avoid reassigning global variables which assume memory allocations since
|
|
// we could step into false-positive memory leak detection with embedded leak check helper
|
|
if (aub_stream_stubs::tbxServerIp != server)
|
|
aub_stream_stubs::tbxServerIp = server;
|
|
};
|
|
void setTbxFrontdoorMode(bool frontdoor) { aub_stream_stubs::tbxFrontdoorMode = frontdoor; }
|
|
}
|
|
|
|
} // namespace aub_stream
|