#
e9ec952e |
| 05-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
replace fs alias with std::filesystem
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9072353526c2c18453aa97dc6f9c5d610508609a
|
#
7d06930a |
| 09-Nov-2023 |
Andrew Geissler <geissonator@yahoo.com> |
ramoops: generate error log when ramoops detected
A ramoops being detected is a critical event for a BMC based system. It indicates the BMC had an unexpected reboot because of a kernel panic. Ensure
ramoops: generate error log when ramoops detected
A ramoops being detected is a critical event for a BMC based system. It indicates the BMC had an unexpected reboot because of a kernel panic. Ensure a log is reported so the user of the system knows to look for a BMC dump with the debug information.
Tested: - Manually created some files in /var/lib/systemd/pstore/ and ran the ramoops application and verified the expected log was created.
Change-Id: Id1162fa0cca72e5dcc8cf59e75bd298d2ddada2e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
#
7d7e0014 |
| 29-Jun-2023 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Add Ramoops dump to common create
This commit adjusts the handling of ramoops (RAM OOPS) dumps to use the common BMC dump creation interface. Previously, when a ramoops dump was detected, the ramoop
Add Ramoops dump to common create
This commit adjusts the handling of ramoops (RAM OOPS) dumps to use the common BMC dump creation interface. Previously, when a ramoops dump was detected, the ramoops manager would inform the dump manager via an internal D-Bus interface. With the changes in this commit, upon detecting a ramoops event, the ramoops manager will now request the dump manager to create a BMC dump, incorporating the relevant ramoops data, via the common create DBus interface.
Tested: Create a Ramoops dump busctl --verbose call xyz.openbmc_project.Dump.Manager \ /xyz/openbmc_project/dump/bmc xyz.openbmc_project.Dump.Create \ CreateDump a{sv} 2 "xyz.openbmc_project.Dump.Create.CreateParameters.\ DumpType" s "xyz.openbmc_project.Dump.Create.DumpType.Ramoops" \ "xyz.openbmc_project.Dump.Create.CreateParameters.FilePath" \ s "/tmp/ramoops" MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/bmc/entry/4"; };
> Initiating new BMC dump with type: ramoops path: /tmp/ramoops
Change-Id: I0437cfa6c63fe261ca9b51f6a90c8183abacd5c7 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
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 ...
|
#
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 ...
|
#
2a6835d7 |
| 11-Oct-2021 |
George Liu <liuxiwei@inspur.com> |
ramoops: Check files in pstore
The code was wrong that it passes the pstore dir and create a dump. Actually it should get the files in pstore dir, and do not create a dump if it's an empty dir or th
ramoops: Check files in pstore
The code was wrong that it passes the pstore dir and create a dump. Actually it should get the files in pstore dir, and do not create a dump if it's an empty dir or the dir does not exist.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Id9e2452c93c5e2897441d22d00aeec8b04aca3ee
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 ...
|
#
f4694d71 |
| 16-Aug-2021 |
George Liu <liuxiwei@inspur.com> |
ramoops_manager: Handle D-Bus exceptions
Remove the deprecated is_method_error() method, and add try-catch to handle the exceptions.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ibd12
ramoops_manager: Handle D-Bus exceptions
Remove the deprecated is_method_error() method, and add try-catch to handle the exceptions.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ibd12f1fdf05aede82bfc8b3c58e4cfd6a8e3c612
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 ...
|
#
ff92ffe2 |
| 09-Feb-2021 |
George Liu <liuxiwei@inspur.com> |
Collect ramoops data into BMC dump
- Add ramoops file monitor and support to enable ramoops data collection for kernel dump.
- Systemd will collect ramoops data and write it into /var/lib/syste
Collect ramoops data into BMC dump
- Add ramoops file monitor and support to enable ramoops data collection for kernel dump.
- Systemd will collect ramoops data and write it into /var/lib/systemd/pstore when a system kernel oops/panics.
- Today, need to grab everything in that directory, put it in a dump and then delete everything in that directory.
Tested: - Simulate a kernel panic by creating similar data in the expected location. `dmesg > /var/lib/systemd/pstore/dmesg1.txt` `dmesg > /var/lib/systemd/pstore/dmesg2.txt` `dmesg > /var/lib/systemd/pstore/dmesg3.txt` `dmesg > /var/lib/systemd/pstore/dmesg4.txt`
tar -tvf obmcdump_1_248.tar.xz:
drwxr-xr-x 0/0 0 1970-01-01 00:01:32 obmcdump_1_248/ -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg1.txt -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg2.txt -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg3.txt -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg4.txt -rw-r--r-- 0/0 162 1970-01-01 00:01:32 obmcdump_1_248/dreport.log -rw-r--r-- 0/0 294 1970-01-01 00:01:31 obmcdump_1_248/os-release -rw-r--r-- 0/0 278 1970-01-01 00:01:31 obmcdump_1_248/summary.log
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I05bca408f4dcc2b62350104a0c5f757d740dde22
show more ...
|