| #
76fe0d1f
|
| 14-May-2025 |
Patrick Williams <patrick@stwcx.xyz> |
tools: add gen-eventfilter.py
Generate event filtering code for lg2::commit from an input json file, so that system integrators can create default filtering rules to omit undesired events and errors
tools: add gen-eventfilter.py
Generate event filtering code for lg2::commit from an input json file, so that system integrators can create default filtering rules to omit undesired events and errors from their systems.
Tested:
Used `log-create` to create an event and observed it. Modified the default event filter as follows and saw log was not created.
``` @@ -3,6 +3,9 @@ "default": "allowed" }, "errors": { - "default": "allowed" + "default": "allowed", + "ids": [ + "xyz.openbmc_project.State.SMC.SMCFailed" + ] } } ```
``` $ ./builddir/log-create xyz.openbmc_project.State.SMC.SMCFailed --json '{ "IDENTIFIER": "/xyz/openbmc_project/inventory/SomeSMC", "FAILURE_TYPE": "Timeout for the SMC" }' ```
Change-Id: Ib6041481075758b994bb27a816dbf5e9f26c2841 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
| #
6eb96bf7
|
| 05-Nov-2024 |
Patrick Williams <patrick@stwcx.xyz> |
lg2: commit: add support for journal-only method
The design document for the new event system references an option to log events to the journal rather than to dbus[1] using the 'OPENBMC_MESSAGE_ID'
lg2: commit: add support for journal-only method
The design document for the new event system references an option to log events to the journal rather than to dbus[1] using the 'OPENBMC_MESSAGE_ID' identifier. Add support and test cases for this as a meson option.
[1]: https://github.com/openbmc/docs/blob/master/designs/event-logging.md#phosphor-logging
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6cb94453c6cc95a9ccbbbc11859b70ef12d375fd
show more ...
|
| #
96765ba0
|
| 15-Aug-2023 |
George Liu <liuxiwei@inspur.com> |
meson_options.txt: Support for reading options from meson.options
Support has been added for reading options from meson.options instead of meson_options.txt[1]. These are equivalent, but not using t
meson_options.txt: Support for reading options from meson.options
Support has been added for reading options from meson.options instead of meson_options.txt[1]. These are equivalent, but not using the .txt extension for a build file has a few advantages, chief among them many tools and text editors expect a file with the .txt extension to be plain text files, not build scripts.
[1] https://mesonbuild.com/Release-notes-for-1-1-0.html#support-for-reading-options-from-mesonoptions
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I96388417db1a5c375ad831e6cdf5e7f33b5dd2ae
show more ...
|