diff --git a/opencl/test/unit_test/helpers/hw_helper_tests.cpp b/opencl/test/unit_test/helpers/hw_helper_tests.cpp index 36370bb255..38aebf4229 100644 --- a/opencl/test/unit_test/helpers/hw_helper_tests.cpp +++ b/opencl/test/unit_test/helpers/hw_helper_tests.cpp @@ -193,7 +193,7 @@ TEST_F(HwHelperTest, givenEngineTypeRcsWhenCsTraitsAreQueiredThenCorrectNameInTr EXPECT_NE(nullptr, &helper); auto &csTraits = helper.getCsTraits(aub_stream::ENGINE_RCS); - EXPECT_STREQ("RCS", csTraits.name); + EXPECT_STREQ("RCS", csTraits.name.c_str()); } using isTglLpOrBelow = IsAtMostProduct; diff --git a/shared/source/aub_mem_dump/aub_mem_dump.h b/shared/source/aub_mem_dump/aub_mem_dump.h index 6cc13c9d9a..0bc19a52f8 100644 --- a/shared/source/aub_mem_dump/aub_mem_dump.h +++ b/shared/source/aub_mem_dump/aub_mem_dump.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2021 Intel Corporation + * Copyright (C) 2020-2022 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -309,7 +309,7 @@ struct LrcaHelper { int aubHintCommandBuffer = DataTypeHintValues::TraceCommandBuffer; int aubHintBatchBuffer = DataTypeHintValues::TraceBatchBuffer; - const char *name = "XCS"; + std::string name = "XCS"; uint32_t mmioBase = 0; size_t sizeLRCA = 0x2000; @@ -400,8 +400,7 @@ struct LrcaHelperCcs : public LrcaHelper { struct LrcaHelperLinkBcs : public LrcaHelperBcs { LrcaHelperLinkBcs(uint32_t base, uint32_t engineId) : LrcaHelperBcs(base) { - std::string nameStr("BCS" + std::to_string(engineId)); - name = nameStr.c_str(); + name = "BCS" + std::to_string(engineId); } };