Add entity-objects D-Bus objects to dump
There are some associations that are useful for debug and just getting
them from entity-manager as opposed to the mapper is less resource
intensive and takes up a smaller amount of space in the dump.
Tested:
The file and the data are in the dump:
```
~/BMCDUMP.XXXXXXX.00000000.20250226205426_out/archive$ head emobjects.log
MESSAGE "a{oa{sa{sv}}}" {
ARRAY "{oa{sa{sv}}}" {
DICT_ENTRY "oa{sa{sv}}" {
OBJECT_PATH "/xyz/openbmc_project/inventory/system/board/Ingraham_Board";
ARRAY "{sa{sv}}" {
DICT_ENTRY "sa{sv}" {
STRING "org.freedesktop.DBus.Peer";
ARRAY "{sv}" {
};
};
```
Change-Id: I612b59b1a0d9483b33beae05f04ab82eafbe72cf
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/.shellcheck-ignore b/.shellcheck-ignore
index 5ecff7a..8c6e699 100644
--- a/.shellcheck-ignore
+++ b/.shellcheck-ignore
@@ -8,6 +8,7 @@
dump/tools/bmcdump/plugins/phal_devtree
dump/tools/bmcdump/plugins/vpd_data
dump/tools/bmcdump/plugins/faultlog
+dump/tools/bmcdump/plugins/emobjects
dump/tools/bmcdump/scripts/package
dump/tools/common/include/gendumpheader
dump/tools/common/include/gendumpinfo
diff --git a/dump/tools/bmcdump/plugins/emobjects b/dump/tools/bmcdump/plugins/emobjects
new file mode 100644
index 0000000..4e3a318
--- /dev/null
+++ b/dump/tools/bmcdump/plugins/emobjects
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+#
+# config: 2 20
+# @brief: Dump entity-manager
+#
+
+# shellcheck disable=SC1091
+. "$DREPORT_INCLUDE"/functions
+
+file_name="emobjects.log"
+
+desc="entity manager objects"
+command="busctl call --verbose --no-pager \
+ xyz.openbmc_project.EntityManager \
+ /xyz/openbmc_project/inventory \
+ org.freedesktop.DBus.ObjectManager \
+ GetManagedObjects"
+
+add_cmd_output "$command" "$file_name" "$desc";
diff --git a/dump/tools/bmcdump/plugins/meson.build b/dump/tools/bmcdump/plugins/meson.build
index 56ba0cc..efa9e7d 100644
--- a/dump/tools/bmcdump/plugins/meson.build
+++ b/dump/tools/bmcdump/plugins/meson.build
@@ -10,3 +10,4 @@
plugins_to_install += meson.current_source_dir() / 'phal_devtree'
plugins_to_install += meson.current_source_dir() / 'vpd_data'
plugins_to_install += meson.current_source_dir() / 'faultlog'
+plugins_to_install += meson.current_source_dir() / 'emobjects'