160d3e0b | 17-Jan-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
elog-gen.py : read multiple error yaml files
This change enables the elog-gen script to look at more than one error yaml file (and corresponding metadata yaml file). The input to the script had to b
elog-gen.py : read multiple error yaml files
This change enables the elog-gen script to look at more than one error yaml file (and corresponding metadata yaml file). The input to the script had to be changed to a yaml directory, containing error yaml files, instead of a single error yaml file.
The reason to support reading multiple error yaml files is that, without this, applications have to all dump their errors in a single big error yaml file. Now it's possible to write application/domain specific error yaml files; they just need to be exported to the same location, from where elog-gen.py can pick them.
Change-Id: I9418bf0e0b54a7b7f7701b337649cb8eb4c54913 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
9916119f | 16-Jan-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Fix types in error-logging YAML to match openbmc standards
Change-Id: If5e2e534740f0675ba9294905ae531e015aed85a Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> |
d310378f | 16-Jan-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Rename <Interface>.logging.yaml to <Interface>.metadata.yaml
This change is just for brevity.
Change-Id: Ie2360b19179837a1dc3675e96a4adcc2114f2bc6 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.c
Rename <Interface>.logging.yaml to <Interface>.metadata.yaml
This change is just for brevity.
Change-Id: Ie2360b19179837a1dc3675e96a4adcc2114f2bc6 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
b0d5e3dd | 16-Jan-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Update .gitignore
Change-Id: I2c2eb03e2c52a1cbfce654348ebd6a6157625396 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> |
09a05492 | 18-Jan-2017 |
Andrew Geissler <andrewg@us.ibm.com> |
Add in sdbusplus dependency
Change-Id: I414c2842840b0d623966f92b3a79d3223b52b299 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com> |
c0f0532d | 12-Jan-2017 |
Adriana Kobylak <anoo@us.ibm.com> |
Update log manager busname to match its systemd unit file
Change-Id: I9431b7d3df37fe92adaa9acb5172c8cfcdb38e4e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> |
8f7941ed | 14-Nov-2016 |
Adriana Kobylak <anoo@us.ibm.com> |
log_manager: Use sdbus++
Change-Id: Id2ad6a75b6ee3f7226c7cfd274dba24de89f9363 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> |
88eb1090 | 07-Nov-2016 |
Adriana Kobylak <anoo@us.ibm.com> |
YAML for event/error logging interfaces
Machine parseable DBus specification for the logging features. The Manager interface implements the Commit method to write entries to flash.
Change-Id: Id1e9
YAML for event/error logging interfaces
Machine parseable DBus specification for the logging features. The Manager interface implements the Commit method to write entries to flash.
Change-Id: Id1e9e2475427a7358acfbe829733977709de05bc Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
b599e788 | 11-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Add a .gitignore for all the automake generated files
Change-Id: I346fb1b482ac75828013ffb7ad58d3b000fa8542 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com> |
e8596300 | 21-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Break elog yaml files into two pieces
This is the final piece to supporting the phosphor-dbus-interfaces design where the errors are defined in one yaml file and their corresponding meta data is def
Break elog yaml files into two pieces
This is the final piece to supporting the phosphor-dbus-interfaces design where the errors are defined in one yaml file and their corresponding meta data is defined within another file.
Change-Id: Idd2e18c1fd82fccb1298a2570a484deb382954f8 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
f1f2cfa9 | 21-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Base error log namespaces on yaml file path
This is another step in the direction of getting us to support the error yaml file as it will be defined in the phosphor-dbus-interfaces repo.
Change-Id:
Base error log namespaces on yaml file path
This is another step in the direction of getting us to support the error yaml file as it will be defined in the phosphor-dbus-interfaces repo.
Change-Id: Ib437bea920f511bdbf541c3e2653bbf35a83fe92 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
33ff62a2 | 21-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Move the phosphor logging example yaml into sub directory
The real yaml will be defined in the phosphor-dbus-interfaces repo. This one will be an example one and used for testing. Future commits wi
Move the phosphor logging example yaml into sub directory
The real yaml will be defined in the phosphor-dbus-interfaces repo. This one will be an example one and used for testing. Future commits will refactor it to separate the error def from the meta data.
Change-Id: Id05f935cbc24fb030e2ba378423ef3261bf5f7fb Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
5e81bfb4 | 21-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Address new yaml format changes introduced by sdbusplus commit 7d7fda5
Patrick's commit for exceptions had a few tweaks to the yaml file format. This commit updates elog_gen.py to support them.
Ch
Address new yaml format changes introduced by sdbusplus commit 7d7fda5
Patrick's commit for exceptions had a few tweaks to the yaml file format. This commit updates elog_gen.py to support them.
Change-Id: I59261ab0fddefde67304cbb394c74b9c9c5e496f Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
efb31c45 | 15-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Move header generation tool and templates to sub-directories
This is being done to prep for exporting the tools and templates to be used by other repos
Change-Id: Ia93166ade2a0361eca86cde123875b95a
Move header generation tool and templates to sub-directories
This is being done to prep for exporting the tools and templates to be used by other repos
Change-Id: Ia93166ade2a0361eca86cde123875b95a44a1ef3 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
40cb653b | 11-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Template file for error code to meta data lookup
The generated file from this mako file will be used by the logging server to figure out which meta data is associated with input error codes.
Future
Template file for error code to meta data lookup
The generated file from this mako file will be used by the logging server to figure out which meta data is associated with input error codes.
Future commits will work this into our build process to generate the file.
Change-Id: Iadfdf1cbb51e4eae132facc25d4de43262359476 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
df048c14 | 10-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Update elog gen script to support the dbus specified errors
This work is in prep for running this python script against the errors defined in the phosphor-dbus-interfaces repo
Change-Id: I85e6f612a
Update elog gen script to support the dbus specified errors
This work is in prep for running this python script against the errors defined in the phosphor-dbus-interfaces repo
Change-Id: I85e6f612a5935391deaedc74aab06ca023c15703 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
d311bc8d | 16-Oct-2016 |
Adriana Kobylak <anoo@us.ibm.com> |
Add error/event log commit dbus method
Create error/event log based on message id (process id) and metadata values.
Change-Id: Iaf944130c4075ae2d2c192e5ef840451561791bc Signed-off-by: Adriana Kobyl
Add error/event log commit dbus method
Create error/event log based on message id (process id) and metadata values.
Change-Id: Iaf944130c4075ae2d2c192e5ef840451561791bc Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
1d5fa772 | 08-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Use full paths to enable bitbake builds of mako files
The mako python library requires full paths to the template files so use ${abs_srdir} to get full paths
Change-Id: If322c66eedc7584633b18b137ad
Use full paths to enable bitbake builds of mako files
The mako python library requires full paths to the template files so use ${abs_srdir} to get full paths
Change-Id: If322c66eedc7584633b18b137ad732be212359d6 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
1db1bd35 | 10-Oct-2016 |
Adriana Kobylak <anoo@us.ibm.com> |
Create log manager server
Error/event log dbus object with a placeholder method.
Change-Id: Icfa3f0dcddb3f47a62d8480a936bd8baa4b49760 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> |
184690df | 03-Nov-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Auto generate the error log definition hpp
Change-Id: I93ad7c62aa53e3c670b8c0b1b98b1b58436a38d5 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com> |
c830e0f4 | 18-Oct-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Build the required error log header file for elogs
Take the elog.yaml file and generate the required hpp file required for build time validation and error log processing.
A future commit will delet
Build the required error log header file for elogs
Take the elog.yaml file and generate the required hpp file required for build time validation and error log processing.
A future commit will delete elog-gen.hpp and will start dynamically generating it during build.
Change-Id: I21a87d959096a2541de69fde47f57f02482a00cc Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
6d910ad9 | 16-Oct-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Add exception generation to error logging
This commit puts basic exception support into the elog class. All errors will generate an exception with this commit.
This will most likely change over to
Add exception generation to error logging
This commit puts basic exception support into the elog class. All errors will generate an exception with this commit.
This will most likely change over to using the dbus exception class as a base in the future but that change will be transperent to the users.
Change-Id: Ibd02d4c204393a0cfb156805360161759cb6631e Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
show more ...
|
328889d5 | 10-Oct-2016 |
Andrew Geissler <andrewg@us.ibm.com> |
Add in test case which validates elog client interface
Change-Id: I5c5f7a550a8f272251893ff616408c41d32281f9 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com> |
f855c3e5 | 29-Sep-2016 |
Adriana Kobylak <anoo@us.ibm.com> |
Error / Event Log Framework
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
Error / Event Log Framework
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>
show more ...
|
91da4531 | 20-Jul-2016 |
Adriana Kobylak <anoo@us.ibm.com> |
Add logging log template
C++ template to log a message to journald. Usage: log<level::XX>(const char*, entry(*format), entry()...); log<level::XX>(char*, entry(*format), entry()...); Example
Add logging log template
C++ template to log a message to journald. Usage: log<level::XX>(const char*, entry(*format), entry()...); log<level::XX>(char*, entry(*format), entry()...); Example: log<level::DEBUG>( msg("Simple Example")); char *msg_str[] = "File not found"; log<level::DEBUG>( msg_str, entry("MY_METADATA=%s_%x, name, number)); An std::string can be passed via: example_string.c_str()), and entry("EXAMPLE_STRING=%s", example_string.c_str())). A future enhancement would be for 'entry' tuples to be individually validated with a similar approach as the gcc attribute format.
Change-Id: I82f4450468cc0676458a0ce56cf33c934a1a66ef Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|