#
4f68fc46 |
| 25-Nov-2024 |
Jayanth Othayoth <ojayanth@gmail.com> |
clang-tidy: Initial Commit
This commit introduces clang-tidy and modifies code to address issues flagged by the checks. Additionally, it includes the initial infrastructure setup.
Tested: Build and
clang-tidy: Initial Commit
This commit introduces clang-tidy and modifies code to address issues flagged by the checks. Additionally, it includes the initial infrastructure setup.
Tested: Build and unit tests completed successfully.
Change-Id: I55f9f4a2a9a1b1cd2016773b47935484d6a57867 Signed-off-by: Jayanth Othayoth <ojayanth@gmail.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 ...
|
#
74a1f39c |
| 27-Oct-2021 |
Asmitha Karunanithi <asmitk01@in.ibm.com> |
Implement OriginatedBy interface in dump entry dbus obj
This new interface "OriginatedBy" will be implemented by all the dump entry dbus objects. It contains a property "OriginatorId" which stores t
Implement OriginatedBy interface in dump entry dbus obj
This new interface "OriginatedBy" will be implemented by all the dump entry dbus objects. It contains a property "OriginatorId" which stores the unique id of the user that has initiated the dump. The unique id in this case is a string that contains the ip address of the client that initiated the dump.
The dbus interface change for the same is at: [1] https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/47057
Tested By:
[1] busctl 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.OriginatorId" s "<unique-id>" "xyz.openbmc_project.Dump.Create.CreateParameters.OriginatorType" s "xyz.openbmc_project.Common.OriginatedBy.OriginatorTypes.Client" o "/xyz/openbmc_project/dump/bmc/entry/2"
[2] busctl --verbose call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/resource xyz.openbmc_project.Dump.Create CreateDump a{sv} 4 "com.ibm.Dump.Create.CreateParameters.VSPString" s "vsp" "com.ibm.Dump.Create.CreateParameters.Password" s "password" "com.ibm.Dump.Create.CreateParameters.OriginatorId" s "<unique-id>" "xyz.openbmc_project.Dump.Create.CreateParameters.OriginatorType" s "xyz.openbmc_project.Common.OriginatedBy.OriginatorTypes.Client" MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/resource/entry/1"; };
[3] busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/system xyz.openbmc_project.Dump.Create CreateDump a{sv} 2 "com.ibm.Dump.Create.CreateParameters.OriginatorId" s "<unique-id>" "xyz.openbmc_project.Dump.Create.CreateParameters.OriginatorType" s "xyz.openbmc_project.Common.OriginatedBy.OriginatorTypes.Client" o "/xyz/openbmc_project/dump/system/entry/1"
Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com> Change-Id: I23c9f769fd39cd84e042d6effbb3d71c7af4e889
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 ...
|
#
73f64076 |
| 01-Apr-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for signal action, but maintained a backwards compatible boolean mapping.
sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for signal action, but maintained a backwards compatible boolean mapping. It is time to remove this boolean to make it more observable which actions are being used in applications. Map all `true` occurrences to `action::defer_emit` or `action::emit_no_signals` as appropriate.
- DumpEntry: emit_no_signals (secondary object) - {bmc,resource,system}::DumpEntry: defer_emit (primary object) - Manager: defer_emit (primary object)
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I91990031384230550903a46332adc04d691a3cb9
show more ...
|
#
ddc3366e |
| 19-Jul-2021 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Update dump create parameters
Dump create parameters are a set of parameters accepted in dict format while creating the dump. So far the values can be only strings but now unit64 also added. This co
Update dump create parameters
Dump create parameters are a set of parameters accepted in dict format while creating the dump. So far the values can be only strings but now unit64 also added. This commit address the changes to handle the updated dictionary
Testing: - Full build with interface change is successful - Created dumps with new interface Resource Dump: busctl --verbose call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/resource xyz.openbmc_project.Dump.Create CreateDump a{sv} 2 "com.ibm.Dump.Create.CreateParameters.VSPString" s "vsp" "com.ibm.Dump.Create.CreateParameters.Password" s "0" MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/resource/entry/1"; };
BMC Dump: busctl --verbose call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc xyz.openbmc_project.Dump.Create CreateDump a{sv} 0 MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/bmc/entry/92"; };
System Dump: busctl --verbose call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/system xyz.openbmc_project.Dump.Create CreateDump a{sv} 0 MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/system/entry/1"; };
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I37ab7d870954e1b52500f5975735286433fbb8df
show more ...
|
#
0af74a5e |
| 08-Apr-2021 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Update clang-format
Update to the latest OpenBMC clang-format.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com> Change-Id: I54010d3c756af4c85786285644038d449730612b
|
#
fef66a95 |
| 06-Sep-2020 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Create dump manager for each dump type.
Currently all types of dumps exist in the same path and under the single dump manager. When there are multiple dumps to be created separate path is needed for
Create dump manager for each dump type.
Currently all types of dumps exist in the same path and under the single dump manager. When there are multiple dumps to be created separate path is needed for creating and managing the dump. this commit is splitting the dump manager into multiple objects without adding any new functionality. There will be only one dump manager process but it will contain seperate dump manager objects for system and BMC dumps as per current scope.
Tested the existing dump functions with the build - created bmc dump - created system dump using notify - deleted dump entry - offloaded bmc dump
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Id4806660be1f1ba0b3cb6f840ae185a967f05a83
show more ...
|
#
bb410df7 |
| 03-Aug-2020 |
Ramesh Iyyar <rameshi1@in.ibm.com> |
build: Enabled meson build infrastructure
In this commit enabled meson build infrastructure which is taking less time than autotools to build.
Changes: - Same default value used for all build tim
build: Enabled meson build infrastructure
In this commit enabled meson build infrastructure which is taking less time than autotools to build.
Changes: - Same default value used for all build time configure option. - All external library checks are added into meson as well. - In meson, no need to mention list of files which are not required to install because, by default nothing will be installed. - Auto generated files are added into custom target and that will trigger when some target dependent with that. - In meson, enabled to treat warning as error so, modified few sources which are producing un-used variables. - Fixes made by removing those function parameters identifier alone.
By using meson, can able to see below built improvement time between meson and autotools.
meson: - time sh -c 'meson builddir -Dhost-dump-offload-transport=pldm -Dubifs-workaround=enabled; ninja -C builddir/' real 0m12.244s user 0m57.575s sys 0m7.793s
autotools: - time sh -c 'autoreconf -i; ./configure ${CONFIGURE_FLAGS} --enable-ubifs-workaround --with-host-dump-offload-transport=pldm; make' real 1m16.539s user 1m2.738s sys 0m9.645s
TestedBy: - meson builddir ninja -C builddir
- meson builddir -Dubifs-workaround=enabled ninja -C builddir
- meson builddir -Dubifs-workaround=disabled ninja -C builddir
- meson builddir -Dhost-dump-offload-transport=pldm ninja -C builddir
- meson builddir -Dhost-dump-offload-transport=pldm \ -Dubifs-workaround=enabled ninja -C builddir
Note: Need to update openbmc phosphor-debug-collector recipe to use meson instead autotools, this will be updated once this patch got merged and also autotools build infrastructure will be removed as well.
Change-Id: Iadf2d3542dc2556377e7b2f91f01b04d5f8d7218 Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
show more ...
|
#
33df5071 |
| 30-Jan-2020 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Implement Notify method
This commit implements notify method for notifying the creation of a new dump.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ieb4fa29965b3a93b3d
Implement Notify method
This commit implements notify method for notifying the creation of a new dump.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ieb4fa29965b3a93b3dafa2251f354c44ca12db46
show more ...
|
#
0deb287c |
| 12-Nov-2018 |
Marri Devender Rao <devenrao@in.ibm.com> |
Refactor to pass errors to watch through config YAML
Add errors to watch for through error YAML file Add support for checkstop error type
Tested: Generating dumps for elog, core, checkstop type err
Refactor to pass errors to watch through config YAML
Add errors to watch for through error YAML file Add support for checkstop error type
Tested: Generating dumps for elog, core, checkstop type errors.
Change-Id: Idd00ace2e3d0c472a74ec142e6d150e55e843a6f Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
show more ...
|
#
cb65ffce |
| 16-Oct-2018 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Enable clang code format
Change-Id: Ib640ef7cea99ff505965182ec9900a2d53a8986e Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
3c899a4d |
| 12-Sep-2017 |
Nagaraju Goruganti <ngorugan@in.ibm.com> |
Add implementation for delete all BMC Dumps in one shot
Resolves openbmc/openbmc#2255
Change-Id: I8383c55f0f55ac02e509d17c47bc66d326994301 Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
|
#
104f57cf |
| 09-Aug-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Enhancement of Dump cap algorithm
Added support for collecting mini dump data incase available dump size is less than maximum dump size. Introduced minimum dump size to achieve this.
Change-Id: I26
Enhancement of Dump cap algorithm
Added support for collecting mini dump data incase available dump size is less than maximum dump size. Introduced minimum dump size to achieve this.
Change-Id: I266ff6ea71443974a99f6f5fe54fb9f12c90f2ab Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
ab7f9209 |
| 02-Aug-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Cap the number of dumps
Calculate number of dumps allowed in a system based on individual dump Max size configured in the system.
Algorithm: Setting Dump size to maximum size, if (dump entries + ac
Cap the number of dumps
Calculate number of dumps allowed in a system based on individual dump Max size configured in the system.
Algorithm: Setting Dump size to maximum size, if (dump entries + active dumps) is less than total allowed dump entries. Otherwise return error.
Next patch will provide additional algorithm to cap the dump based on actual size of the dump files.
Change-Id: Id8916a31d72f5c2f2f23eaf68062b829b7e4100c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
ec608a54 |
| 01-Aug-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Add missing inotify flag in user initiated dump directory watch
Change-Id: Ie229e5704820071fa429f4c98e72a11a667e2b92 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
#
43096598 |
| 20-Jul-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Restore dump d-bus objects during daemon starts
Use the dump files in the persistant location to rebuild the d-bus objects.
Change-Id: Ia7b478649274a4681c802e11be4b2049eeed8e13 Signed-off-by: Jayan
Restore dump d-bus objects during daemon starts
Use the dump files in the persistant location to rebuild the d-bus objects.
Change-Id: Ia7b478649274a4681c802e11be4b2049eeed8e13 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
764d1b22 |
| 12-Jul-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Enable user initiated dump child directory level file watch
Change-Id: I38b1f0a06e96a465526ea1ac497e49dc5f778dd8 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
#
2dccfe43 |
| 12-Jul-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Rename BMC Dump path BMC_DUMP_FILE_DIR to BMC_DUMP_PATH.
Change-Id: I85974e00c31f5179106674ececeb53072008a83d Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
#
bcb174bd |
| 02-Jul-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Add support for user initiated BMC Dump
Added support for creating new dump entry d-bus objects for user request dump.
Change-Id: I31d2f478418e312e0aa6cc321a885498cf6ec6d6 Signed-off-by: Jayanth Ot
Add support for user initiated BMC Dump
Added support for creating new dump entry d-bus objects for user request dump.
Change-Id: I31d2f478418e312e0aa6cc321a885498cf6ec6d6 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
671fc7f3 |
| 14-Jun-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Add support for generic inotify based directory watch.
Watch a directory for the changes based on user configuration and then report changes to the user.
Change-Id: I9f53d3135dd4bff6187840c0c53d2a6
Add support for generic inotify based directory watch.
Watch a directory for the changes based on user configuration and then report changes to the user.
Change-Id: I9f53d3135dd4bff6187840c0c53d2a64509808cd Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
a320c7ca |
| 14-Jun-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
Implementation of create interface.
Both the external and internal Dump managers define "Create" interfaces. This commit implements these.
Change-Id: If857ec6ea7267fd72e9b420e6b44fa68b6abab66 Signe
Implementation of create interface.
Both the external and internal Dump managers define "Create" interfaces. This commit implements these.
Change-Id: If857ec6ea7267fd72e9b420e6b44fa68b6abab66 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|