Home
last modified time | relevance | path

Searched +full:ffdcformat +full:- (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/phosphor-power/phosphor-regulators/test/
H A Dffdc_file_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
37 * @param[in] fd - File descriptor
42 return (fcntl(fd, F_GETFL) != -1) || (errno != EBADF); in isValid()
47 // Test where only the FFDCFormat parameter is specified in TEST()
49 FFDCFile file{FFDCFormat::JSON}; in TEST()
50 EXPECT_NE(file.getFileDescriptor(), -1); in TEST()
52 EXPECT_EQ(file.getFormat(), FFDCFormat::JSON); in TEST()
61 FFDCFile file{FFDCFormat::Custom, 2, 3}; in TEST()
62 EXPECT_NE(file.getFileDescriptor(), -1); in TEST()
64 EXPECT_EQ(file.getFormat(), FFDCFormat::Custom); in TEST()
[all …]
/openbmc/openpower-hw-diags/util/
H A Dffdc_file.hpp14 using FFDCFormat = typedef
15 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat;
39 // Specify which compiler-generated methods we want
58 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0,
79 FFDCFormat getFormat() const in getFormat()
127 FFDCFormat format{FFDCFormat::Text};
157 std::tuple<FFDCFormat, uint8_t, uint8_t, sdbusplus::message::unix_fd>;
H A Dffdc_file.cpp15 FFDCFile::FFDCFile(FFDCFormat format, uint8_t subType, uint8_t version) : in FFDCFile()
20 if (fd == -1)
33 // Returns -1 if close failed. in remove()
34 if (descriptor.close() == -1) in remove()
H A Dffdc.cpp16 * @param journal - The journal to parse
17 * @param field - Field containing the data to retrieve
36 prefix = (const char*)eq - data + 1; in sdjGetFieldValue()
45 return std::string{data + prefix, length - prefix}; in sdjGetFieldValue()
59 * @param field - Field to search on
60 * @param fieldValue - Value to search for
61 * @param max - Maximum number of messages fetch
125 * @param lines - lines of text data to write to file
131 FFDCFile file{FFDCFormat::Text}; in createFFDCTraceFile()
168 * @param i_files - vector of ffdc files that will become log entries
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dffdc_file.hpp8 * http://www.apache.org/licenses/LICENSE-2.0
29 using FFDCFormat = typedef
30 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat;
56 // Specify which compiler-generated methods we want
75 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0,
96 FFDCFormat getFormat() const in getFormat()
144 FFDCFormat format{FFDCFormat::Text};
H A Dffdc_file.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
31 FFDCFile::FFDCFile(FFDCFormat format, uint8_t subType, uint8_t version) : in FFDCFile()
36 if (fd == -1)
49 // Returns -1 if close failed. in remove()
50 if (descriptor.close() == -1) in remove()
H A Derror_logging.hpp8 * http://www.apache.org/licenses/LICENSE-2.0
37 std::tuple<FFDCFormat, uint8_t, uint8_t, sdbusplus::message::unix_fd>;
49 // Specify which compiler-generated methods we want
70 * Log a D-Bus error.
72 * This error is logged when D-Bus communication fails.
84 * @param bus I2C bus in the form "/dev/i2c-X", where X is the 0-based bus
109 * @param inventoryPath D-Bus inventory path of the device where the error
126 * @param inventoryPath D-Bus inventory path of the device where the error
136 * the two values do not match. This is also called a read-back error.
140 * @param inventoryPath D-Bus inventory path of the device where the error
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Logging/
H A DCreate.interface.yaml3 creation of xyz.openbmc_project.Logging.Entry objects directly over D-Bus,
7 - name: Create
11 - name: Message
15 - name: Severity
19 - name: AdditionalData
30 - name: Entry
35 - name: CreateWithFFDCFiles
42 phosphor-logging event logs.
47 - name: Message
51 - name: Severity
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/org/open_power/Logging/
H A DPEL.interface.yaml2 Provides D-Bus access to OpenPower Platform Event Logs
4 - name: GetPEL
8 - name: pelID
13 - name: data
18 - xyz.openbmc_project.Common.Error.InternalFailure
19 - xyz.openbmc_project.Common.Error.InvalidArgument
21 - name: GetPELFromOBMCID
25 - name: obmcLogID
30 - name: data
35 - xyz.openbmc_project.Common.Error.InvalidArgument
[all …]
/openbmc/openpower-debug-collector/watchdog/
H A Dffdc_file.hpp18 using FFDCFormat = typedef
19 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat;
21 std::tuple<FFDCFormat, uint8_t, uint8_t, sdbusplus::message::unix_fd>;
34 // Specify which compiler-generated methods we want
H A Dwatchdog_main.cpp10 #include <phosphor-logging/lg2.hpp>
24 "obmc-host-diagnostic-mode@0.target"; in triggerHostbootDump()
25 constexpr auto HOST_STATE_QUIESCE_TGT = "obmc-host-quiesce@0.target"; in triggerHostbootDump()
43 * @param[in] procTarget - pdbg processor target
44 * @param[out] jsonCalloutDataList - reference to json callout list
129 Create::FFDCFormat::Custom, in handleSbeBootError()
148 FFDCFormat::JSON, in handleSbeBootError()
150 ffdcFilePtr->getFileDescriptor())); in handleSbeBootError()
/openbmc/phosphor-fan-presence/monitor/
H A Dfan_error.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
21 #include <systemd/sd-journal.h>
31 using FFDCFormat = typedef
32 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat;
34 std::tuple<FFDCFormat, uint8_t, uint8_t, sdbusplus::message::unix_fd>>;
52 // Specify which compiler-generated methods we want
73 if (_fd() == -1) in FFDCFile()
88 if (logFile && (logFile->fd() != -1)) in commit()
90 ffdc.emplace_back(FFDCFormat::Text, 0x01, 0x01, logFile->fd()); in commit()
95 if (ffdcFile && (ffdcFile->fd() != -1)) in commit()
[all …]
/openbmc/openpower-proc-control/extensions/phal/
H A Dcreate_pel.cpp12 #include <phosphor-logging/elog.hpp>
45 * @param[in] procTarget - pdbg processor target
46 * @param[out] jsonCalloutDataList - reference to json callout list
97 server::Create::FFDCFormat, in createErrorPEL()
103 Create::FFDCFormat::JSON, in createErrorPEL()
121 std::format("D-Bus call exception", in createErrorPEL()
126 "Error in invoking D-Bus logging create interface"); in createErrorPEL()
152 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat, in createSbeErrorPEL()
163 // Refer phosphor-logging/extensions/openpower-pels/README.md section in createSbeErrorPEL()
169 Create::FFDCFormat::Custom, in createSbeErrorPEL()
[all …]
/openbmc/openpower-occ-control/
H A Docc_ffdc.hpp8 #include <systemd/sd-journal.h>
13 using FFDCFormat = typedef
14 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat;
16 std::tuple<FFDCFormat, uint8_t, uint8_t, sdbusplus::message::unix_fd>>;
41 * @param[in] name - The filename
46 * @brief Destructor - Deletes the file
56 * @return int - The descriptor
89 * @param[in] event - reference to sd_event unique_ptr
90 * @param[in] file - File used by driver to communicate FFDC data
91 * @param[in] instance - OCC instance number
[all …]
H A Docc_ffdc.cpp13 #include <phosphor-logging/elog-errors.hpp>
14 #include <phosphor-logging/elog.hpp>
15 #include <phosphor-logging/lg2.hpp>
16 #include <phosphor-logging/log.hpp>
41 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat, in createPEL()
45 lg2::info("Creating PEL for OCC{INST} with SBE FFDC: {PATH} - SRC6: {SRC}", in createPEL()
52 FFDCFormat::Custom, in createPEL()
58 addJournalEntries(pelFFDCInfo, "openpower-occ-control", 25); in createPEL()
107 additionalData.emplace("CALLOUT_ERRNO", std::to_string(-err)); in createOCCResetPEL()
139 addJournalEntries(ffdc, "openpower-occ-control", 25); in createOCCResetPEL()
[all …]
/openbmc/openpower-hw-diags/analyzer/
H A Dcreate_pel.cpp6 #include <phosphor-logging/elog.hpp>
23 //------------------------------------------------------------------------------
34 // phosphor-logging openpower-pel extention spec.
43 //------------------------------------------------------------------------------
63 uint8_t nodePos = 0; // TODO: multi-node support in __getSrc()
78 //------------------------------------------------------------------------------
91 //------------------------------------------------------------------------------
97 io_userDataFiles.emplace_back(util::FFDCFormat::JSON, FFDC_CALLOUTS, in __addCalloutList()
105 //------------------------------------------------------------------------------
111 io_userDataFiles.emplace_back(util::FFDCFormat::Custom, FFDC_CALLOUT_FFDC, in __addCalloutFFDC()
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A DREADME.md9 - [Passing in data when creating PELs](#passing-pel-related-data-within-an-openbmc-event-log)
10 - [Default UserData sections for BMC created PELs](#default-userdata-sections-for-bmc-created-pels)
11 - [The PEL Message Registry](#the-pel-message-registry)
12 - [Callouts](#callouts)
13 - [Action Flags and Event Type Rules](#action-flags-and-event-type-rules)
14 - [D-Bus Interfaces](#d-bus-interfaces)
15 - [PEL Retention](#pel-retention)
16 - [Adding python3 modules for PEL UserData and SRC parsing](#adding-python3-modules-for-pel-userdat…
17 - [Fail Boot on Host Errors](#fail-boot-on-host-errors)
18 - [SBE FFDC](#self-boot-engine-first-failure-data-capture-support)
[all …]
H A Dmanager.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
29 #include <phosphor-logging/lg2.hpp>
64 if (_pelFileDeleteFD != -1) in ~Manager()
66 if (_pelFileDeleteWatchFD != -1) in ~Manager()
142 if (pel->valid()) in addPEL()
145 pel->setCommitTime(); in addPEL()
148 if ((pel->privateHeader()).creatorID() != in addPEL()
151 pel->assignID(); in addPEL()
155 const Repository::LogID id{Repository::LogID::Pel(pel->id())}; in addPEL()
161 "ID", lg2::hex, pel->id()); in addPEL()
[all …]
/openbmc/phosphor-fan-presence/presence/
H A Derror_reporter.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
25 #include <phosphor-logging/log.hpp>
53 _powerState->addCallback("errorReporter", in ErrorReporter()
90 if (_powerState->isPowerOn()) in ErrorReporter()
108 present = std::get<bool>(presentProp->second); in presenceChanged()
128 if (_powerState->isPowerOn()) in checkFan()
130 timer->restartOnce(std::get<seconds>(_fanMissingTimers[fanPath])); in checkFan()
132 else if (timer->isEnabled()) in checkFan()
134 timer->setEnabled(false); in checkFan()
140 if (timer->isEnabled()) in checkFan()
[all …]
/openbmc/openpower-debug-collector/dump/
H A Dcreate_pel.cpp10 #include <phosphor-logging/elog.hpp>
11 #include <phosphor-logging/lg2.hpp>
62 // Refer phosphor-logging/extensions/openpower-pels/README.md section in createSbeErrorPEL()
68 FFDCFormat::Custom, in createSbeErrorPEL()
94 "D-Bus call exception OBJPATH={OBJPATH}, INTERFACE={INTERFACE}, " in createSbeErrorPEL()
150 Create::FFDCFormat::Custom, in processFFDCPackets()
162 calloutFile("/tmp/phalPELCalloutsJson.XXXXXX"), fileFD(-1) in FFDCFile()
188 if (fileFD == -1) in createCalloutFile()
202 if (rc == -1) in writeCalloutData()
223 if (rc == -1) in setCalloutFileSeekPos()
H A Dcreate_pel.hpp27 sdbusplus::xyz::openbmc_project::Logging::server::Create::FFDCFormat,
33 * @param[in] event - the event type
34 * @param[in] sbeError - SBE error object
35 * @param[in] ffdcData - failure data to append to PEL
36 * @param[in] severity - severity of the log
47 * @param[in] severity - Severity code from FAPI2 error logs.
48 * @return Severity - The corresponding Severity enumeration value.
55 * @param[in] sbeError - An SBE error object containing FFDC packet information.
56 * @param[in] event - The event identifier associated with the PELs.
57 * @param[out] pelAdditionalData - A reference to additional PEL data to be
/openbmc/openpower-hw-diags/attn/
H A Dattn_dbus.cpp56 util::FFDCFile pelFile{util::FFDCFormat::Text}; in createPelRaw()
104 int fd = -1; in getPel()
138 return fd; // file descriptor or -1 in getPel()
H A Dattn_common.cpp113 util::FFDCFile file{util::FFDCFormat::Text}; in addPrdScratchRegs()
167 // check if pib target is enabled - indicates proc is enabled in recoverableErrors()
210 /** @brief timesec less-than-equal-to compare */
219 /** @brief sleep for n-seconds */
231 while (-1 == nanosleep(&requested, &remaining)) in sleepSeconds()
242 count--; in sleepSeconds()
H A Dattn_logging.cpp9 #include <phosphor-logging/log.hpp>
18 std::tuple<util::FFDCFormat, uint8_t, uint8_t, sdbusplus::message::unix_fd>;
23 * The D-Bus method to create an error log requires a vector of tuples to
26 * @param files - FFDC files
43 * @param i_buffer - raw data to add to ffdc faw data file
44 * @param i_size - size of the raw data
49 util::FFDCFile file{util::FFDCFormat::Custom}; in createFFDCRawFile()
71 * @param i_buffer - raw data (if creating raw dump ffdc entry in log)
102 * @param i_rawPel - buffer containing a raw PEL
103 * @param i_additional - additional data to be added to the new PEL
[all …]
/openbmc/phosphor-logging/
H A Dlog_manager.hpp7 #include <phosphor-logging/log.hpp>
46 using FFDCEntry = std::tuple<CreateIface::FFDCFormat, uint8_t, uint8_t,
70 * @param[in] bus - Bus to attach to.
71 * @param[in] path - Path to attach at.
82 * @param[in] transactionId - Unique identifier of the journal entries
84 * @param[in] errMsg - The error exception message associated with the
94 * @param[in] transactionId - Unique identifier of the journal entries
96 * @param[in] errMsg - The error exception message associated with the
98 * @param[in] errLvl - level of the error
103 /** @brief Erase specified entry d-bus object
[all …]

12