Add hostboot dump entry interface and parameters
Add the interface for hostboot dump entry and other parameters
to initiate a hostboot dump.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I711458c7c8b178e1d6bea063dfcca6c879905652
diff --git a/com/ibm/Dump/Create.interface.yaml b/com/ibm/Dump/Create.interface.yaml
index 4ab4522..331d71f 100644
--- a/com/ibm/Dump/Create.interface.yaml
+++ b/com/ibm/Dump/Create.interface.yaml
@@ -5,7 +5,7 @@
enumerations:
- name: CreateParameters
- description:
+ description: >
Additional parameters for creating the dump.
values:
- name: 'VSPString'
@@ -18,3 +18,19 @@
- name: 'Password'
description: >
The password for authenticating the resource dump request.
+ - name: 'ErrorLogId'
+ description: >
+ The id of the log associated with action which triggered the
+ dump.
+ - name: 'DumpType'
+ description: >
+ Type of the dump to be collected
+
+ - name: DumpType
+ description: >
+ Type of the host dump to be collected.
+ values:
+ - name: 'Hostboot'
+ description: >
+ Hostboot dump is collected during a boot failure during the
+ hostboot booting phase.
diff --git a/com/ibm/Dump/Entry/Hostboot.interface.yaml b/com/ibm/Dump/Entry/Hostboot.interface.yaml
new file mode 100644
index 0000000..da8a0f6
--- /dev/null
+++ b/com/ibm/Dump/Entry/Hostboot.interface.yaml
@@ -0,0 +1,6 @@
+description: >
+ Implement this to add Hostboot dump management.
+
+ Hostboot dump collects memory and hardware states
+ in the case of a failure during hostboot booting
+ phase.
diff --git a/gen/com/ibm/Dump/Entry/Hostboot/meson.build b/gen/com/ibm/Dump/Entry/Hostboot/meson.build
new file mode 100644
index 0000000..8d10a84
--- /dev/null
+++ b/gen/com/ibm/Dump/Entry/Hostboot/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'com/ibm/Dump/Entry/Hostboot__cpp'.underscorify(),
+ input: [ meson.source_root() / 'com/ibm/Dump/Entry/Hostboot.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'com/ibm/Dump/Entry/Hostboot',
+ ],
+)
+
diff --git a/gen/com/ibm/Dump/Entry/meson.build b/gen/com/ibm/Dump/Entry/meson.build
index 420ca04..0b7b658 100644
--- a/gen/com/ibm/Dump/Entry/meson.build
+++ b/gen/com/ibm/Dump/Entry/meson.build
@@ -1,4 +1,19 @@
# Generated file; do not modify.
+subdir('Hostboot')
+generated_others += custom_target(
+ 'com/ibm/Dump/Entry/Hostboot__markdown'.underscorify(),
+ input: [ meson.source_root() / 'com/ibm/Dump/Entry/Hostboot.interface.yaml', ],
+ output: [ 'Hostboot.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'com/ibm/Dump/Entry/Hostboot',
+ ],
+ build_by_default: true,
+)
+
subdir('Resource')
generated_others += custom_target(
'com/ibm/Dump/Entry/Resource__markdown'.underscorify(),