Home
last modified time | relevance | path

Searched refs:journal (Results 1 – 25 of 131) sorted by relevance

123456

/openbmc/phosphor-power/phosphor-regulators/src/
H A Djournal.cpp46 explicit JournalCloser(sd_journal* journal) : journal{journal} {} in JournalCloser() argument
50 sd_journal_close(journal); in ~JournalCloser()
54 sd_journal* journal{nullptr}; member in phosphor::power::regulators::JournalCloser
65 sd_journal* journal; in getMessages() local
66 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getMessages()
74 JournalCloser closer{journal}; in getMessages()
78 rc = sd_journal_add_match(journal, match.c_str(), 0); in getMessages()
89 SD_JOURNAL_FOREACH_BACKWARDS(journal) in getMessages()
92 timeStamp = getTimeStamp(journal); in getMessages()
93 syslogID = getFieldValue(journal, "SYSLOG_IDENTIFIER"); in getMessages()
[all …]
H A Derror_logging.hpp67 Journal& journal) = 0;
77 virtual void logDBusError(Entry::Level severity, Journal& journal) = 0;
89 virtual void logI2CError(Entry::Level severity, Journal& journal,
99 virtual void logInternalError(Entry::Level severity, Journal& journal) = 0;
114 Entry::Level severity, Journal& journal, PhaseFaultType type,
129 virtual void logPMBusError(Entry::Level severity, Journal& journal,
144 Entry::Level severity, Journal& journal,
173 Journal& journal) override;
176 virtual void logDBusError(Entry::Level severity, Journal& journal) override;
179 virtual void logI2CError(Entry::Level severity, Journal& journal,
[all …]
H A Derror_logging.cpp37 Journal& journal) in logConfigFileError() argument
52 logError(message, severity, additionalData, journal); in logConfigFileError()
55 void DBusErrorLogging::logDBusError(Entry::Level severity, Journal& journal) in logDBusError() argument
59 journal); in logDBusError()
62 void DBusErrorLogging::logI2CError(Entry::Level severity, Journal& journal, in logI2CError() argument
79 journal); in logI2CError()
82 void DBusErrorLogging::logInternalError(Entry::Level severity, Journal& journal) in logInternalError() argument
86 additionalData, journal); in logInternalError()
90 Entry::Level severity, Journal& journal, PhaseFaultType type, in logPhaseFault() argument
99 logError(message, severity, additionalData, journal); in logPhaseFault()
[all …]
H A Derror_logging_utils.cpp57 Journal& journal = services.getJournal(); in logError() local
69 errorLogging.logConfigFileError(severity, journal); in logError()
78 errorLogging.logPMBusError(severity, journal, e.getInventoryPath()); in logError()
87 errorLogging.logWriteVerificationError(severity, journal, in logError()
97 errorLogging.logI2CError(severity, journal, e.bus, e.addr, in logError()
107 errorLogging.logDBusError(severity, journal); in logError()
116 errorLogging.logInternalError(severity, journal); in logError()
125 errorLogging.logInternalError(severity, journal); in logError()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Djournal.cpp29 explicit JournalCloser(sd_journal* journal) : journal{journal} {} in JournalCloser() argument
33 sd_journal_close(journal); in ~JournalCloser()
37 sd_journal* journal{nullptr}; member in openpower::pels::JournalCloser
68 sd_journal* journal; in getMessages() local
69 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getMessages()
76 JournalCloser closer{journal}; in getMessages()
82 rc = sd_journal_add_match(journal, match.c_str(), 0); in getMessages()
95 SD_JOURNAL_FOREACH_BACKWARDS(journal) in getMessages()
97 timeStamp = getTimeStamp(journal); in getMessages()
98 sID = getFieldValue(journal, "SYSLOG_IDENTIFIER"); in getMessages()
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Djournal_utils.hpp27 inline int getJournalMetadata(sd_journal* journal, const char* field, in getJournalMetadata() argument
37 ret = sd_journal_get_data(journal, field, dataVoid, &length); in getJournalMetadata()
48 inline int getJournalMetadataInt(sd_journal* journal, const char* field, in getJournalMetadataInt() argument
53 int ret = getJournalMetadata(journal, field, metadata); in getJournalMetadataInt()
67 inline bool getEntryTimestamp(sd_journal* journal, std::string& entryTimestamp) in getEntryTimestamp() argument
71 ret = sd_journal_get_realtime_usec(journal, &timestamp); in getEntryTimestamp()
82 sd_journal* journal, nlohmann::json::object_t& bmcJournalLogEntryJson) in fillBMCJournalLogEntryJson() argument
85 int ret = sd_journal_get_cursor(journal, &cursor); in fillBMCJournalLogEntryJson()
96 ret = getJournalMetadata(journal, "SYSLOG_IDENTIFIER", syslogID); in fillBMCJournalLogEntryJson()
107 ret = getJournalMetadata(journal, "MESSAGE", msg); in fillBMCJournalLogEntryJson()
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
H A Dphase_fault_detection_tests.cpp209 MockJournal& journal = services.getMockJournal(); in TEST_F() local
210 EXPECT_CALL(journal, logError(std::vector<std::string>{"Logic error"})) in TEST_F()
212 EXPECT_CALL(journal, in TEST_F()
216 journal, in TEST_F()
220 journal, in TEST_F()
224 journal, in TEST_F()
228 journal, in TEST_F()
297 MockJournal& journal = services.getMockJournal(); in TEST_F() local
298 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
327 MockJournal& journal = services.getMockJournal(); in TEST_F() local
[all …]
H A Dmock_error_logging.hpp43 (Entry::Level severity, Journal& journal), (override));
45 MOCK_METHOD(void, logDBusError, (Entry::Level severity, Journal& journal),
49 (Entry::Level severity, Journal& journal,
54 (Entry::Level severity, Journal& journal), (override));
57 (Entry::Level severity, Journal& journal, PhaseFaultType type,
63 (Entry::Level severity, Journal& journal,
68 (Entry::Level severity, Journal& journal,
H A Derror_logging_utils_tests.cpp75 MockJournal& journal = services.getMockJournal(); in TEST() local
79 Entry::Level::Error, Ref(journal), in TEST()
117 MockJournal& journal = services.getMockJournal(); in TEST() local
119 logI2CError(Entry::Level::Critical, Ref(journal), in TEST()
153 MockJournal& journal = services.getMockJournal(); in TEST() local
155 logConfigFileError(Entry::Level::Warning, Ref(journal))) in TEST()
181 MockJournal& journal = services.getMockJournal(); in TEST() local
183 logConfigFileError(Entry::Level::Error, Ref(journal))) in TEST()
214 MockJournal& journal = services.getMockJournal(); in TEST() local
216 logPMBusError(Entry::Level::Error, Ref(journal), in TEST()
[all …]
H A Dchassis_tests.cpp225 MockJournal& journal = services.getMockJournal(); in TEST_F() local
226 EXPECT_CALL(journal, logError(A<const std::vector<std::string>&>())) in TEST_F()
228 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(6); in TEST_F()
269 MockJournal& journal = services.getMockJournal(); in TEST_F() local
270 EXPECT_CALL(journal, logDebug("Closing devices in chassis 2")).Times(1); in TEST_F()
285 MockJournal& journal = services.getMockJournal(); in TEST_F() local
286 EXPECT_CALL(journal, logDebug("Closing devices in chassis 1")).Times(1); in TEST_F()
334 MockJournal& journal = services.getMockJournal(); in TEST_F() local
335 EXPECT_CALL(journal, logInfo("Configuring chassis 1")).Times(1); in TEST_F()
336 EXPECT_CALL(journal, logDebug(A<const std::string&>())).Times(0); in TEST_F()
[all …]
H A Dconfiguration_tests.cpp92 MockJournal& journal = services.getMockJournal(); in TEST() local
93 EXPECT_CALL(journal, logDebug("Configuring vdd_reg")).Times(1); in TEST()
94 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST()
146 MockJournal& journal = services.getMockJournal(); in TEST() local
147 EXPECT_CALL(journal, logDebug("Configuring vdd_reg: volts=1.300000")) in TEST()
149 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST()
208 MockJournal& journal = services.getMockJournal(); in TEST() local
213 EXPECT_CALL(journal, logDebug("Configuring vdd_reg")).Times(1); in TEST()
214 EXPECT_CALL(journal, logError(expectedErrMessagesException)).Times(1); in TEST()
215 EXPECT_CALL(journal, logError("Unable to configure vdd_reg")).Times(1); in TEST()
[all …]
H A Ddevice_tests.cpp293 MockJournal& journal = services.getMockJournal(); in TEST_F() local
294 EXPECT_CALL(journal, logError(std::vector<std::string>{"DBus Error"})) in TEST_F()
296 EXPECT_CALL(journal, logError("Unable to monitor sensors for rail vdd")) in TEST_F()
299 journal, in TEST_F()
303 journal, in TEST_F()
363 MockJournal& journal = services.getMockJournal(); in TEST_F() local
364 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
365 EXPECT_CALL(journal, logError(A<const std::vector<std::string>&>())) in TEST_F()
384 MockJournal& journal = services.getMockJournal(); in TEST_F() local
385 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
[all …]
H A Dmock_services.hpp66 return journal; in getJournal()
109 return journal; in getMockJournal()
163 MockJournal journal{}; member in phosphor::power::regulators::MockServices
H A Dsystem_tests.cpp179 MockJournal& journal = services.getMockJournal(); in TEST() local
180 EXPECT_CALL(journal, logError(A<const std::vector<std::string>&>())) in TEST()
182 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(6); in TEST()
224 MockJournal& journal = services.getMockJournal(); in TEST() local
225 EXPECT_CALL(journal, logDebug("Closing devices in chassis 1")).Times(1); in TEST()
226 EXPECT_CALL(journal, logDebug("Closing devices in chassis 3")).Times(1); in TEST()
227 EXPECT_CALL(journal, logInfo(A<const std::string&>())).Times(0); in TEST()
228 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST()
246 MockJournal& journal = services.getMockJournal(); in TEST() local
247 EXPECT_CALL(journal, logInfo("Configuring chassis 1")).Times(1); in TEST()
[all …]
/openbmc/openpower-hw-diags/util/
H A Dffdc.cpp20 std::string sdjGetFieldValue(sd_journal* journal, const char* field) in sdjGetFieldValue() argument
26 if (0 == sd_journal_get_data(journal, field, (const void**)&data, &length)) in sdjGetFieldValue()
67 sd_journal* journal; in sdjGetMessages() local
70 if (0 == sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY)) in sdjGetMessages()
72 SD_JOURNAL_FOREACH_BACKWARDS(journal) in sdjGetMessages()
75 std::string value = sdjGetFieldValue(journal, field.c_str()); in sdjGetMessages()
82 sdjGetFieldValue(journal, "SYSLOG_IDENTIFIER"); in sdjGetMessages()
85 std::string pid = sdjGetFieldValue(journal, "_PID"); in sdjGetMessages()
88 std::string message = sdjGetFieldValue(journal, "MESSAGE"); in sdjGetMessages()
92 if (0 == sd_journal_get_realtime_usec(journal, &usec)) in sdjGetMessages()
[all …]
/openbmc/phosphor-fan-presence/monitor/
H A Dfan_error.cpp60 explicit JournalCloser(sd_journal* journal) : journal{journal} {} in JournalCloser() argument
64 sd_journal_close(journal); in ~JournalCloser()
68 sd_journal* journal{nullptr}; member in phosphor::fan::monitor::JournalCloser
211 sd_journal* journal; in getJournalEntries() local
212 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getJournalEntries()
222 JournalCloser closer{journal}; in getJournalEntries()
233 rc = sd_journal_add_match(journal, match.c_str(), 0); in getJournalEntries()
248 SD_JOURNAL_FOREACH_BACKWARDS(journal) in getJournalEntries()
251 timeStamp = getTimeStamp(journal); in getJournalEntries()
252 syslogID = getFieldValue(journal, "SYSLOG_IDENTIFIER"); in getJournalEntries()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/mtd/files/
H A D0002-ubifs-utils-journal-Include-sys-stat.h.patch4 Subject: [PATCH v4 mtd-utils 2/4] ubifs-utils: journal: Include <sys/stat.h>
9 | ../git/ubifs-utils/libubifs/journal.c: In function 'ubifs_get_dent_type':
10 | ../git/ubifs-utils/libubifs/journal.c:414:24: error: 'S_IFMT' undeclared (first use in this funct…
13 | ../git/ubifs-utils/libubifs/journal.c:414:24: note: each undeclared identifier is reported only o…
14 | ../git/ubifs-utils/libubifs/journal.c:415:14: error: 'S_IFREG' undeclared (first use in this func…
24 ubifs-utils/libubifs/journal.c | 1 +
27 diff --git a/ubifs-utils/libubifs/journal.c b/ubifs-utils/libubifs/journal.c
29 --- a/ubifs-utils/libubifs/journal.c
30 +++ b/ubifs-utils/libubifs/journal.c
/openbmc/bmcweb/redfish-core/lib/
H A Dmanager_logservices_journal.hpp78 std::unique_ptr<sd_journal, decltype(&sd_journal_close)> journal; member
120 if (!fillBMCJournalLogEntryJson(readState.journal.get(), in readJournalEntries()
128 int ret = sd_journal_next(readState.journal.get()); in readJournalEntries()
190 std::unique_ptr<sd_journal, decltype(&sd_journal_close)> journal( in handleManagersJournalLogEntryCollectionGet() local
195 if (sd_journal_seek_tail(journal.get()) < 0) in handleManagersJournalLogEntryCollectionGet()
202 if (sd_journal_previous(journal.get()) < 0) in handleManagersJournalLogEntryCollectionGet()
212 if (sd_journal_get_seqnum(journal.get(), &endSeqNum, nullptr) < 0) in handleManagersJournalLogEntryCollectionGet()
221 if (sd_journal_seek_head(journal.get()) < 0) in handleManagersJournalLogEntryCollectionGet()
228 if (sd_journal_next(journal.get()) < 0) in handleManagersJournalLogEntryCollectionGet()
238 if (sd_journal_get_seqnum(journal.get(), &startSeqNum, nullptr) < 0) in handleManagersJournalLogEntryCollectionGet()
[all …]
/openbmc/openpower-occ-control/
H A Docc_ffdc.hpp191 static std::string getTimeStamp(sd_journal* journal);
204 static std::string getFieldValue(sd_journal* journal,
222 JournalCloser(sd_journal* journal) : journal{journal} {} in JournalCloser() argument
226 sd_journal_close(journal); in ~JournalCloser()
230 sd_journal* journal{nullptr}; member in open_power::occ::JournalCloser
H A Docc_ffdc.cpp301 sd_journal* journal; in getJournalEntries() local
302 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getJournalEntries()
312 JournalCloser closer{journal}; in getJournalEntries()
317 rc = sd_journal_add_match(journal, match.c_str(), 0); in getJournalEntries()
331 SD_JOURNAL_FOREACH_BACKWARDS(journal) in getJournalEntries()
334 timeStamp = getTimeStamp(journal); in getJournalEntries()
335 syslogID = getFieldValue(journal, "SYSLOG_IDENTIFIER"); in getJournalEntries()
336 pid = getFieldValue(journal, "_PID"); in getJournalEntries()
337 message = getFieldValue(journal, "MESSAGE"); in getJournalEntries()
357 std::string FFDC::getTimeStamp(sd_journal* journal) in getTimeStamp() argument
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch23 src/libsystemd/sd-journal/journal-send.c | 5 +++++
57 diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c
59 --- a/src/libsystemd/sd-journal/journal-send.c
60 +++ b/src/libsystemd/sd-journal/journal-send.c
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch23 src/libsystemd/sd-journal/journal-send.c | 5 +++++
57 diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c
59 --- a/src/libsystemd/sd-journal/journal-send.c
60 +++ b/src/libsystemd/sd-journal/journal-send.c
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/systemd-netlogd/
H A Dsystemd-netlogd_1.4.4.bb1 SUMMARY = "Forwards messages from the journal to other hosts over the network using the Syslog Prot…
27 GROUPADD_PARAM:${PN} = "-r systemd-journal"
28 USERADD_PARAM:${PN} = "--system -d / -M --shell /sbin/nologin -g systemd-journal systemd-journal-ne…
/openbmc/openbmc/poky/meta/recipes-core/systemd/
H A Dsystemd_257.5.bb145 …to compress with e.g. lz4 you cannot enable zstd, so you cannot read zstd-compressed journal files.
157 # Sign the journal for anti-tampering
165 # importd requires journal-upload/xz/zlib/bzip2/gcrypt
169 PACKAGECONFIG[journal-color] = ",,,less"
170 PACKAGECONFIG[journal-upload] = "-Dlibcurl=enabled,-Dlibcurl=disabled,curl"
323 elif [ -e ${D}${localstatedir}/log/journal ]; then
324 chown root:systemd-journal ${D}${localstatedir}/log/journal
326 # journal-remote creates this at start
327 rm -rf ${D}${localstatedir}/log/journal/remote
429 ${PN}-journal-gatewayd \
[all …]
/openbmc/openbmc/meta-google/recipes-phosphor/console/
H A Dobmc-console_%.bbappend6 file://host-console-journal.service.in \
20 FILES:${PN}:append:gbmc = " ${systemd_system_unitdir}/host-console-journal.service"
32 ${UNPACKDIR}/host-console-journal.service.in \
33 >${D}${systemd_system_unitdir}/host-console-journal.service

123456