mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
refactor: fix typos
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5c6ae48d17
commit
195bf66a49
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -27,7 +27,7 @@ Ar decodeAr(const ArrayRef<const uint8_t> binary, std::string &outErrReason, std
|
||||
auto fileEntryDataPos = decodePos + sizeof(ArFileEntryHeader);
|
||||
uint64_t fileSize = readDecimal<sizeof(fileEntryHeader->fileSizeInBytes)>(fileEntryHeader->fileSizeInBytes);
|
||||
if (fileSize + (fileEntryDataPos - binary.begin()) > binary.size()) {
|
||||
outErrReason = "Corrupt AR archive - out of bounds data of file entry with idenfitier '" + std::string(fileEntryHeader->identifier, sizeof(fileEntryHeader->identifier)) + "'";
|
||||
outErrReason = "Corrupt AR archive - out of bounds data of file entry with identifier '" + std::string(fileEntryHeader->identifier, sizeof(fileEntryHeader->identifier)) + "'";
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -575,7 +575,7 @@ inline constexpr ConstStringRef dynsym = ".dynsym"; // dynamic link
|
||||
inline constexpr ConstStringRef fini = ".fini"; // executable instructions of program termination
|
||||
inline constexpr ConstStringRef finiArray = ".fini_array"; // function pointers of termination array
|
||||
inline constexpr ConstStringRef got = ".got"; // global offset table
|
||||
inline constexpr ConstStringRef hash = ".hash"; // symnol hash table
|
||||
inline constexpr ConstStringRef hash = ".hash"; // symbol hash table
|
||||
inline constexpr ConstStringRef init = ".init"; // executable instructions of program initializaion
|
||||
inline constexpr ConstStringRef initArray = ".init_array"; // function pointers of initialization array
|
||||
inline constexpr ConstStringRef interp = ".interp"; // path name of program interpreter
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -16,8 +16,8 @@ namespace NEO {
|
||||
namespace Elf {
|
||||
|
||||
template <ElfIdentifierClass numBits>
|
||||
ElfEncoder<numBits>::ElfEncoder(bool addUndefSectionHeader, bool addHeaderSectionNamesSection, typename ElfSectionHeaderTypes<numBits>::AddrAlign defaultDataAlignemnt)
|
||||
: addUndefSectionHeader(addUndefSectionHeader), addHeaderSectionNamesSection(addHeaderSectionNamesSection), defaultDataAlignment(defaultDataAlignemnt) {
|
||||
ElfEncoder<numBits>::ElfEncoder(bool addUndefSectionHeader, bool addHeaderSectionNamesSection, typename ElfSectionHeaderTypes<numBits>::AddrAlign defaultDataAlignment)
|
||||
: addUndefSectionHeader(addUndefSectionHeader), addHeaderSectionNamesSection(addHeaderSectionNamesSection), defaultDataAlignment(defaultDataAlignment) {
|
||||
// add special strings
|
||||
UNRECOVERABLE_IF(defaultDataAlignment == 0);
|
||||
shStrTabNameOffset = this->appendSectionName(SpecialSectionNames::shStrTab);
|
||||
|
||||
@@ -663,8 +663,8 @@ std::string asString(const ProgramFromPatchtokens &prog) {
|
||||
dumpOrNull(prog.header, "WARNING : Program header is missing\n", stream, "");
|
||||
stream << "Program-scope tokens section size : " << prog.blobs.patchList.size() << "\n";
|
||||
dumpVecIfNotEmpty(prog.unhandledTokens, "WARNING : Unhandled program-scope tokens detected", stream, " ");
|
||||
dumpVecIfNotEmpty(prog.programScopeTokens.allocateConstantMemorySurface, "Inline Costant Surface(s)", stream, " ");
|
||||
dumpVecIfNotEmpty(prog.programScopeTokens.constantPointer, "Inline Costant Surface - self relocations", stream, " ");
|
||||
dumpVecIfNotEmpty(prog.programScopeTokens.allocateConstantMemorySurface, "Inline Constant Surface(s)", stream, " ");
|
||||
dumpVecIfNotEmpty(prog.programScopeTokens.constantPointer, "Inline Constant Surface - self relocations", stream, " ");
|
||||
dumpVecIfNotEmpty(prog.programScopeTokens.allocateGlobalMemorySurface, "Inline Global Variable Surface(s)", stream, " ");
|
||||
dumpVecIfNotEmpty(prog.programScopeTokens.globalPointer, "Inline Global Variable Surface - self relocations", stream, " ");
|
||||
dumpOrNull(prog.programScopeTokens.symbolTable, "", stream, " ");
|
||||
|
||||
@@ -659,7 +659,7 @@ inline bool YamlParser::readValueChecked<bool>(const Node &node, bool &outValue)
|
||||
return false;
|
||||
}
|
||||
|
||||
// valid values : y/n yes/no true/false on/off (case insesitive)
|
||||
// valid values : y/n yes/no true/false on/off (case insensitive)
|
||||
if (token.len > 5) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -506,8 +506,8 @@ ArrayRef<const uint8_t> getKernelGtpinInfo(ConstStringRef &kernelName, Elf::Elf<
|
||||
ConstStringRef sectionHeaderNamesString(reinterpret_cast<const char *>(sectionHeaderNamesData.begin()), sectionHeaderNamesData.size());
|
||||
for (auto *gtpinInfoSection : zebinSections.gtpinInfoSections) {
|
||||
ConstStringRef sectionName = ConstStringRef(sectionHeaderNamesString.begin() + gtpinInfoSection->header->name);
|
||||
auto sufix = sectionName.substr(static_cast<int>(Elf::SectionNames::gtpinInfo.length()));
|
||||
if (sufix == kernelName) {
|
||||
auto suffix = sectionName.substr(static_cast<int>(Elf::SectionNames::gtpinInfo.length()));
|
||||
if (suffix == kernelName) {
|
||||
return gtpinInfoSection->data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ struct ZebinTargetFlags {
|
||||
// bit[7:0]: dedicated for specific generator (meaning based on generatorId)
|
||||
uint8_t generatorSpecificFlags : 8;
|
||||
|
||||
// bit[12:8]: values [0-31], min compatbile device revision Id (stepping)
|
||||
// bit[12:8]: values [0-31], min compatible device revision Id (stepping)
|
||||
uint8_t minHwRevisionId : 5;
|
||||
|
||||
// bit[13:13]:
|
||||
@@ -99,7 +99,7 @@ struct ZebinTargetFlags {
|
||||
// 1 - elfFileHeader::machine is GFXCORE_FAMILY
|
||||
bool machineEntryUsesGfxCoreInsteadOfProductFamily : 1;
|
||||
|
||||
// bit[20:16]: max compatbile device revision Id (stepping)
|
||||
// bit[20:16]: max compatible device revision Id (stepping)
|
||||
uint8_t maxHwRevisionId : 5;
|
||||
|
||||
// bit[23:21]: generator of this device binary
|
||||
|
||||
Reference in New Issue
Block a user