commit | 2f8e276c0b61f39f0fc197acef778149476fbd89 | [log] [tgz] |
---|---|---|
author | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Thu Feb 11 07:22:35 2021 -0600 |
committer | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Fri Feb 12 01:44:30 2021 -0600 |
tree | f106d79f4371f04155461efaa1da7d44c4d8cd45 | |
parent | e22aca712e024a8989d4d0f2c6235513abb06d13 [diff] |
Move emit_object_added to respective dump entry classes The emit_object_added was added in the base entry class so all information was not present in the InterfaceAdded. In the below example the VSP String and password are null To fix this moved emit_object_added to derived classes so InterfaceAdded signal will come only after the creation of complete object. Without fix: Sender=:1.41 Path=/xyz/openbmc_project/dump Interface=org.freedesktop.DBus.ObjectManager Member=InterfacesAdded UniqueName=:1.41 MESSAGE "oa{sa{sv}}" { OBJECT_PATH "/xyz/openbmc_project/dump/resource/entry/1"; ARRAY "{sa{sv}}" { DICT_ENTRY "sa{sv}" { STRING "org.freedesktop.DBus.Peer"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "org.freedesktop.DBus.Introspectable"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "org.freedesktop.DBus.Properties"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Time.EpochTime"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "Elapsed"; VARIANT "t" { UINT64 0; }; }; }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Object.Delete"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Dump.Entry"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "Size"; VARIANT "t" { UINT64 0; }; }; DICT_ENTRY "sv" { STRING "Offloaded"; VARIANT "b" { BOOLEAN false; }; }; DICT_ENTRY "sv" { STRING "OffloadUri"; VARIANT "s" { STRING ""; }; }; }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Common.Progress"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "Status"; VARIANT "s" { STRING "xyz.openbmc_project.Common.Progress.OperationStatus.InProgress"; }; }; DICT_ENTRY "sv" { STRING "StartTime"; VARIANT "t" { UINT64 1612968832; }; }; DICT_ENTRY "sv" { STRING "CompletedTime"; VARIANT "t" { UINT64 0; }; }; }; }; DICT_ENTRY "sa{sv}" { STRING "com.ibm.Dump.Entry.Resource"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "SourceDumpId"; VARIANT "u" { UINT32 0; }; }; DICT_ENTRY "sv" { STRING "VSPString"; VARIANT "s" { STRING ""; }; }; DICT_ENTRY "sv" { STRING "Password"; VARIANT "s" { STRING ""; }; }; }; }; }; }; With Fix: Type=signal Endian=l Flags=1 Version=1 Cookie=68 Sender=:1.286 Path=/xyz/openbmc_project/dump Interface=org.freedesktop.DBus.ObjectManager Member=InterfacesAdded UniqueName=:1.286 MESSAGE "oa{sa{sv}}" { OBJECT_PATH "/xyz/openbmc_project/dump/resource/entry/4"; ARRAY "{sa{sv}}" { DICT_ENTRY "sa{sv}" { STRING "org.freedesktop.DBus.Peer"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "org.freedesktop.DBus.Introspectable"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "org.freedesktop.DBus.Properties"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Time.EpochTime"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "Elapsed"; VARIANT "t" { UINT64 0; }; }; }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Object.Delete"; ARRAY "{sv}" { }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Dump.Entry"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "Size"; VARIANT "t" { UINT64 0; }; }; DICT_ENTRY "sv" { STRING "Offloaded"; VARIANT "b" { BOOLEAN false; }; }; DICT_ENTRY "sv" { STRING "OffloadUri"; VARIANT "s" { STRING ""; }; }; }; }; DICT_ENTRY "sa{sv}" { STRING "xyz.openbmc_project.Common.Progress"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "Status"; VARIANT "s" { STRING "xyz.openbmc_project.Common.Progress.OperationStatus.InProgress"; }; }; DICT_ENTRY "sv" { STRING "StartTime"; VARIANT "t" { UINT64 1612972013; }; }; DICT_ENTRY "sv" { STRING "CompletedTime"; VARIANT "t" { UINT64 0; }; }; }; }; DICT_ENTRY "sa{sv}" { STRING "com.ibm.Dump.Entry.Resource"; ARRAY "{sv}" { DICT_ENTRY "sv" { STRING "SourceDumpId"; VARIANT "u" { UINT32 4294967295; }; }; DICT_ENTRY "sv" { STRING "VSPString"; VARIANT "s" { STRING "vsp"; }; }; DICT_ENTRY "sv" { STRING "Password"; VARIANT "s" { STRING "pass0"; }; }; }; }; }; }; Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I7c5a42bf1df9b38ad4cd086571c34dbef62da1b4
Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.
To build this package with meson, do the following steps:
1. meson builddir 2. ninja -C builddir
To clean the built files run ninja -C builddir clean
.
Tests can be run in the CI docker container, refer local-ci-build
or with an OpenBMC x86 sdk(see below for x86 steps).
meson -Doe-sdk=enabled -Dtests=enabled build ninja -C build test