5d86cdfb | 20-Aug-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
clang-tidy: Enable bugprone-string-literal-with-embedded-nul check
This check finds occurrences of string literal with embedded NUL character and validates their usage. The check is ignored on the l
clang-tidy: Enable bugprone-string-literal-with-embedded-nul check
This check finds occurrences of string literal with embedded NUL character and validates their usage. The check is ignored on the line because the test case has a requirement to verify if the NUL terminator is removed or not by the method.
Change-Id: I919bfed7d9c0b3a43933621bda32cd31c876ff02 Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
a34a64bb | 30-Mar-2022 |
Thu Nguyen <thu@os.amperecomputing.com> |
Support numeric effecters in dbus-to-host-effecter
Adds support of the numeric effecter PDR (section `28.11 Numeric Effecter PDR` DSP0248 V1.3.0) type in dbus-to-host-effecter handler. This handler
Support numeric effecters in dbus-to-host-effecter
Adds support of the numeric effecter PDR (section `28.11 Numeric Effecter PDR` DSP0248 V1.3.0) type in dbus-to-host-effecter handler. This handler will be applied for all PLDM termini but not only host. The setting for one numeric effecter of one device can be: { "mctp_eid": 20, "effecter_info": { "effecterPdrType": 9, "effecterID": 2, "entityType": 32903, "entityInstance": 2, "containerID": 2, "compositeEffecterCount": 1, "checkHostState": false }, "effecters": [ { "dbus_info": { "object_path": "/xyz/openbmc_project/sensors/power/A", "interface": "xyz.openbmc_project.Sensor.Value", "property_name": "Value", "property_type": "double" }, "effecterDataSize": 5, "resolution": 1, "offset": 0, "unitModifier": 0 } ] }
Where: + effecterPdrType to difference state/numeric effecter type. Default is state effecter. + effecterID should be effecter ID and should not empty. + checkHostState can be set to false to bypass checking host state. + effecterDataSize, resolution, offset, unitModifier are from numeric effecter PDR (section `28.11 Numeric Effecter PDR` DSP0248 V1.3.0)
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I438d7f204643edd4066e8a6ba28d53a97503fc4b
show more ...
|
3d3e8184 | 19-Jun-2024 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
common: test: Add gmock dependency to generated targets
Fixes the following error when building with gmock supplied by subproject:
``` FAILED: common/test/pldm_utils_test.p/pldm_utils_test.cpp.o cc
common: test: Add gmock dependency to generated targets
Fixes the following error when building with gmock supplied by subproject:
``` FAILED: common/test/pldm_utils_test.p/pldm_utils_test.cpp.o ccache c++ -Icommon/test/pldm_utils_test.p -I../subprojects/googletest/googletest/include -I../subprojects/googletest/googletest -Isubprojects/googletest/__CMake_build -I../subprojects/googletest/__CMake_build -Isubprojects/googletest -I../subprojects/googletest -Isubprojects/phosphor-dbus-interfaces/gen -I../subprojects/phosphor-dbus-interfaces/gen -I../subprojects/sdbusplus/include -Isubprojects/phosphor-logging/lib/include -I../subprojects/phosphor-logging/lib/include -I. -I.. -I/usr/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++23 -O2 -g -Wno-psabi -DLIBPLDMRESPONDER -DOEM_IBM -include /home/andrew/src/openbmc.org/openbmc/pldm/build/config.h -DBOOST_ASIO_DISABLE_THREADS -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -pthread -isystem../subprojects/nlohmann_json/single_include -isystem../subprojects/libpldm/include -isystemsubprojects/libpldm/include -isystem../subprojects/googletest/googletest -isystem../subprojects/googletest/googletest/include -MD -MQ common/test/pldm_utils_test.p/pldm_utils_test.cpp.o -MF common/test/pldm_utils_test.p/pldm_utils_test.cpp.o.d -o common/test/pldm_utils_test.p/pldm_utils_test.cpp.o -c ../common/test/pldm_utils_test.cpp In file included from ../common/test/pldm_utils_test.cpp:2: ../common/test/mocked_utils.hpp:3:10: fatal error: gmock/gmock.h: No such file or directory 3 | #include <gmock/gmock.h> | ^~~~~~~~~~~~~~~ compilation terminated. ```
Change-Id: I56cedd3df2d07f850fc0d13599ed52f99981e35b Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
3ca40453 | 04-Oct-2021 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Remove PDR's based on Terminus Handle
The current pldm infrastructure is written in way that it deletes all the PDR's which are marked as "remote",when we get a PDR refresh entire repository signal
Remove PDR's based on Terminus Handle
The current pldm infrastructure is written in way that it deletes all the PDR's which are marked as "remote",when we get a PDR refresh entire repository signal comes from remote PLDM terminus,this does not work in muti-host scenario where BMC talks to more than one HOST that talks pldm.
When a repository refresh signal comes form a remote PLDM terminus, BMC is supposed to only delete the PDR's corresponding to the same PLDM terminus.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I51f77c3f9537da722a00d97070674958c5baf1b4
show more ...
|