Home
last modified time | relevance | path

Searched refs:logStream (Results 1 – 6 of 6) sorted by relevance

/openbmc/bmcweb/redfish-core/include/
H A Dgzfile.hpp18 gzFile logStream = gzopen(filename.c_str(), "r"); in gzGetLines() local
19 if (logStream == nullptr) in gzGetLines()
25 if (!readFile(logStream, skip, top, logEntries, logCount)) in gzGetLines()
27 gzclose(logStream); in gzGetLines()
30 gzclose(logStream); in gzGetLines()
44 static void printErrorMessage(gzFile logStream) in printErrorMessage() argument
47 const char* errMsg = gzerror(logStream, &errNum); in printErrorMessage()
54 bool readFile(gzFile logStream, uint64_t skip, uint64_t top, in readFile() argument
63 int bytesRead = gzread(logStream, bufferStr.data(), in readFile()
68 printErrorMessage(logStream); in readFile()
[all …]
H A Devent_service_manager.hpp606 std::ifstream logStream(redfishEventLogFile); in cacheRedfishLogFile() local
607 if (!logStream.good()) in cacheRedfishLogFile()
613 while (std::getline(logStream, logEntry)) in cacheRedfishLogFile()
615 redfishLogFilePosition = logStream.tellg(); in cacheRedfishLogFile()
621 std::ifstream logStream(redfishEventLogFile); in readEventLogsFromFile() local
622 if (!logStream.good()) in readEventLogsFromFile()
636 logStream.seekg(redfishLogFilePosition); in readEventLogsFromFile()
638 while (std::getline(logStream, logEntry)) in readEventLogsFromFile()
642 redfishLogFilePosition = logStream.tellg(); in readEventLogsFromFile()
/openbmc/intel-ipmi-oem/src/
H A Dstoragecommands.cpp725 std::ifstream logStream(file); in countSELEntries() local
726 if (!logStream.is_open()) in countSELEntries()
732 while (std::getline(logStream, line)) in countSELEntries()
751 std::ifstream logStream(file); in findSELEntry() local
752 if (!logStream.is_open()) in findSELEntry()
757 while (std::getline(logStream, entry)) in findSELEntry()
882 std::ifstream logStream(selLogFiles.back()); in ipmiStorageGetSELEntry() local
883 if (!logStream.is_open()) in ipmiStorageGetSELEntry()
888 if (!std::getline(logStream, targetEntry)) in ipmiStorageGetSELEntry()
897 if (!logStream.is_open()) in ipmiStorageGetSELEntry()
[all …]
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dstoragecommands.cpp775 std::ifstream logStream(file); in countSELEntries() local
776 if (!logStream.is_open()) in countSELEntries()
782 while (std::getline(logStream, line)) in countSELEntries()
801 std::ifstream logStream(file); in findSELEntry() local
802 if (!logStream.is_open()) in findSELEntry()
807 while (std::getline(logStream, entry)) in findSELEntry()
935 std::ifstream logStream(selLogFiles.back()); in ipmiStorageGetSELEntry() local
936 if (!logStream.is_open()) in ipmiStorageGetSELEntry()
941 if (!std::getline(logStream, targetEntry)) in ipmiStorageGetSELEntry()
950 if (!logStream.is_open()) in ipmiStorageGetSELEntry()
[all …]
/openbmc/smbios-mdr/src/
H A Dcpuinfo_main.cpp88 static std::ostream& logStream(int cpu) in logStream() function
210 logStream(cpuInfo->id) << "SSpec read status: " in tryReadSSpec()
235 logStream(cpuInfo->id) << "PIROM Read failed too many times\n"; in tryReadSSpec()
/openbmc/bmcweb/redfish-core/lib/
H A Dlog_services.hpp1568 std::ifstream logStream(*it); in handleSystemsLogServiceEventLogLogEntryCollection() local
1569 if (!logStream.is_open()) in handleSystemsLogServiceEventLogLogEntryCollection()
1576 while (std::getline(logStream, logEntry)) in handleSystemsLogServiceEventLogLogEntryCollection()
1663 std::ifstream logStream(*it); in handleSystemsLogServiceEventLogEntriesGet() local
1664 if (!logStream.is_open()) in handleSystemsLogServiceEventLogEntriesGet()
1671 while (std::getline(logStream, logEntry)) in handleSystemsLogServiceEventLogEntriesGet()