#
4207adcd |
| 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: I88079e69decd57b30d0455a723fd051be8449e36 Signed-off-by: Patrick Williams <p
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: I88079e69decd57b30d0455a723fd051be8449e36 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
93f06410 |
| 02-Jun-2024 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Add Serialization Support for Dump Entry Attributes
Implemented serialization of dump entry attributes using the nlohmann::json library. Added serialization support in the Dump Entry class, serializ
Add Serialization Support for Dump Entry Attributes
Implemented serialization of dump entry attributes using the nlohmann::json library. Added serialization support in the Dump Entry class, serializing attributes including originatorId, originatorType, and startTime. These attributes are not part of the dump filename and thus require serialization to ensure their state is preserved.
Deserialization will occur only if the serialization version matches and the dump ID in the dump object matches the ID in the serialized file.
Tests: - Created BMC dumps and restarted service - Created BMC dumps and restarted BMC - Created 200 BMC dumps and restarted service and BMC multiple times
File: ``` {"dumpId":2,"originatorId":"","originatorType":1,"startTime":1718199238942411,"version":1} ```
Change-Id: I16ecb058bddd464c8771bd8d08a50ea1877747ed Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
#
3604710d |
| 29-Jun-2023 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
BMCDump: dump subtype input parameter support
The BMC dump is not accepting any parameters to specify the type of dump or level of data to be collected. It was always creating a default user-request
BMCDump: dump subtype input parameter support
The BMC dump is not accepting any parameters to specify the type of dump or level of data to be collected. It was always creating a default user-requested dump.
This commit allows for the specification of the dump type during the dump creation process. A new table has been added in a new header file which stores the valid dump types. When a new dump is requested, the specified dump type is verified against this table. If no dump type is mentioned, a user-requested BMC dump is created for backward compatibility. If an invalid dump type is mentioned, an Invalid Argument exception is thrown.
Tested: - Create BMC dump with no arguments - Create BMC dump with type as user - Create a error log dump and make sure other types of dumps which is using internal interface is not impacted. - Built with master and p10bmc
Change-Id: I79f68be6ac6892ac7754b7221db64c22330b1822 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
#
3a25e5b2 |
| 22-Mar-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Allow initiating mp reboot dump in quiesced state
When system dumps are disabled, a system dump collection request will end up in quiesced state. A memory preserving reboot from that sta
OpenPOWER: Allow initiating mp reboot dump in quiesced state
When system dumps are disabled, a system dump collection request will end up in quiesced state. A memory preserving reboot from that state can get the failed data from the host. So enabling the mp reboot dump collection from quiesced state.
Test: Disable dump Inject error in host to move to quiesced state Start mp reboot Dump should be generated
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I9f444752b321f1ab47b99e5b8ac32c79182d6453
show more ...
|
#
0b566d54 |
| 14-Jun-2023 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Minor cleanup: Remove unused header file and namespace
This commit performs minor by removing an unnecessary header file: phosphor-logging/log.hpp and namespace: using namespace phosphor::logging
T
Minor cleanup: Remove unused header file and namespace
This commit performs minor by removing an unnecessary header file: phosphor-logging/log.hpp and namespace: using namespace phosphor::logging
These cleanup changes have no impact on the functionality. They enhance code cleanliness, reduce potential confusion, and promote better code maintenance and readability.
Test: Created a full build to make sure no errors
Change-Id: I68f2d81c538d3f632e6edd24702efc6ae7b07086 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
#
d1f670fe |
| 05-Jun-2023 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Implementing Phosphor-Logging/LG2 logging
This commit introduces changes in the phosphor-debug-collector repository to implement structured logging using the LG2 framework. The existing log calls in
Implementing Phosphor-Logging/LG2 logging
This commit introduces changes in the phosphor-debug-collector repository to implement structured logging using the LG2 framework. The existing log calls in the repository, have been replaced with LG2 logging, facilitates better log tracking and troubleshooting by offering improved detail in JSON object values.
Test: - Created BMC dump - Created system dump
Here is a example { "_EXE" : "/tmp/phosphor-dump-manager", "_MACHINE_ID" : "f9ca96d99c7b4ba688556f632ffeff5d", "_CAP_EFFECTIVE" : "1ffffffffff", "LOG2_FMTMSG" : "Invalid Dump file name, FILENAME: {FILENAME}", "__CURSOR" : "s=721ae7a5b6ed43ec904f2bb03e3c0403;i=2a8d0;\ b=b372b9a5989e46bb8e62b33310e181ea;m=2c05fda2b;t=5fdf0684c1e70;x=1592f60584d6486c", "CODE_FUNC" : "void phosphor::dump::bmc::Manager::\ createEntry(const std::filesystem::__cxx11::path&)", "_SYSTEMD_SLICE" : "system-dropbear.slice", "CODE_LINE" : "174", "__REALTIME_TIMESTAMP" : "1686583867350640", "PRIORITY" : "3", "_SYSTEMD_UNIT" : "dropbear@1-9.3.29.238:22-9.3.84.138:45432.service", "_PID" : "16209", "_BOOT_ID" : "b372b9a5989e46bb8e62b33310e181ea", "_SOURCE_REALTIME_TIMESTAMP" : "1686583867350580", "_TRANSPORT" : "journal", "_HOSTNAME" : "openbmc", "SYSLOG_IDENTIFIER" : "phosphor-dump-manager", "MESSAGE" : "Invalid Dump file name, \ FILENAME: BMCDUMP.XXXXXXX.0000006.20230612153010", "CODE_FILE" : \ "/usr/src/debug/phosphor-debug-collector/1.0+gitAUTOINC+a17f1c92ce-r1\ /dump_manager_bmc.cpp", "_UID" : "0", "_CMDLINE" : "/tmp/phosphor-dump-manager", "_RUNTIME_SCOPE" : "system", "FILENAME" : "BMCDUMP.XXXXXXXX.0000006.20230612153010", "_SYSTEMD_INVOCATION_ID" : "64a11629aade4c96ab62154cbc4be8b7", "__MONOTONIC_TIMESTAMP" : "11817441835", "_SYSTEMD_CGROUP" : "/system.slice/system-dropbear.slice/\ dropbear@1-9.3.29.238:22-9.3.84.138:45432.service", "_COMM" : "phosphor-dump-m", "_GID" : "0" }
Change-Id: I3a52b812b059b64d945493de2e2cc68a43f6d72a Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
#
78e88402 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: If4790d4928efc3e6690ca090aa79f0c7737c3683 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
8a9736b3 |
| 02-Apr-2022 |
Ravi Teja <raviteja28031990@gmail.com> |
Add SystemSetup state to allow dump collection
SystemSetup is a BootProgress that indicates the host is booted, needs to allow host dump collection
Signed-off-by: Ravi Teja <raviteja28031990@gmail.
Add SystemSetup state to allow dump collection
SystemSetup is a BootProgress that indicates the host is booted, needs to allow host dump collection
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com> Change-Id: I03778c20e482c7beaae9881d34c46f9744c43a16
show more ...
|
#
706ae1b5 |
| 21-Sep-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Add PCIInit also as host running state
PCI init starts once the host is started and the resource dump or system dump can be initiated at this stage. There are usecase where host is stuck
OpenPOWER: Add PCIInit also as host running state
PCI init starts once the host is started and the resource dump or system dump can be initiated at this stage. There are usecase where host is stuck at this stage so collecting a system dump or resource dump is critical for the debug.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I8ba7246fe84c146c104644b18507cd217db42d18
show more ...
|
#
9b18bf2d |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I7ae6214461bdf45c1a21fb702cc8bf5578d827c6
show more ...
|
#
52ac69c1 |
| 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I33245a48eb2c55667cc8d57e8a3aba8af070f880
show more ...
|
#
858fbb2e |
| 30-Jun-2021 |
George Liu <liuxiwei@inspur.com> |
Add fmtlib for phosphor-debug-collector
Call fmtlib to get additional information from journal.
Tested: built phosphor-debug-collector successfully and Unit Test passes.
Signed-off-by: Geo
Add fmtlib for phosphor-debug-collector
Call fmtlib to get additional information from journal.
Tested: built phosphor-debug-collector successfully and Unit Test passes.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ibe65637a0b29b76269fb4bc3f498438901c9306a
show more ...
|
#
6a54d9af |
| 17-Dec-2020 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Allow initiating or offloading host dumps only when host is up.
When the host is not up the system dump cannot be initiated or offloaded. Adding a check whether the host is up before starting the cr
Allow initiating or offloading host dumps only when host is up.
When the host is not up the system dump cannot be initiated or offloaded. Adding a check whether the host is up before starting the creation of the host dump. Added a new utility to check whether host is running, this can be called to check whether host is running before initiating actions like initiate, offload, delete on host dumps. Automatic clearing off host dump entries during a system power off will be handled with #ibm-openbmc/issues/2860
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ieb3163ef9b329d3b99807722bd5ac985bf3da25e
show more ...
|
#
2279386b |
| 04-Dec-2020 |
Ramesh Iyyar <rameshi1@in.ibm.com> |
host: Added support to delete system dump
To delete host system dump using pldm oem command "FileAck" with dump file type and dump id which is present as source dump id (which is got from pldm after
host: Added support to delete system dump
To delete host system dump using pldm oem command "FileAck" with dump file type and dump id which is present as source dump id (which is got from pldm after created the host system dump) in system dump entry dbus object and also, to use pldm oem command added support to indicate delete host system dump support is not available for other host transport consumer and for other oem vendors who are using pldm as host transport to get host dump.
Also, changed existing commited error i.e internal failure into not allowed for host system dump offload to avoid bmc dump creation in dump path.
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com> Change-Id: Ib6be5b521fb3c5aa2926497bae0b03c1d9737161
show more ...
|
#
d31be2cc |
| 04-Feb-2020 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Added PLDM Dump offload command
Added support to sending the SetNumericEffecterValue PLDM command to the host to start dump offload.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com> Change-Id:
Added PLDM Dump offload command
Added support to sending the SetNumericEffecterValue PLDM command to the host to start dump offload.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com> Change-Id: I30fe59b198b55ad439a182877c6b21cfd070245b
show more ...
|