summaryrefslogtreecommitdiffstats
path: root/log_manager_main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use sdeventplusMatt Spinler2019-07-161-7/+4
| | | | | | | | Start using the sdeventplus event mechanisms so that future code can take advantage of it for things like timers and other events. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I6ffe80266257bfd3512a5b848c47f5ccfb5206e8
* OpenPower PEL Extension support frameworkMatt Spinler2019-07-161-0/+15
| | | | | | | | | | | | | | | | | | | | | | The goal of extensions is to extend phosphor-logging's `xyz.openbmc_project.Logging.Entry` log support to allow other log formats to be created without incurring extra D-Bus call overhead. The README.md change in this commit provides additional documentation on how extensions work. The summary is that they allow code that resides in this repository to provide functions that can be called at certain points (startup, log creation/deletion) such that the code can then create their own logs based on the contents of an OpenBMC log. A specific extension's code is compiled in using a --enable configure option, so platforms that did not use those log formats would incur no performance/size penalties. This commit provides the support for extensions, plus a basic OpenPower PEL (Platform Event Log) extension as the first extension. PELs are event logs used only on some OpenPower systems. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ifbb31325261c157678c29bbebc7f6d32d282582f
* add .clang-formatPatrick Venture2018-10-261-5/+7
| | | | | Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52 Signed-off-by: Patrick Venture <venture@google.com>
* Add implementation for delete all error log entries in one shotNagaraju Goruganti2017-09-131-2/+4
| | | | | | | Resolves openbmc/openbmc#1561. Change-Id: Iac5aaee1bdf9b87ccce9bf8801468ac5a8f9be6c Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Persist error d-bus objectsDeepak Kodihalli2017-06-261-0/+7
| | | | | | | | | | | | Use Cereal to implement serialization and de-serialization of properties of error d-bus objects. Serialize and persist error d-bus objects as they are put on the bus. De-serialize and restore them (if persistent ones exist) when phosphor-log-manager starts up. Change-Id: I1f5df1abbe74bfdb86e3e82a78ff7115e90e2112 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add ObjectManager to the root path of the log managerAdriana Kobylak2017-02-221-2/+2
| | | | | | | | | | | | The ObjectManager needs to be added to the top most path of the dbus objects that it manages, so need to initialize it with Logging/ and it'd manage the Logging/Internal/ and Logging/Entry/ objects. Fixes openbmc/openbmc#1170. Change-Id: Ie659a2deaed2967ebca326a86b2e7fd7e637f784 Signed-off-by: Adriana Kobylak <anoo@linux.vnet.ibm.com>
* Entry: Populate propertiesAdriana Kobylak2017-02-141-3/+0
| | | | | | | | Create an Entry dbus object when Commit is called and fill in its properties with the journal data. Change-Id: I155cacbdfdccfa8b1f594503d858710fa71f2026 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* log_manager: Cleanup main functionAdriana Kobylak2017-01-301-15/+20
| | | | | | | | The design direction changed after the commit that added the log_manager main function, so updating it to the correct usage. Change-Id: I88459fb65ba6b8272f0f9f85b55f9f837487ffea Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Update log manager busname to match its systemd unit fileAdriana Kobylak2017-01-121-2/+2
| | | | | Change-Id: I9431b7d3df37fe92adaa9acb5172c8cfcdb38e4e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* log_manager: Use sdbus++Adriana Kobylak2016-12-081-0/+22
Change-Id: Id2ad6a75b6ee3f7226c7cfd274dba24de89f9363 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
OpenPOWER on IntegriCloud