#
16c2a0a0 |
| 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: I8c84201cb2343a8c8a5507a49de0721a1bee7063 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
2576aecd |
| 17-Jun-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://githu
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I539a0c5baa63be240fc1c76367c0af338dd89c7b Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
47792274 |
| 13-Jun-2023 |
Andrew Jeffery <andrew@aj.id.au> |
pldm: Include config.h via compiler argument
This removes any ambiguity about which config.h is being included. Subprojects such as libpldm and phosphor-logging also generate config.h files, and the
pldm: Include config.h via compiler argument
This removes any ambiguity about which config.h is being included. Subprojects such as libpldm and phosphor-logging also generate config.h files, and these are exposed in the include path.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I3e0ccd6339f088380ffa29d41167b07aefc7dd16
show more ...
|
#
6da4f91b |
| 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: I61b093f75011417cc9c7acf9605200f4fa429bac Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
49cfb138 |
| 02-Mar-2023 |
Riya Dixit <riyadixitagra@gmail.com> |
PLDM: Implementing Phosphor-Logging/LG2 logging
This commit adds changes in PLDM for implementing structured LG2 logging, thereby moving away from std::cout/cerr practice of logging which are output
PLDM: Implementing Phosphor-Logging/LG2 logging
This commit adds changes in PLDM for implementing structured LG2 logging, thereby moving away from std::cout/cerr practice of logging which are output streams and not logging mechanism.
PLDM now can make use of lg2 features like accurate CODE LINE Number and CODE_FUNCTION Name and better detailing in json object values which can be used in log tracking.
More detailed logging change: https://gist.github.com/riyadixitagra/c251685c1ba84248181891f7bc282395
Tested: Ran a power off, on, cycle, and reset-reload.
Change-Id: I0485035f15f278c3fd172f0581b053c1c37f3a5b Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
#
ca1998f3 |
| 06-Jun-2022 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
update clang-format
This commit would update the repo's clang-format file to the latest of docs/style/cpp/clang-format file.
Following is the new change that is added: Brad : clang-format: cpp: r
update clang-format
This commit would update the repo's clang-format file to the latest of docs/style/cpp/clang-format file.
Following is the new change that is added: Brad : clang-format: cpp: remove empty lines
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: Ieaadd8a1cd779c9c12adf6d065cc1f9e9a8fa37b
show more ...
|
#
ef773059 |
| 28-Jul-2021 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
In-Memory FlightRecorder support for pldmd
pldm daemon in BMC can act both as a requester and responder, and it is capable of talking to any device that talks pldm spec.
With the rapid increase in
In-Memory FlightRecorder support for pldmd
pldm daemon in BMC can act both as a requester and responder, and it is capable of talking to any device that talks pldm spec.
With the rapid increase in the number of commands supported by pldmd, and also with the async request/response support enabled, its becomes extremely tough to debug the failures in the communication.
And most of times, the essential information that is needed to debug are the last few commands that BMC pldm responded to. So this commit is an attempt to bring in an in-memory flight recorder that could save the last 10(can be configurable) pldm transactions in a circular buffer, and dumps the contents of it into a file when it receives a SIGUR1 signal.
Resolves openbmc/pldm#24
Tested By :
1. Power on host 2. In the middle of poweron, send the SIGUSR1 signal to pldmd
root@rain118bmc:/tmp# kill -10 836 Received SIGUR1(10) Signal interrupt root@rain118bmc:/tmp# Dumping the flight recorder into /tmp/pldm_flight_recorder
3. Make sure pldmd is not killed and does the rest of the power on operation.
4. check the contents of /tmp/pldm_flight_recorder root@p10bmc:~# cat /tmp/pldm_flight_recorder UTC Nov 05 / 11:27:25.334606 : Tx : 0a 3f 0d 00 UTC Nov 05 / 11:27:26.292988 : Rx : 09 01 8b 3f 0d 00 00 7b 1e 00 50 00 UTC Nov 05 / 11:27:26.296915 : Tx : 0b 3f 0d 00 UTC Nov 05 / 11:27:27.250999 : Rx : 09 01 8c 3f 0d 00 00 7c 1e 00 50 00 UTC Nov 05 / 11:27:27.254762 : Tx : 0c 3f 0d 00 UTC Nov 05 / 11:27:28.212168 : Rx : 09 01 8d 3f 0d 00 00 7d 1e 00 50 00 UTC Nov 05 / 11:27:28.216086 : Tx : 0d 3f 0d 00 UTC Nov 05 / 11:27:29.171228 : Rx : 09 01 8e 3f 0d 00 00 7e 1e 00 50 00 UTC Nov 05 / 11:27:29.175143 : Tx : 0e 3f 0d 00 UTC Nov 05 / 11:27:25.330716 : Rx : 09 01 8a 3f 0d 00 00 7a 1e 00 50 00
5. Configure with -Dflightrecorder-max-entries=0 root@p10bmc:~# kill -10 21847 Received SIGUR1(10) Signal interrupt Fight recorder policy is disabled
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I4e9c828f4ada9f1db6bf3a9b68c16e71b6e5d8f0
show more ...
|