#
2a98d0d9 |
| 18-Jun-2025 |
Lei YU <yulei.sh@bytedance.com> |
Fix clang-tidy linter and format issues
openbmc-build-scripts introduces clang-tidy-config linter. Also fix the issues found by clang-tidy.
Change-Id: Ia37f740b110d0aca53e7608db03f12065468e3fb Sign
Fix clang-tidy linter and format issues
openbmc-build-scripts introduces clang-tidy-config linter. Also fix the issues found by clang-tidy.
Change-Id: Ia37f740b110d0aca53e7608db03f12065468e3fb Signed-off-by: Lei YU <yulei.sh@bytedance.com>
show more ...
|
#
03414ffa |
| 07-Jul-2024 |
Lakshmi Yadlapati <lakshmiy@us.ibm.com> |
Move to libpldm pldm_transport APIs
Replaced pldm transport APIs with libpldm pldm_transport APIs to remove the dependency on pldm.
This change removes the dependency on pldm by utilizing the stand
Move to libpldm pldm_transport APIs
Replaced pldm transport APIs with libpldm pldm_transport APIs to remove the dependency on pldm.
This change removes the dependency on pldm by utilizing the standardized libpldm APIs for transport operations, improving maintainability and compatibility.
We don't currently have the infrastructure in place to get the correct TIDs, so to keep everything working as before use the EID as the TID in the EID-to-TID mapping.
Test: Tested the resource dump download and delete using GUI and it works as expected.
Change-Id: I3ec741024c7b99f0ee630678f3b3b49f741e1ea1 Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com> Signed-off-by: Eddie James <eajames@linux.ibm.com>
show more ...
|
#
11beea45 |
| 17-May-2024 |
Lakshmi Yadlapati <lakshmiy@us.ibm.com> |
Move to libpldm instance id APIs
libpldm provides APIs for allocating instance IDs directly, which eliminates the need for remote dbus calls to the pldm daemon. Refactor the code to use these APIs
Move to libpldm instance id APIs
libpldm provides APIs for allocating instance IDs directly, which eliminates the need for remote dbus calls to the pldm daemon. Refactor the code to use these APIs and eliminate all the dbus operations.
Test: Tested the resource dump download and delete using GUI and it works as expected.
Change-Id: I9c03de15174f517c182258b88245a58c74f4313f Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com> Signed-off-by: Eddie James <eajames@linux.ibm.com>
show more ...
|
#
973b291e |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I748aeef75e2078199193cd98013dd2fe7f6b5db8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
18c7d92e |
| 26-Feb-2024 |
Patrick Williams <patrick@stwcx.xyz> |
lg2: use direct enum conversion
lg2 now allows logging an enum directly without extra casting. Remove the `underlying_cast` to simplify the code.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz
lg2: use direct enum conversion
lg2 now allows logging an enum directly without extra casting. Remove the `underlying_cast` to simplify the code.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I3415be5f7e9be2302c870b5499f96cda3545d0fa
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 ...
|
#
b2665cdf |
| 08-Jun-2023 |
ojayanth <ojayanth@in.ibm.com> |
gcc13 : fix argument format issues
gcc13 based build failed with below errors. error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> speciali
gcc13 : fix argument format issues
gcc13 based build failed with below errors. error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
Problem reported during enum type input is similar to https://github.com/fmtlib/fmt/issues/391 Fix is to static_cast the "enum" type to "underlying_type" in fmt::format function.
Problem related file descriptor input is to static_cast enum to "underlying_type".
Change-Id: I587e4abfb4e188d40a0e4bfbdd57e6da6a77616d Signed-off-by: Jayanth Othayoth <ojayanth@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 ...
|
#
9126ec03 |
| 12-Oct-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Add additional traces when requesting instance id
The dump manager requests an instance id from PLDM to communicate with the host. Since the number of instances is limited PLDM needs to k
OpenPOWER: Add additional traces when requesting instance id
The dump manager requests an instance id from PLDM to communicate with the host. Since the number of instances is limited PLDM needs to keep track of the requests, adding additional traces while requesting the instance id. Added exception handling for bus errors while getting instance id from PLDM.
Testing: Execute offload and delete to see whether traces are coming.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Id15a99d349851ca00baf7fc8d59a83d7d266fa44
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 ...
|
#
3af5c32b |
| 04-Dec-2020 |
Ramesh Iyyar <rameshi1@in.ibm.com> |
offload: Moved existing pldm offload as oem/ibm command
Currently used host mctp end point id is ibm specific and also the used effecter id (0x05) is for phyp and "SetNumericEffecterValue" pldm comm
offload: Moved existing pldm offload as oem/ibm command
Currently used host mctp end point id is ibm specific and also the used effecter id (0x05) is for phyp and "SetNumericEffecterValue" pldm command is common so, changing existing pldm offload implementation into oem based and added default pldm offload interface as well.
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com> Change-Id: I8a401e03d29f9245dd54577b8b7b1d87d4a13d18
show more ...
|