summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Enable support to handle InternalFailure type dump, during elog restoreJayanth Othayoth2017-09-146-22/+190
| | | | | | | Resolves openbmc/openbmc#2078 Change-Id: Iea47b9b7c0cd6cae21642057b21c4e99d85be1e8 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Capture dump when an error with the name InternalFailure is loggedJayanth Othayoth2017-09-126-3/+165
| | | | | Change-Id: I2a362b674022dbe1ea8bfe16876d0416f87d0af1 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Use dreport -p option to input optional pathJayanth Othayoth2017-09-121-1/+1
| | | | | | | dreport changed optional path option to -P. Change-Id: I73a3ab624800a18184f75f86e6e958763d870b63 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Enable "elog" data collection typeJayanth Othayoth2017-09-121-21/+75
| | | | | | | | Enabled this support dump collection during application specific error log commit. Change-Id: I297a2d28c7f302b5126fb7e0792be8b68d6928ac Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Update pid related variable namesJayanth Othayoth2017-09-121-6/+6
| | | | | | | Changed the pid variable name generic instead of type specific Change-Id: Ifc8cec327a68701128c3afe0ee602f53f407d606 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Change -f option to -pJayanth Othayoth2017-09-121-15/+15
| | | | | | | | Change optional file option to path. Valid paths are absolute file path or d-bus path based on type parameter. Change-Id: Ic167f9cc95f280f123d8b318c34c959952f1a78a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Replace eSEL usage by elog stringJayanth Othayoth2017-09-121-4/+4
| | | | | Change-Id: I0f56b55df797ba4a463f7842285aae4788b2724a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Fix typo in help messageJayanth Othayoth2017-09-121-1/+1
| | | | | | | Changed default size "unlimited" Change-Id: Ia7dcd1f3c0e0f7630abdbb2f8ab9d1a36d80b6c9 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add support for InternalFailure type dumpJayanth Othayoth2017-09-121-3/+5
| | | | | | | Dump is triggered during InternalFailure type error log commit. Change-Id: I0d3ffa318f4b45426c0064000e677b77c7a4c914 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport Fix typo in chassis state file nameJayanth Othayoth2017-09-121-1/+1
| | | | | Change-Id: I5037805703feb74d5f8450cde65fb490ba12a0f7 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Refactor core dump handling functions into core manager classJayanth Othayoth2017-09-123-26/+51
| | | | | Change-Id: I700ecf517f26332c0a5e0de87c77cffd94f6bb9a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Change Dump file storage locationJayanth Othayoth2017-09-011-1/+1
| | | | | | | | Changed the dump storage location from /tmp/dumps to /var/lib/phosphor-debug-collector/dumps. Change-Id: Ic77127e8e947cf7f15f62e1048604c9c3acaccd1 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add core file name validation in core managerJayanth Othayoth2017-09-012-14/+28
| | | | | | | | | | Move the core file name validation from dreport to core manager. systemd-coredump creates temporary file in core file path prior to actual core file creation. This check will help to limit dump creation only for the new core files. Change-Id: I196d3f372d85aae0a7a36ba7171e6bfd2ff4991b Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Fix for missing core file in the dumpJayanth Othayoth2017-08-261-1/+1
| | | | | | | Resolves openbmc/openbmc#2214 Change-Id: If01f2649335af6d2611c176eabf993796980ad2b Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Enabled dreport based dump data collectionJayanth Othayoth2017-08-221-7/+27
| | | | | | | Resolves openbmc/openbmc#1506 Change-Id: I83ead760b8d3ce285ed9421e54f0027652b4e534 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added time stamp in log messagesJayanth Othayoth2017-08-221-13/+14
| | | | | Change-Id: Ie6d67adbe6b499a7ad1edac7b2de945ea70b0ca4 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added error handling support in packaging functionJayanth Othayoth2017-08-221-18/+25
| | | | | Change-Id: I8c99fe708f9d5b90a6f868524c7694f520f8f23a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Enable dump collection based on typesJayanth Othayoth2017-08-221-1/+25
| | | | | Change-Id: I9babd0ce347a25aeed75c98ccc3686530efe38e2 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Implementation of extracting pid from the core file nameJayanth Othayoth2017-08-221-0/+24
| | | | | Change-Id: I5605f6f5697ccd4bffa58917b3c6d660a301c6cd Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Implementation of data collection functionJayanth Othayoth2017-08-221-0/+15
| | | | | | | | | | | Added support for running command in the command array and save the data into specified location. Added file level size check function, which helps to cap the final dreport log based on size provided by user. Change-Id: I5bb0f2629bf4b4dd7b86b6dd97d205c413af6fcf Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add command array support for type "core"Jayanth Othayoth2017-08-221-0/+46
| | | | | Change-Id: I1af8a3c26e05c916a3e6d342b0a39f7b37be296c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add command array support for type "user"Jayanth Othayoth2017-08-221-1/+194
| | | | | Change-Id: Ibe4e75746937d186caf33c14258045fc14c5e632 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Implementation of file size check functionJayanth Othayoth2017-08-221-0/+48
| | | | | Change-Id: Ief1b2ebea76f556ba00b2567f8f2db627155d9fd Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add summary logJayanth Othayoth2017-08-221-2/+12
| | | | | Change-Id: Ida6dc81be4103a0d37a0701a7c0d55b241e6fc1a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Enabled input parameter's validation and InitializationJayanth Othayoth2017-08-221-26/+89
| | | | | Change-Id: Icb9d890ef1bdf78ad6bac798b4038bb6973b0693 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Enhancement of Dump cap algorithmJayanth Othayoth2017-08-223-25/+28
| | | | | | | | | Added support for collecting mini dump data incase available dump size is less than maximum dump size. Introduced minimum dump size to achieve this. Change-Id: I266ff6ea71443974a99f6f5fe54fb9f12c90f2ab Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Cap the number of dumpsJayanth Othayoth2017-08-223-11/+65
| | | | | | | | | | | | | | | Calculate number of dumps allowed in a system based on individual dump Max size configured in the system. Algorithm: Setting Dump size to maximum size, if (dump entries + active dumps) is less than total allowed dump entries. Otherwise return error. Next patch will provide additional algorithm to cap the dump based on actual size of the dump files. Change-Id: Id8916a31d72f5c2f2f23eaf68062b829b7e4100c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Remove "cat /etc/version" from FFDC script.George Keishing2017-08-221-1/+0
| | | | | | | | This file is from older version of BMC, the newer no longer have this file as part of the FW. Change-Id: Iecda46592794517f80145f45f0ca32900a353885 Signed-off-by: George Keishing <gkeishin@in.ibm.com>
* dreport: Add packaging supportJayanth Othayoth2017-08-031-4/+48
| | | | | | | Resolves: openbmc/openbmc#1507 Change-Id: I15f76cd8e6652334bcfcc2923773d67fafcfed97 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Enable logging infrastructreJayanth Othayoth2017-08-031-4/+58
| | | | | Change-Id: Iaab787b58c82c60ed8b95d25d45937f1e01615ed Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add support for command line interfaceJayanth Othayoth2017-08-031-10/+70
| | | | | Change-Id: I5e373c68d61364d56dc0544b4f7924ad6ccde216 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Initial commit for dreport toolJayanth Othayoth2017-08-031-0/+47
| | | | | | | | | | dreport tool is used to capture configuration and debug information from BMC. This tool can be used for BMC application and commandline. This commit enables dreport --help option. Change-Id: I451db96c6ec0ed901e1bc557c073b3c7c21c7171 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* phosphor-debug-collector READMEGunnar Mills2017-08-021-0/+14
| | | | | Change-Id: I8b7752fed7ebe8d1b166441b4543e03fa442bf3c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add missing inotify flag in user initiated dump directory watchJayanth Othayoth2017-08-011-1/+1
| | | | | Change-Id: Ie229e5704820071fa429f4c98e72a11a667e2b92 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Include core file in FFDC tarballJayanth Othayoth2017-07-281-0/+1
| | | | | Change-Id: I924b6724c715b81da5dc9d53094358993dcd335a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* ffdc: Added -e option to enable dump specific functionsJayanth Othayoth2017-07-281-0/+14
| | | | | | | Added support for the dump specific filename format. Change-Id: I8771017c5a029675f98bca54170dc3330ac2c24d Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Include -e option in the ffdc during the dump collectionJayanth Othayoth2017-07-271-1/+1
| | | | | | | | | ffdc -e option is used to enable dump specific features. Resolves openbmc/openbmc#1795 Change-Id: Ib90e590ab48d37413890a77e7d28162a5f4d5733 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Restore dump d-bus objects during daemon startsJayanth Othayoth2017-07-273-1/+37
| | | | | | | | Use the dump files in the persistant location to rebuild the d-bus objects. Change-Id: Ia7b478649274a4681c802e11be4b2049eeed8e13 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Delete dump ID directory during dump entry deletionJayanth Othayoth2017-07-271-1/+1
| | | | | Change-Id: Ic77e86c9e45d4b25397a4b7cfd70e131a40bdfa8 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Dump entries properties update based on Dump file nameJayanth Othayoth2017-07-271-23/+42
| | | | | | | Added support to get id and epochtime from filename. Change-Id: I57064fc69c8fe67380d76bb4bdd71d3a1316179c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add support to enable dump collection for core dumpJayanth Othayoth2017-07-275-10/+71
| | | | | | | Implemented d-bus internal create function. Change-Id: I34088d4c084a5a086189f4bc9e84e53a39193501 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add support to create dump in the Dump ID specific locationJayanth Othayoth2017-07-261-3/+4
| | | | | Change-Id: Iccfe13bdbcfe539d1a8dd2f1726be5539b383bc5 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Enable user initiated dump child directory level file watchJayanth Othayoth2017-07-263-8/+48
| | | | | Change-Id: I38b1f0a06e96a465526ea1ac497e49dc5f778dd8 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Rename BMC Dump path BMC_DUMP_FILE_DIR to BMC_DUMP_PATH.Jayanth Othayoth2017-07-182-6/+4
| | | | | Change-Id: I85974e00c31f5179106674ececeb53072008a83d Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Handle filesystem exceptions during dump file removal.Jayanth Othayoth2017-07-181-5/+10
| | | | | Change-Id: If77e549ead60e6b6e21cd9069fbc0a324db6bc80 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Update core file monitor infrastructre using common inotifyJayanth Othayoth2017-07-1811-363/+119
| | | | | | | Resolves openbmc/openbmc#1510 Change-Id: I5f73c4330df8a5deab29e29201e8521740e6b047 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add support for user initiated BMC DumpJayanth Othayoth2017-07-183-1/+37
| | | | | | | | Added support for creating new dump entry d-bus objects for user request dump. Change-Id: I31d2f478418e312e0aa6cc321a885498cf6ec6d6 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add support for generic inotify based directory watch.Jayanth Othayoth2017-07-176-16/+268
| | | | | | | | Watch a directory for the changes based on user configuration and then report changes to the user. Change-Id: I9f53d3135dd4bff6187840c0c53d2a64509808cd Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* ffdc -d: enhancementJayanth Othayoth2017-07-091-2/+3
| | | | | | | Create user specified ffdc location incase not present in the BMC. Change-Id: If472ab34826b34037bc99cb978d5be77a51c30ec Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Implementation of create interface.Jayanth Othayoth2017-06-2913-75/+474
| | | | | | | | Both the external and internal Dump managers define "Create" interfaces. This commit implements these. Change-Id: If857ec6ea7267fd72e9b420e6b44fa68b6abab66 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
OpenPOWER on IntegriCloud