Home
last modified time | relevance | path

Searched full:journal (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/openbmc/phosphor-logging/extensions/openpower-pels/
H A Djournal.hpp3 #include <systemd/sd-journal.h>
13 * Abstract class to read messages from the journal.
26 * @brief Get messages from the journal
37 * @brief Call journalctl --sync to write unwritten journal data to disk
43 * @class Journal
45 * Reads from the journal.
47 class Journal : public JournalBase class
50 Journal() = default;
51 ~Journal() override = default;
52 Journal(const Journal&) = default;
[all …]
H A Djournal.cpp16 #include "journal.hpp"
30 * Closes the journal on destruction
41 explicit JournalCloser(sd_journal* journal) : journal{journal} {} in JournalCloser() argument
45 sd_journal_close(journal); in ~JournalCloser()
49 sd_journal* journal{nullptr}; member in openpower::pels::JournalCloser
52 void Journal::sync() const in sync()
64 lg2::info("Journal sync took {DURATION}ms", "DURATION", in sync()
69 std::vector<std::string> Journal::getMessages(const std::string& syslogID, in getMessages()
76 "maxMessages value of zero passed into Journal::getMessages"); in getMessages()
80 sd_journal* journal; in getMessages() local
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Derror_logging.hpp19 #include "journal.hpp"
64 * @param journal system journal
67 Journal& journal) = 0;
75 * @param journal system journal
77 virtual void logDBusError(Entry::Level severity, Journal& journal) = 0;
83 * @param journal system journal
89 virtual void logI2CError(Entry::Level severity, Journal& journal,
97 * @param journal system journal
99 virtual void logInternalError(Entry::Level severity, Journal& journal) = 0;
107 * @param journal system journal
[all …]
H A Djournal.hpp18 #include <systemd/sd-journal.h>
29 * @class Journal
31 * Abstract base class that provides a journal interface.
33 * The interface is used to write messages/log entries to the system journal.
35 class Journal class
39 Journal() = default;
40 Journal(const Journal&) = delete;
41 Journal(Journal&&) = delete;
42 Journal& operator=(const Journal&) = delete;
43 Journal& operator=(Journal&&) = delete;
[all …]
H A Djournal.cpp17 #include "journal.hpp"
34 * Automatically closes the journal when the object goes out of scope.
46 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
60 // Sleep 100ms; otherwise recent journal entries sometimes not available in getMessages()
64 // Open the journal in getMessages()
65 sd_journal* journal; in getMessages() local
66 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getMessages()
70 std::string{"Failed to open journal: "} + strerror(-rc)}; in getMessages()
[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 …]
/openbmc/phosphor-dbus-monitor/src/
H A Djournal.hpp18 * @brief Journal callback implementation.
20 * The journal callback logs the client message and
21 * journal metadata key value pairs as specified by the
74 /** @class Journal
75 * @brief C++ type specific logic for the journal callback.
81 class Journal : public JournalBase class
84 Journal() = delete;
85 Journal(const Journal&) = delete;
86 Journal(Journal&&) = default;
87 Journal& operator=(const Journal&) = delete;
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
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 Dphase_fault_detection_tests.cpp200 // Create lambda that sets Journal and ErrorLogging expectations when in TEST_F()
204 // Set Journal service expectations: in TEST_F()
209 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
[all …]
/openbmc/openpower-hw-diags/util/
H A Dffdc.cpp11 * Parse systemd journal message field
13 * Parse the journal looking for the specified field and return the journal
16 * @param journal - The journal to parse
20 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()
54 * Gather messages from the journal
56 * Fetch journal entry data for all entries with the specified field equal to
62 * @return Vector of journal entry data
67 sd_journal* journal; in sdjGetMessages() local
70 if (0 == sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY)) in sdjGetMessages()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dmanager_logservices_journal.hpp21 #include <systemd/sd-journal.h>
56 boost::urls::format("/redfish/v1/Managers/{}/LogServices/Journal", in handleManagersLogServiceJournalGet()
58 asyncResp->res.jsonValue["Name"] = "Open BMC Journal Log Service"; in handleManagersLogServiceJournalGet()
59 asyncResp->res.jsonValue["Description"] = "BMC Journal Log Service"; in handleManagersLogServiceJournalGet()
60 asyncResp->res.jsonValue["Id"] = "Journal"; in handleManagersLogServiceJournalGet()
70 "/redfish/v1/Managers/{}/LogServices/Journal/Entries", in handleManagersLogServiceJournalGet()
78 std::unique_ptr<sd_journal, decltype(&sd_journal_close)> journal; member
94 // The Journal APIs unfortunately do blocking calls to the filesystem, and in readJournalEntries()
96 // implementation of sd-journal, which would be difficult, the best thing we in readJournalEntries()
120 if (!fillBMCJournalLogEntryJson(readState.journal.get(), in readJournalEntries()
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Djournal_utils.hpp10 #include <systemd/sd-journal.h>
27 inline int getJournalMetadata(sd_journal* journal, const char* field, in getJournalMetadata() argument
33 // Get the metadata from the requested field of the journal entry in getJournalMetadata()
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
52 // Get the metadata from the requested field of the journal entry in getJournalMetadataInt()
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
[all …]
/openbmc/phosphor-dbus-monitor/src/test/yaml/callbackgroupgentest/
H A Dtest.yaml37 - name: test journal callback 1
39 callback: journal
45 - name: test journal callback 2
47 callback: journal
53 - name: test journal callback 3
55 callback: journal
86 - test journal callback 1
87 - test journal callback 2
88 - test journal callback 3
95 - test journal callback 1
[all …]
/openbmc/openpower-occ-control/
H A Docc_ffdc.hpp8 #include <systemd/sd-journal.h>
134 * @brief Create a file containing the latest journal traces for the
139 * @param[in] lines - number of journal lines to save
173 * @brief Returns a JSON structure containing the previous N journal
176 * @param[in] numLines - Number of lines of journal to retrieve
185 * @brief Gets the realtime (wallclock) timestamp for the current journal
188 * @param journal current journal entry
191 static std::string getTimeStamp(sd_journal* journal);
194 * @brief Gets the value of the specified field for the current journal
197 * Returns an empty string if the current journal entry does not have the
[all …]
H A Docc_ffdc.cpp56 // Add journal traces to PEL FFDC in createPEL()
137 // Add journal traces to PEL FFDC in createOCCResetPEL()
239 // Create file with the latest journal entries for specified executable
247 "addJournalEntries: Added up to {NUM} journal entries for {APP}", in addJournalEntries()
253 lg2::error("addJournalEntries: Failed to add journal entries for {APP}", in addJournalEntries()
291 // Collect the latest journal entries for a specified executable
294 // Sleep 100ms; otherwise recent journal entries sometimes not available in getJournalEntries()
300 // Open the journal in getJournalEntries()
301 sd_journal* journal; in getJournalEntries() local
302 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getJournalEntries()
[all …]
/openbmc/phosphor-fan-presence/monitor/
H A Dfan_error.cpp21 #include <systemd/sd-journal.h>
48 * Automatically closes the journal when the object goes out of scope.
60 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
101 // add the previous systemd journal entries as FFDC in commit()
204 // Sleep 100ms; otherwise recent journal entries sometimes not available in getJournalEntries()
210 // Open the journal in getJournalEntries()
211 sd_journal* journal; in getJournalEntries() local
212 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getJournalEntries()
[all …]
H A Dfan_error.hpp140 * @brief returns a JSON structure containing the previous N journal
143 * @param[in] numLines - Number of lines of journal to retrieve
148 * Gets the realtime (wallclock) timestamp for the current journal entry.
150 * @param journal current journal entry
153 std::string getTimeStamp(sd_journal* journal) const;
156 * Gets the value of the specified field for the current journal entry.
158 * Returns an empty string if the current journal entry does not have the
161 * @param journal current journal entry
162 * @param field journal field name
165 std::string getFieldValue(sd_journal* journal,
/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/phosphor-dbus-monitor/src/test/yaml/conditiongentest/
H A Dtest.yaml42 callback: test journal callback 1
53 callback: test journal callback 1
59 - name: test journal callback 1
61 callback: journal
72 callback: test journal callback 2
83 callback: test journal callback 2
89 - name: test journal callback 2
91 callback: journal
102 callback: test journal callback 1
111 callback: test journal callback 2
/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/u-boot/fs/ext4/
H A Dext4_journal.h8 * Journal data structures and headers for Journaling feature of ext4
20 #define EXT2_JOURNAL_INO 8 /* Journal inode */
21 #define EXT2_JOURNAL_SUPERBLOCK 0 /* Journal Superblock number */
38 /* Maximum entries in 1 journal transaction */
57 /* The journal superblock. All fields are in big-endian byte order. */
62 /* Static information describing the journal */
63 __be32 s_blocksize; /* journal device blocksize */
64 __be32 s_maxlen; /* total blocks in journal file */
79 __u8 s_uuid[16]; /* 128-bit uuid for journal */
87 __be32 s_max_transaction; /* Limit of journal blocks per trans. */
/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/phosphor-debug-collector/tools/dreport.d/plugins.d/
H A Djournalpid4 # @brief: Collect user initialized PID specific journal log information.
9 desc="Journal pid:$pid log"
12 log_warning "Missing PID, Collecting last 500 journal entries"
13 file_name="journal.log"
16 file_name="journal-pid-$pid.log"
/openbmc/phosphor-dbus-monitor/src/test/yaml/callbackgentest/
H A Done.yaml40 - name: test journal callback 1
42 callback: journal
48 - name: test journal callback 2
50 callback: journal
56 - name: test journal callback 3
58 callback: journal
/openbmc/docs/architecture/
H A Dredfish-logging-in-bmcweb.md49 ### journal-based Redfish Logging
51 The journal is the current mechanism used to log Redfish Messages. bmcweb looks
52 for two fields in the journal metadata:
57 These fields can be added to a journal entry using either the
83 be logged to the journal as follows:
87 "journal text",
95 sd_journal_send("MESSAGE=%s", "journal text", "PRIORITY=%i", <LOG_LEVEL>,
133 this message can be logged to the journal as follows:
137 "journal text",
147 sd_journal_send("MESSAGE=%s", "journal text", "PRIORITY=%i", <LOG_LEVEL>,

12345678910>>...12