summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Increase maximum log number from 100 to 200Andrew Geissler2017-12-151-1/+1
| | | | | | | | | | Utilization of the persistent filesystem in BMC has shown that there is room to double the number of error logs allowed on BMC systems. This increased size will assist in debugging of intermittent issues that occur over time. Change-Id: I81d5ff4ed42822b6a37779b5d190ad405df1a87d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Handle more than 100 error logsNagaraju Goruganti2017-10-241-0/+5
| | | | | | | | | | | Added new Cap for info(and below) severity errors, if cap size reaches, next commited error of severity:info(and below) will replace the first entry of severity:info(and below). Resolves openbmc/openbmc#2381 Change-Id: I2e56c28a934bf3139e57b36d252bd5ad3e1dd90f Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Remove conditional check to export parser and mako scriptMarri Devender Rao2017-10-131-3/+1
| | | | | | | | | | | | | As part of the CI build noticed elog parser and mako script are not exported becuse of conditional check in the Makefile. Removed conditional check so that files are exported all the time. Conditional check works for bitbake build as the conditional value is set for native recipe build. Change-Id: I65a020757b7176e299af70a8ba9a647b415891be Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Fix configure option for build breakMarri Devender Rao2017-10-121-2/+2
| | | | | Change-Id: I2dc3f5e7c3d104f5d9152b7c44f77068a162e94a Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Install elog parser and mako script for native processingMarri Devender Rao2017-10-111-19/+30
| | | | | | | | Installed elog parser and mako scripts are used by repositories to build elog-errors.hpp for local application specific errors Change-Id: I2353185d28db59b052d2167d6f37f1b385978bb3 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Enable Cereal class versioningVishwanatha Subbanna2017-10-111-0/+4
| | | | | | | | | Cereal class versioning helps to handle data de-serialization across different class versions that differ in the way, a particular data is serialized. Change-Id: Ica01c4cb0c213e0dca8824fcfcfaa5cb43c5bc2e Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Implement a cap on the number of committed errorsMarri Devender Rao2017-08-161-0/+4
| | | | | | | Resolves openbmc/openbmc#1617 Change-Id: I5850e5addb723e6f5102eb4677bb365285c1a633 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Persist error d-bus objectsDeepak Kodihalli2017-06-261-0/+6
| | | | | | | | | | | | 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>
* build: add configure flag for metadata handlersDeepak Kodihalli2017-03-291-0/+6
| | | | | | | | | Error metadata handlers are compiled based on a specific compile flag (-DPROCESS_META), which in turn is set if a configure flag is enabled (--enable-metadata-processing). Change-Id: I77319f38cfd219bb831f9a3ee731441211e7bb9b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* callouts: implement metadata handlerDeepak Kodihalli2017-03-151-0/+3
| | | | | | | | Implement handler of the metadata CALLOUT_DEVICE_PATH. This handler will convert a device path to an inventory path and call out the latter. Change-Id: Icbf9c841884ec139f35ea2ac94648e355b421bb2 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* build: add rule to generate callout mappingsDeepak Kodihalli2017-03-151-0/+3
| | | | | | | | | The callout mappings are generated at build time by a script, which needs an input YAML file. This change enables providing such a YAML file by the phosphor-logging recipe. Change-Id: I8e174d60e37eabb6d26ff7822ab5c9f38d35e0a6 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Use configure option yaml path to generate elog-errors.hppAdriana Kobylak2017-03-011-0/+8
| | | | | | | | | | | | Add a config variable that can be passed via a recipe to point the parser to a directory where the error yaml files are. Rename elog-gen.hpp to elog-errors.hpp, which better matches the exception error log file names. Include elog-gen.hpp in elog.hpp so that callers that need to create and commit error logs only need to include one header file. Change-Id: Ie3cd65ac761c1f7b2c99c50a2273859283a5ab4b Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Manager: Auto-generate the codeAdriana Kobylak2017-02-271-6/+6
| | | | | | | | | | Auto-generate the Manager code during build time using the sdbus++ tool. Closes: openbmc/phosphor-logging#1 Change-Id: Idb66725dc2b3a919981dc1a0acfebfde16c4420f Signed-off-by: Adriana Kobylak <anoo@linux.vnet.ibm.com>
* Make phosphor-logging object paths lower-caseAdriana Kobylak2017-02-231-3/+3
| | | | | | | Per design direction, all dbus object paths should be lower-case. Change-Id: I444e981a91b5269b6af3642d5771a64324acfd7c Signed-off-by: Adriana Kobylak <anoo@linux.vnet.ibm.com>
* Add ObjectManager to the root path of the log managerAdriana Kobylak2017-02-221-0/+1
| | | | | | | | | | | | 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>
* build: Add pkg-config for clientsBrad Bishop2017-02-131-6/+8
| | | | | | | | | Provide a pkg-config for clients using our headers. Partially resolves openbmc/openbmc#1106 Change-Id: I185da26a0034b4bb315d2b279c776eea87c14a82 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Entry: Link to phosphor-dbus-interfacesAdriana Kobylak2017-02-091-0/+2
| | | | | | | | Link to libphosphor_dbus.so so that the Entry code is auto-generated. Change-Id: I845d083456a1094a49f773b3ec64240d4515b3ac Signed-off-by: Adriana Kobylak <anoo@linux.vnet.ibm.com>
* logging: Create Entry dbus interfaceAdriana Kobylak2017-01-301-4/+8
| | | | | | | | Implement the generated code to create an error/event entry dbus object. Change-Id: I881636fe3e8de680d9a15fff1fe933d5e22eed06 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* logging: Commit: Use transaction id and metadata lookupAdriana Kobylak2017-01-301-0/+3
| | | | | | | | | | Add the lookup mako target to the makefile to get it built. Use the lookup map to find the metadata that needs to be added to the error log. Use the transaction id to filter for the desired journal entries. Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Change-Id: Ia57dc83aab4f7ee35f8de32a799c862be28113f7
* Log transaction id on each journal entryAdriana Kobylak2017-01-301-0/+2
| | | | | | | | | For each journal entry, add the transaction id for the process that called the log interface. This will be used to identify all the journal entries associated with a dbus message. Change-Id: Id934253bd77a517315e6cdba01a8ac819ad95b52 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Add in sdbusplus dependencyAndrew Geissler2017-01-181-1/+3
| | | | | Change-Id: I414c2842840b0d623966f92b3a79d3223b52b299 Signed-off-by: Andrew Geissler <andrewg@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-1/+6
| | | | | Change-Id: Id2ad6a75b6ee3f7226c7cfd274dba24de89f9363 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Add in test case which validates elog client interfaceAndrew Geissler2016-10-311-1/+24
| | | | | Change-Id: I5c5f7a550a8f272251893ff616408c41d32281f9 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Error / Event Log FrameworkAdriana Kobylak2016-10-311-0/+25
Framework to create an error log entry based on information from the journal log. 1. elog.yaml - User defined reason codes for error scenarios that include description, priority level, and desired metadata fields. 2. elog_parser.py - Parser for the yaml file 3. elog-gen.hpp - Auto-generated file based created by the parser that includes the error log structures. Including for now for ref. 4. elog.hpp - Error log template to create (log a journal log entry with the predefined error log information). Usage: elog<RC>(NAME(value), prev_entry<NAME>()...) where RC - Reason code, NAME - metadata name being logged to a journal entry, prev_entry - A Metadata entry that has previously being logged to a journal entry. Example: log<level::DEBUG>( msg("Info trace to log filename"), entry(file_not_found::file_name::str, my_filename)); elog<file_not_found>(file_not_found::errnum(2), file_not_found::file_path("/tmp/"), prev_entry<file_not_found::file_name>()); Change-Id: Ic51cee80b58e341c071c366c5e2146fd6694012c Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
OpenPOWER on IntegriCloud