#
ea21d995 |
| 22-Nov-2024 |
Patrick Williams <patrick@stwcx.xyz> |
entry: use map for metadata in ctor
Transition the entry constructor to use the `map<string,string>` rather than the `vector<string>`.
Tested: UTs pass and daemon still creates logs.
Signed-off-by
entry: use map for metadata in ctor
Transition the entry constructor to use the `map<string,string>` rather than the `vector<string>`.
Tested: UTs pass and daemon still creates logs.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Icf3ead163cc99a1498734d33335fb6da52e6c98c
show more ...
|
#
fa2d962b |
| 30-Sep-2024 |
Patrick Williams <patrick@stwcx.xyz> |
log-manager: enable non-standard path for local tests
Enable the log-manager to be launched with a path other than `/var/phosphor-logging` to allow it to be ran on a development system for test purp
log-manager: enable non-standard path for local tests
Enable the log-manager to be launched with a path other than `/var/phosphor-logging` to allow it to be ran on a development system for test purposes. This required some refactoring throughout as to how paths were handled.
Tested:
After running tests, `/tmp/phosphor-logging` is populated with entries. Launching `./builddir/phosphor-log-manager /tmp/phosphor-logging`, the log-manager will have the entries on dbus:
``` $ busctl --user tree xyz.openbmc_project.Logging └─ /xyz └─ /xyz/openbmc_project └─ /xyz/openbmc_project/logging ├─ /xyz/openbmc_project/logging/entry │ ├─ /xyz/openbmc_project/logging/entry/100 │ ├─ /xyz/openbmc_project/logging/entry/101 │ ├─ /xyz/openbmc_project/logging/entry/102 │ ├─ /xyz/openbmc_project/logging/entry/103 ```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I84968edeed0dcf73aaf8bb653060b6d3400b9b7b
show more ...
|
#
2544b419 |
| 04-Oct-2022 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update with latest
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I329396457b83bb2eb8740629b4ac1fbe9106bced
|
#
45e83521 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ibc25db433a6926f7ee43ea83312c3ac14f480c33
show more ...
|
#
fb978da4 |
| 21-Jan-2022 |
Matt Spinler <spinler@us.ibm.com> |
Pull file path into elog Entry constructor
The path property on the FilePath interfaces was previously being set after the entry object was created, sending a properties changed signal after the int
Pull file path into elog Entry constructor
The path property on the FilePath interfaces was previously being set after the entry object was created, sending a properties changed signal after the interfaces added signal.
Since the path can be known at the time the entry is constructed, pass it into the constructor instead so no extra signal will be sent.
Change-Id: I1150236d23cecb1df78e3fb4ae641c75b488af37
show more ...
|
#
72a1cca2 |
| 10-Sep-2020 |
Andrew Geissler <geissonator@yahoo.com> |
quiesce: ensure only one block per entry id
There are situations in the extensions path where a single BMC entry id may be passed into the quiesce logic multiple times. Ensure only one boot blocking
quiesce: ensure only one block per entry id
There are situations in the extensions path where a single BMC entry id may be passed into the quiesce logic multiple times. Ensure only one boot blocking quiesce entry is created per entry id.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I44dc307117370e521fa97f9b782df99cc535bf33
show more ...
|
#
32874543 |
| 09-Jul-2020 |
Andrew Geissler <geissonator@yahoo.com> |
quiesce: use entry id for interface
Extension code does not have the Entry object as an input parameter. The quiesce interface should not require an Entry object. Refactor the code a bit to allow fo
quiesce: use entry id for interface
Extension code does not have the Entry object as an input parameter. The quiesce interface should not require an Entry object. Refactor the code a bit to allow for this.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I5caee881dae3d6c22f4f619af5acd3e3e33379aa
show more ...
|
#
ce9fe693 |
| 16-Jun-2020 |
Andrew Geissler <geissonator@yahoo.com> |
ensure persist dir created for quiesce tests
Some of the quiesce tests require the persist directory be available
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ibbe67e9ac2c51b0f
ensure persist dir created for quiesce tests
Some of the quiesce tests require the persist directory be available
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ibbe67e9ac2c51b0f718112161094904d2a0c6fd5
show more ...
|
#
7f6d4bcf |
| 16-Apr-2020 |
Andrew Geissler <geissonator@yahoo.com> |
boot-block: clear block on error resolve
If the blocking error is resolved then remove the blocking object and it's property change callback
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> C
boot-block: clear block on error resolve
If the blocking error is resolved then remove the blocking object and it's property change callback
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I9acb844ef273e8390b4f5283f234990b3c008e70
show more ...
|
#
ced6e2a0 |
| 07-Apr-2020 |
Andrew Geissler <geissonator@yahoo.com> |
boot-block: remove blocking error on erase
When an entry is erased, remove it from the blocking array. This will result in the d-bus object at the /xyz/openbmc_project/logging/blockX path being dele
boot-block: remove blocking error on erase
When an entry is erased, remove it from the blocking array. This will result in the d-bus object at the /xyz/openbmc_project/logging/blockX path being deleted as well.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ib49073532588d25c4ae357917ecd6339a70d8c1e
show more ...
|
#
6a0ef6f5 |
| 06-Apr-2020 |
Andrew Geissler <geissonator@yahoo.com> |
boot-block: create d-bus block object on callout
If the QuiesceOnHwError is set and a callout is present in the Entry then create the new block object and the xyz.openbmc_project.Logging.ErrorBlocks
boot-block: create d-bus block object on callout
If the QuiesceOnHwError is set and a callout is present in the Entry then create the new block object and the xyz.openbmc_project.Logging.ErrorBlocksTransition interface.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I9aea289ab7cc8dc7649820ff54edc8c04ecb3ef5
show more ...
|
#
e4960ee7 |
| 30-Mar-2020 |
Andrew Geissler <geissonator@yahoo.com> |
boot-block: look for a callout in the entry
phosphor-logging callouts always start with a CALLOUT_ in the additional data entry. Look for this to determine if a callout is present in the log.
Signe
boot-block: look for a callout in the entry
phosphor-logging callouts always start with a CALLOUT_ in the additional data entry. Look for this to determine if a callout is present in the log.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I721e794dc4610a18705e1b0d75e545b14f844402
show more ...
|