| commit | 91ad1a34f1d3f1c65f4aeb2b8776ff6c61b151ab | [log] [tgz] |
|---|---|---|
| author | Marshall Zhan <marshall.zhan.wiwynn@gmail.com> | Wed Jan 14 09:52:20 2026 +0000 |
| committer | ManojKiran Eda <manojkiran.eda@gmail.com> | Tue Feb 10 06:14:34 2026 +0000 |
| tree | 5df6b43a69ac7f6987917699592ae9870e9bc79d | |
| parent | 8c96e1e501e66cbf98c88b7b82b6ad1c37c5f509 [diff] |
pldm: add ObjectManager for metric sensors
When pldmd adds a new metric sensor,
it will register it to the ObjectMapper.
Tested:
busctl introspect xyz.openbmc_project.PLDM /xyz/openbmc_project/metric
NAME TYPE SIGNATURE RESULT/VALUE F
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.ObjectManager interface - - -
.GetManagedObjects method - a{oa{sa{sv}}} -
.InterfacesAdded signal oa{sa{sv}} - -
.InterfacesRemoved signal oas - -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
Change-Id: I1a84696aea6e5c5cca09b754ee3a302eb499d5b5
Signed-off-by: Marshall Zhan <marshall.zhan.wiwynn@gmail.com>
PLDM (Platform Level Data Model) is a key component of the OpenBMC project, providing a standardized data model and message formats for various platform management functionalities. It defines a method to manage, monitor, and control the firmware and hardware of a system.
The OpenBMC PLDM project aims to implement the specifications defined by the Distributed Management Task Force (DMTF), allowing for interoperable management interfaces across different hardware and firmware components.
To build and run PLDM, you need the following dependencies:
MesonNinjaAlternatively, source an OpenBMC ARM/x86 SDK.
To build the PLDM project, follow these steps:
meson setup build && meson compile -C build
The simplest way of running the tests is as described by the meson man page:
meson test -C build
Alternatively, tests can be run in the OpenBMC CI docker container using these steps.
pldm daemon accepts a command line argument --verbose or --v or -v to enable the daemon to run in verbose mode. It can be done via adding this option to the environment file that pldm service consumes.
echo 'PLDMD_ARGS="--verbose"' > /etc/default/pldmd systemctl restart pldmd
rm /etc/default/pldmd systemctl restart pldmd
For complete documentation on the functionality and usage of this repository, please refer to the docs folder.