createDump: Add Originator info as additional parameter

This commit adds "OriginatorId" & "OriginatorType" of the
"xyz.openbmc_project.Common.OriginatedBy" interface as
additional parameter in the createDump dbus call.

The "AdditionalData" parameter in createDump call will
be in a key-value format and the key in this case would be
"xyz.openbmc_project.Common.OriginatorId"; the value
would be any unique identifier of the user/component that
initiated the dump. This is an optional parameter and will be
implemented for user-triggered dumps.

The createDump dbus call with OriginatorId will now look like:
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 "<originatorType>"

Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com>
Change-Id: I220f20077fc069f798b40583b8918695e18152c2
1 file changed
tree: 555501ac5795d0f20444168e0b21c3d6dd1140f5
  1. gen/
  2. subprojects/
  3. yaml/
  4. .editorconfig
  5. .gitignore
  6. .markdownlint.yaml
  7. .prettierrc.yaml
  8. .shellcheck
  9. LICENSE
  10. MAINTAINERS
  11. meson.build
  12. meson_options.txt
  13. OWNERS
  14. README.md
README.md

phosphor-dbus-interfaces

YAML descriptors of standard D-Bus interfaces. The format is described by the sdbusplus binding generation tool sdbus++.

Building

This project can be built with meson. The typical meson workflow is: meson builddir && ninja -C builddir.

The meson files used to handle the YAML files are automatically generated and found under the gen subdirectory. When adding or removing YAML files, this must be regenerated. This can be done with the helper script found in the gen subdirectory: cd gen && ./regenerate-meson.

Configuration

Only the xyz/openbmc_project and org/freedesktop interfaces are built by default. Other interfaces can be enabled by meson options:

  • com/ibm - -Ddata_com_ibm=true
  • org/open_power - -Ddata_org_open_power=true

Example: meson builddir -Ddata_com_ibm=true && ninja -C builddir

References