Home
last modified time | relevance | path

Searched +full:phosphor +full:- +full:logging (Results 1 – 25 of 1089) sorted by relevance

12345678910>>...44

/openbmc/intel-ipmi-oem/src/
H A Dsmbiosmdrv2handler.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
28 #include <phosphor-logging/log.hpp>
47 int agentIndex = -1; in agentLookup()
68 bus->new_method_call(service.c_str(), mdrv2Path, dbusProperties, "Get"); in sdplusMdrv2GetProperty()
71 sdbusplus::message_t reply = bus->call(method); in sdplusMdrv2GetProperty()
75 sdbusplus::message_t reply = bus->call(method); in sdplusMdrv2GetProperty()
80 phosphor::logging::log<phosphor::logging::level::ERR>( in sdplusMdrv2GetProperty()
82 phosphor::logging::entry("ERROR=%s", e.what())); in sdplusMdrv2GetProperty()
83 return -1; in sdplusMdrv2GetProperty()
95 bus->new_method_call(service.c_str(), mdrv2Path, mdrv2Interface, in syncDirCommonData()
[all …]
H A Dfirmware-update.cpp19 #include <phosphor-logging/log.hpp>
90 static constexpr char firmwareBufferFile[] = "/tmp/fw-download.bin";
95 constexpr char usbCtrlPath[] = "/usr/bin/usb-ctrl";
96 constexpr char fwUpdateMountPoint[] = "/tmp/usb-fwupd.mnt";
97 constexpr char fwUpdateUsbVolImage[] = "/tmp/usb-fwupd.img";
98 constexpr char fwUpdateUSBDevName[] = "fw-usb-mass-storage-dev";
108 static constexpr const char* bmcRecoveryImgMTDDev = "/dev/mtd/rc-image";
253 phosphor::logging::log<phosphor::logging::level::INFO>( in verify()
259 phosphor::logging::log<phosphor::logging::level::ERR>( in verify()
392 phosphor::logging::log<phosphor::logging::level::ERR>( in updateActivationPercent()
[all …]
H A Dbiosconfigcommands.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
159 phosphor::logging::log<phosphor::logging::level::ERR>( in fillPayloadData()
169 phosphor::logging::log<phosphor::logging::level::ERR>( in fillPayloadData()
177 phosphor::logging::log<phosphor::logging::level::ERR>( in fillPayloadData()
197 phosphor::logging::log<phosphor::logging::level::ERR>( in getPendingList()
208 dbus->yield_method_call<std::variant<PendingAttributesType>>( in getPendingList()
209 ctx->yield, ec, service, in getPendingList()
216 phosphor::logging::log<phosphor::logging::level::ERR>(ex.what()); in getPendingList()
226 phosphor::logging::log<phosphor::logging::level::ERR>(err.c_str()); in getPendingList()
235 phosphor::logging::log<phosphor::logging::level::ERR>( in getPendingList()
[all …]
H A Dappcommands.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
24 #include <phosphor-logging/elog-errors.hpp>
25 #include <phosphor-logging/lg2.hpp>
26 #include <phosphor-logging/log.hpp>
32 using namespace phosphor::logging;
64 phosphor::logging::log<phosphor::logging::level::ERR>( in initBMCDeviceState()
66 phosphor::logging::entry("ERROR=%s", ec.message().c_str()), in initBMCDeviceState()
67 phosphor::logging::entry("INTERFACE=%s", bmcStateIntf)); in initBMCDeviceState()
68 return -1; in initBMCDeviceState()
74 *(ctx->bus), in initBMCDeviceState()
[all …]
H A Doemcommands.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
22 #include <systemd/sd-journal.h>
35 #include <phosphor-logging/log.hpp>
128 phosphor::logging::log<phosphor::logging::level::ERR>( in getChassisSerialNumber()
130 phosphor::logging::entry("INTF=%s", intf.c_str())); in getChassisSerialNumber()
131 return -1; in getChassisSerialNumber()
142 auto property = interface->second.find("CHASSIS_SERIAL_NUMBER"); in getChassisSerialNumber()
143 if (property == interface->second.end()) in getChassisSerialNumber()
150 Value variant = property->second; in getChassisSerialNumber()
154 phosphor::logging::log<phosphor::logging::level::ERR>( in getChassisSerialNumber()
[all …]
H A Dbridgingcommands.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
21 #include <phosphor-logging/log.hpp>
106 (length - ipmbConnectionHeaderLength)); in ipmbDataChecksumValidate()
131 address = ipmbBuffer->Header.Req.address; in IpmbRequest()
132 netFn = ipmbNetFnGet(ipmbBuffer->Header.Req.rsNetFnLUN); in IpmbRequest()
133 rsLun = ipmbLunFromNetFnLunGet(ipmbBuffer->Header.Req.rsNetFnLUN); in IpmbRequest()
134 rqSA = ipmbBuffer->Header.Req.rqSA; in IpmbRequest()
135 seq = ipmbSeqGet(ipmbBuffer->Header.Req.rqSeqLUN); in IpmbRequest()
136 rqLun = ipmbLunFromSeqLunGet(ipmbBuffer->Header.Req.rqSeqLUN); in IpmbRequest()
137 cmd = ipmbBuffer->Header.Req.cmd; in IpmbRequest()
[all …]
H A Dmultinodecommands.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
21 #include <phosphor-logging/log.hpp>
44 phosphor::logging::log<phosphor::logging::level::ERR>( in getMultiNodeInfo()
46 phosphor::logging::entry("ERR=%s", e.what())); in getMultiNodeInfo()
72 phosphor::logging::log<phosphor::logging::level::ERR>( in getMultiNodeRole()
74 phosphor::logging::entry("VALUE=%s", valueStr.c_str())); in getMultiNodeRole()
81 phosphor::logging::log<phosphor::logging::level::ERR>( in getMultiNodeRole()
83 phosphor::logging::entry("ERR=%s", e.what())); in getMultiNodeRole()
124 phosphor::logging::log<phosphor::logging::level::INFO>( in registerMultiNodeFunctions()
/openbmc/openpower-hw-diags/util/
H A Dpdbg_callback.hpp6 #include <phosphor-logging/log.hpp>
14 * @brief callback function for logging with log level
32 phosphor::logging::log<phosphor::logging::level::ERR>(msg); in pdbg_log_callback()
35 phosphor::logging::log<phosphor::logging::level::WARNING>(msg); in pdbg_log_callback()
38 phosphor::logging::log<phosphor::logging::level::NOTICE>(msg); in pdbg_log_callback()
41 phosphor::logging::log<phosphor::logging::level::INFO>(msg); in pdbg_log_callback()
44 phosphor::logging::log<phosphor::logging::level::DEBUG>(msg); in pdbg_log_callback()
47 phosphor::logging::log<phosphor::logging::level::ERR>(msg); in pdbg_log_callback()
/openbmc/phosphor-logging/
H A DREADME.md1 # phosphor-logging chapter
3 The phosphor logging repository provides mechanisms for event and journal
4 logging.
8 - [Building](#to-build)
9 - [Structured Logging](#structured-logging)
10 - [Event Logs](#event-logs)
11 - [Event Log Extensions](#event-log-extensions)
12 - [Remote Logging](#remote-logging-via-rsyslog)
13 - [Boot Fail on Hardware Errors](#boot-fail-on-hardware-errors)
20 2. ninja -c builddir
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Logging/
H A DREADME.md1 # OpenBMC logging
3 - Provides a mechanism for logging events and errors to the journal.
4 - Creates error entry D-Bus objects when an error is reported/committed.
5 - Persists error entries across power off.
11 - Generic errors used by applications are defined at
12 [phosphor-dbus-interfaces][phosphor-dbus-interfaces].
13 - Generic errors can be used by all the applications by including the generated
14 elog-errors.hpp header file.
16 [phosphor-dbus-interfaces]: https://github.com/openbmc/phosphor-dbus-interfaces
20 - There are errors that are not generic and are very specific to the
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/logging/
H A Dphosphor-logging_git.bb1 SUMMARY = "Phosphor OpenBMC event and error logging"
4 HOMEPAGE = "https://github.com/openbmc/phosphor-logging"
5 LICENSE = "Apache-2.0"
8 ${PYTHON_PN}-mako-native \
9 ${PYTHON_PN}-native \
10 ${PYTHON_PN}-pyyaml-native \
11 ${PYTHON_PN}-sdbus++-native \
15 nlohmann-json \
16 packagegroup-obmc-yaml-providers \
17 phosphor-dbus-interfaces \
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/logging/
H A Dphosphor-logging_%.bbappend1 PACKAGECONFIG:append:p10bmc = " openpower-pels"
9 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Raini…
10 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Raini…
11 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Evere…
12 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Bonne…
16 PACKAGECONFIG[phal] = "-Dphal=enabled, -Dphal=disabled, pdata libekb pdbg ipl"
19 install -d ${D}/${datadir}/phosphor-logging/pels
20 …install -m 0644 ${UNPACKDIR}/com.ibm.Hardware.Chassis.Model.Rainier2U_dev_callouts.json ${D}/${dat…
21 …install -m 0644 ${UNPACKDIR}/com.ibm.Hardware.Chassis.Model.Rainier4U_dev_callouts.json ${D}/${dat…
22 …install -m 0644 ${UNPACKDIR}/com.ibm.Hardware.Chassis.Model.Everest_dev_callouts.json ${D}/${datad…
[all …]
/openbmc/docs/designs/
H A Dfail-boot-on-hw-error.md30 Extensions within phosphor-logging may process logs that do not always come
31 through the standard phosphor-logging interfaces (for example logs sent down by
39 - Provide a mechanism to cause the OpenBMC firmware to halt a system if a
40 phosphor-logging log is created with a inventory callout
41 - The mechanism to enable/disable this feature does not need to be an external
44 - The halt must be obvious to the user when it occurs
45 - The log which causes the halt must be identifiable
46 - The halt must only stop the chassis/host instance that encountered the error
47 - The halt must allow the host firmware the opportunity to gracefully shut
49 - The halt must stop the host (run `obmc-host-stop@X.target`) associated with
[all …]
H A Devent-logging.md1 # Error and Event Logging
3 Author: [Patrick Williams][patrick-email] `<stwcx>`
5 [patrick-email]: mailto:patrick@stwcx.xyz
13 There is currently not a consistent end-to-end error and event reporting design
15 primarily using phosphor-logging and one using rsyslog, both of which have gaps
17 end-to-end design handling both errors and tracing events which facilitate
30 be "DIMM-A0 encountered an uncorrectable ECC error" or "System boot successful".
36 temperature threshold exceeded: ["temperature threshold exceeded"][HPE-Example]
37 and ["Temperature #0x30 Upper Critical going high"][Oracle-Example]. There is
45 reference][Registry-Example] from the DMTF gives this example:
[all …]
/openbmc/telemetry/src/
H A Dtrigger_actions.cpp9 #include <phosphor-logging/log.hpp>
63 phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); in commit()
113 phosphor::logging::log<phosphor::logging::level::INFO>( in commit()
114 "Logging numeric trigger action to Redfish Event Log.", in commit()
115 phosphor::logging::entry("REDFISH_MESSAGE_ID=%s", messageId), in commit()
116 phosphor::logging::entry("REDFISH_MESSAGE_ARGS=%s,%f,%s", in commit()
122 phosphor::logging::log<phosphor::logging::level::INFO>( in commit()
123 "Logging numeric trigger action to Redfish Event Log.", in commit()
124 phosphor::logging::entry("REDFISH_MESSAGE_ID=%s", messageId), in commit()
125 phosphor::logging::entry("REDFISH_MESSAGE_ARGS=%s,%f,%f,%s", in commit()
[all …]
/openbmc/phosphor-power/
H A Delog-errors.hpp2 // See elog-gen.py for more details
5 #include <phosphor-logging/elog.hpp>
237 namespace phosphor::logging namespace
255 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
267 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
286 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
298 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
317 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0;
329 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0;
348 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1;
[all …]
/openbmc/ipmbbridge/
H A Dipmbbridged.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
25 #include <phosphor-logging/log.hpp>
75 netFn = ipmbNetFnGet(ipmbBuffer->Header.Req.rsNetFnLUN); in i2cToIpmbConstruct()
76 rsLun = ipmbLunFromNetFnLunGet(ipmbBuffer->Header.Req.rsNetFnLUN); in i2cToIpmbConstruct()
77 rqSA = ipmbBuffer->Header.Req.rqSA; in i2cToIpmbConstruct()
78 seq = ipmbSeqGet(ipmbBuffer->Header.Req.rqSeqLUN); in i2cToIpmbConstruct()
79 rqLun = ipmbLunFromSeqLunGet(ipmbBuffer->Header.Req.rqSeqLUN); in i2cToIpmbConstruct()
80 cmd = ipmbBuffer->Header.Req.cmd; in i2cToIpmbConstruct()
83 bufferLength - (ipmbConnectionHeaderLength + in i2cToIpmbConstruct()
88 data.insert(data.end(), ipmbBuffer->Header.Req.data, in i2cToIpmbConstruct()
[all …]
/openbmc/phosphor-buttons/src/
H A Dreset_button.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
32 int n = -1; in handleEvent()
39 phosphor::logging::log<phosphor::logging::level::ERR>( in handleEvent()
48 phosphor::logging::log<phosphor::logging::level::ERR>( in handleEvent()
55 phosphor::logging::log<phosphor::logging::level::DEBUG>( in handleEvent()
62 phosphor::logging::log<phosphor::logging::level::DEBUG>( in handleEvent()
H A Did_button.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
30 int n = -1; in handleEvent()
36 phosphor::logging::log<phosphor::logging::level::ERR>( in handleEvent()
44 phosphor::logging::log<phosphor::logging::level::ERR>( in handleEvent()
51 phosphor::logging::log<phosphor::logging::level::DEBUG>( in handleEvent()
58 phosphor::logging::log<phosphor::logging::level::DEBUG>( in handleEvent()
H A Dpower_button.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
23 phosphor::button::numberOfChassis());
48 int n = -1; in handleEvent()
55 phosphor::logging::log<phosphor::logging::level::ERR>( in handleEvent()
63 phosphor::logging::log<phosphor::logging::level::ERR>( in handleEvent()
70 phosphor::logging::log<phosphor::logging::level::DEBUG>( in handleEvent()
79 phosphor::logging::log<phosphor::logging::level::DEBUG>( in handleEvent()
84 now - getPressTime()); in handleEvent()
/openbmc/openpower-occ-control/
H A Docc_errors.cpp9 #include <phosphor-logging/elog-errors.hpp>
10 #include <phosphor-logging/elog.hpp>
11 #include <phosphor-logging/lg2.hpp>
12 #include <phosphor-logging/log.hpp>
20 using namespace phosphor::logging;
28 using namespace phosphor::logging; in openFile()
36 elog<OpenFailure>(phosphor::logging::org::open_power::OCC::Device:: in openFile()
38 phosphor::logging::org::open_power::OCC::Device:: in openFile()
54 strerror(-r)); in registerCallBack()
104 error->analyzeEvent(); in processEvents()
[all …]
/openbmc/openbmc/meta-openpower/recipes-phosphor/debug/
H A Dopenpower-debug-collector_git.bb8 obmc-phosphor-systemd \
10 phosphor-dbus-yaml
13 require ${BPN}-systemd-links.inc
16 phosphor-logging \
17 ${PYTHON_PN}-sdbus++-native \
24 # of host checkstop, host watchdog and host watchdog-timeout respectively.
28 ${@bb.utils.contains('MACHINE_FEATURES', 'phal', '', 'watchdog-timeout', d)} \
31 DEBUG_TMPL = "openpower-debug-collector-{0}@.service"
34 # Do not depend on phosphor-logging for native build
35 DEPENDS:remove:class-native = "phosphor-logging"
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/packagegroups/
H A Dpackagegroup-obmc-apps.bb1 SUMMARY = "OpenBMC - Applications"
8 ${PN}-bmc-state-mgmt \
9 ${PN}-bmcweb \
10 ${PN}-chassis-state-mgmt \
11 ${PN}-console \
12 ${PN}-dbus-monitor \
13 ${PN}-extras \
14 ${PN}-devtools \
15 ${PN}-fan-control \
16 ${PN}-health-monitor \
[all …]
/openbmc/phosphor-post-code-manager/src/
H A Dmain.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
34 while ((arg = getopt_long(argc, argv, "h:c:", longOpts, &optIndex)) != -1) in main()
49 phosphor::logging::log<phosphor::logging::level::INFO>( in main()
56 phosphor::logging::log<phosphor::logging::level::ERR>( in main()
80 phosphor::logging::log<phosphor::logging::level::ERR>( in main()
82 phosphor::logging::entry("RET=%d", ret)); in main()
87 phosphor::logging::log<phosphor::logging::level::ERR>(e.what()); in main()
88 return -1; in main()
/openbmc/openpower-host-ipmi-oem/
H A Delog-errors.hpp2 // See elog-gen.py for more details
5 #include <phosphor-logging/elog.hpp>
6 #include <phosphor-logging/log.hpp>
50 namespace phosphor::logging namespace
60 * We can't use -fsanitize=undefined if we declare a
61 * 'static constexpr auto str' member, so don't. Instead, open-code the
83 using Event = phosphor::logging::org::open_power::occ::metrics::Event;
94 using type = phosphor::logging::org::open_power::occ::metrics::Event;
105 * We can't use -fsanitize=undefined if we declare a
106 * 'static constexpr auto str' member, so don't. Instead, open-code the
[all …]

12345678910>>...44