- Sep 11, 2020
-
-
Chirag Sharma authored
Change: -Serialize method does not use any of the watch functionalities, so defining set in serialization header as using watch header creates unnecessary dependency. Test: Added 3 test cases related to dump serialization. Ran the UTs on docker environment. Result: 1/1 debug_inif_test OK 1.48s Ok: 1 Expected Fail: 0 Fail: 0 Unexpected Pass: 0 Skipped: 0 Timeout: 0 Signed-off-by:
Chirag Sharma <chirshar@in.ibm.com> Change-Id: I6a88559bf407fa70a96dda3b31aaa1acd038c958
-
- Aug 21, 2020
-
-
Ramesh Iyyar authored
Removing autotools build infrastructure because, phosphor-debug-collector will support meson build tool so, maintaining two build tool is unnecessary so, removed. Signed-off-by:
Ramesh Iyyar <rameshi1@in.ibm.com> Change-Id: Ie6edf6d06ac11274d5925baa5054cbd8f670f791
-
- Aug 13, 2020
-
-
Ramesh Iyyar authored
In this commit enabled meson build infrastructure which is taking less time than autotools to build. Changes: - Same default value used for all build time configure option. - All external library checks are added into meson as well. - In meson, no need to mention list of files which are not required to install because, by default nothing will be installed. - Auto generated files are added into custom target and that will trigger when some target dependent with that. - In meson, enabled to treat warning as error so, modified few sources which are producing un-used variables. - Fixes made by removing those function parameters identifier alone. By using meson, can able to see below built improvement time between meson and autotools. meson: - time sh -c 'meson builddir -Dhost-dump-offload-transport=pldm -Dubifs-workaround=enabled; ninja -C builddir/' real 0m12.244s user 0m57.575s sys 0m7.793s autotools: - time sh -c 'autoreconf -i; ./configure ${CONFIGURE_FLAGS} --enable-ubifs-workaround --with-host-dump-offload-transport=pldm; make' real 1m16.539s user 1m2.738s sys 0m9.645s TestedBy: - meson builddir ninja -C builddir - meson builddir -Dubifs-workaround=enabled ninja -C builddir - meson builddir -Dubifs-workaround=disabled ninja -C builddir - meson builddir -Dhost-dump-offload-transport=pldm ninja -C builddir - meson builddir -Dhost-dump-offload-transport=pldm \ -Dubifs-workaround=enabled ninja -C builddir Note: Need to update openbmc phosphor-debug-collector recipe to use meson instead autotools, this will be updated once this patch got merged and also autotools build infrastructure will be removed as well. Change-Id: Iadf2d3542dc2556377e7b2f91f01b04d5f8d7218 Signed-off-by:
Ramesh Iyyar <rameshi1@in.ibm.com>
-
- Jul 24, 2020
-
-
Artem Senichev authored
The latest version of the Hostlogger supports multi-host mode, each host is served by a separate service instance. The service instance now uses SIG_USR1 signal to flush collected messages to a file. Tested: Run dreport inside the BMC console, the result dump archive contains host console logs. Change-Id: I2ba926dad79b362d0f4abac50619d7969a4f28f7 Signed-off-by:
Artem Senichev <a.senichev@yadro.com> Tested-by:
Artem Senichev <a.senichev@yadro.com>
-
- Jul 15, 2020
-
-
Chirag Sharma authored
In the dreport script there is a condition which checks for '/tmp' only. When the user passes directory as '/tmp/' this check fails. As a result the overall operation fails. This commit fixes this by treating '/tmp/' as a valid directory. Signed-off-by:
Chirag Sharma <chirshar@in.ibm.com> Change-Id: Ie11f96f0ff71bfb1fa4fedc59c40d8191116c5c6
-
- Jun 30, 2020
-
-
Dhruvaraj Subhashchandran authored
Add the support for reading the dump and writing to the path provided. The supported for writing the BMC dump is added. Tested using offloading a BMC dump to a remote system using NBD. Change-Id: I5250b41ed162905548a7d522b9dc86533d0a9a83 Signed-off-by:
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
-
- Jun 26, 2020
-
-
Alexander Filippov authored
Unblocking the `SIGCHLD` signal before the child process completes prevents the `callback()` from being ever called. This commit makes the blocking `SIGCHLD` once for the whole main process life by moving the corresponding code block to the main(). Tested: `callback()` now called when the child process completes. Change-Id: I553c683e5dfcbc0b33c72aa2d7b394f689772966 Signed-off-by:
Alexander Filippov <a.filippov@yadro.com>
-
- Jun 24, 2020
-
-
Dhruvaraj Subhashchandran authored
Based on the documentation sd_event_add_child will return EBUSY if the SIGCHLD is not blocked, so adding the code to block the SIGCHLD Testing: Without the patch CreateDump will fail and with the fix the CreateDump is working Signed-off-by:
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I33f250bdb472dca08588c48ffa663d561bc2bc84
-
- May 13, 2020
-
-
Patrick Williams authored
Signed-off-by:
Patrick Williams <patrick@stwcx.xyz> Change-Id: I927996a9ce14cfb6251c6d7a1d8be081d9369174
-
Patrick Williams authored
Signed-off-by:
Patrick Williams <patrick@stwcx.xyz> Change-Id: I9e4cfb1c3632a3b26f197a0af2e417e9824f7e72
-
- Apr 16, 2020
-
-
Andrew Geissler authored
Some code is coming that puts a new D-Bus object on the /xyz/openbmc_project/logging/ path. The addCallback() interface correctly verified the path was an entry but the delCallBack() path did not. Tested: Verified with this change that phosphor-dump-manager no longer core dumps when one of these new objects is deleted. Signed-off-by:
Andrew Geissler <geissonator@yahoo.com> Change-Id: Ie702e52b97bc484a44543719e10eab573f8ecb73
-
- Apr 04, 2020
-
-
Jayanth Othayoth authored
The python scripts in this repo supports both python2 and python3. Use python3 now since python2 is EOL. Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com> Change-Id: Ibcb2f2fdcdfbfa51a081586d34314afcba41ba87
-
- Mar 20, 2020
-
-
Dhruvaraj Subhashchandran authored
Host dumps are dumps which created and stored in the host but offloaded through BMC. With this change if the host dump needs to de downloaded the transport mechanism also needs to be provided --with-host-dump-offload-transport=<transport> for eg: --with-host-dump-offload-transport=pldm If no options provided the phosphor-dump-manager will be built with no host dump offload support and an exception will be thrown if someone tried to call the host dump offload function. Signed-off-by:
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I27311427d8ca8b06b9f33ff5f42bdc7ca87fdcd1
-
- Mar 18, 2020
-
-
Dhruvaraj Subhashchandran authored
Add call through pldm to request offloading the dump from host memory. Signed-off-by:
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I14fd7fdbab78222043cab8a98edd996fd01669c9
-
Jayanth Othayoth authored
Added support to sending the SetNumericEffecterValue PLDM command to the host to start dump offload. Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com> Change-Id: I30fe59b198b55ad439a182877c6b21cfd070245b
-
Dhruvaraj Subhashchandran authored
This commit implements notify method for notifying the creation of a new dump. Signed-off-by:
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ieb4fa29965b3a93b3dafa2251f354c44ca12db46
-
Dhruvaraj Subhashchandran authored
Add support for system dump entry by implementing sdbusplus::xyz::openbmc_project::Dump::Entry::server::System Signed-off-by:
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I9d16dab0e383651c906a21a2facefdb6482df12f
-
Dhruvaraj Subhashchandran authored
Created a base dump entry, who ever implementing a new dump type need to inherit from the base dump entry. Signed-off-by:
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ie85d393f75ec697a7b02b84d131a4a8c0116c3e7
-
- Mar 12, 2020
-
-
Stanley Chu authored
xyz.openbmc_project.Dump.Manager.service: Main process exited, code=dumped, status=11/SEGV xyz.openbmc_project.Dump.Manager.service: Failed with result 'core-dump'. During the process of deleting all dump entries, the operation on the iterator may lead to segv fault because the content that the iterator is pointing to has been freed. We can move the iterator to the next before deleting the entry. Signed-off-by:
Stanley Chu <yschu@nuvoton.com> Change-Id: I973e3d3f4df9dc52ee40423553c395e32d3b8d31
-
- Jun 18, 2019
-
-
Patrick Venture authored
Installs into bin instead of sbin per guidelines. Signed-off-by:
Patrick Venture <venture@google.com> Change-Id: I205f86bcaca77e9e99be201b671373ab950d2329
-
- Jun 12, 2019
-
-
Marri Devender Rao authored
The os-release file in the dump points to a symbolic link rather than the actual release details. As "cp -r" command is used to copy the contents of a symbolic link file, it copies the link rather than the actual file. Modified to use cp command to copy the contents of the file Tested: before fix root@witherspoon:/tmp# mkdir test1 root@witherspoon:/tmp# cp -r /etc/os-release test1/ root@witherspoon:/tmp# ls -la test1/ drwxr-xr-x 2 root root 60 Jun 6 12:27 . drwxrwxrwt 13 root root 320 Jun 6 12:26 .. lrwxrwxrwx 1 root root 21 Jun 6 12:27 os-release -> ../usr/lib/os-release after fix root@witherspoon:/tmp# mkdir test2 root@witherspoon:/tmp# cp /etc/os-release test2/ root@witherspoon:/tmp# ls -la test2/ -rw-r--r-- 1 root root 295 Jun 6 12:27 os-release Change-Id: I6980ffa40b925fb02be0bf53704d17ebc7995af0 Signed-off-by:
Marri Devender Rao <devenrao@in.ibm.com>
-
- Feb 13, 2019
-
-
Patrick Venture authored
Use the defaults in the pkg check where the default error message is sufficient to identify which package is missing. Change-Id: If14318cbb16f40cac4bd94b5b7d81cf9d3aacfdc Signed-off-by:
Patrick Venture <venture@google.com>
-
- Jan 30, 2019
-
-
Marri Devender Rao authored
Set the config value for the scripts that need to be invoked during dump collection for checkstop error. Checkstop dump enum type has value 4. Change-Id: Ic75fa0f800ed459b8e493b191eec18f144664655 Signed-off-by:
Marri Devender Rao <devenrao@in.ibm.com>
-
- Jan 22, 2019
-
-
Marri Devender Rao authored
Add errors to watch for through error YAML file Add support for checkstop error type Tested: Generating dumps for elog, core, checkstop type errors. Change-Id: Idd00ace2e3d0c472a74ec142e6d150e55e843a6f Signed-off-by:
Marri Devender Rao <devenrao@in.ibm.com>
-
- Nov 14, 2018
-
-
Artem Senichev authored
phosphor-hostlogger project stores host's console output data, such as boot logs or Linux kernel messages printed to the system console. https://github.com/openbmc/phosphor-hostlogger Tested: Run dreport inside the BMC console, the result dump archive must contains host console logs. Change-Id: Icc45888a43b42de78c93aa0bc0ba7a295f0a76e3 Signed-off-by:
Artem Senichev <artemsen@gmail.com> Tested-by:
Artem Senichev <artemsen@gmail.com>
-
- Oct 23, 2018
-
-
Jayanth Othayoth authored
Change-Id: Ide3f7c1e4e96ae07a99055a2a14e5d376e51d6b4 Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com>
-
- Oct 18, 2018
-
-
Jayanth Othayoth authored
Change-Id: Ib640ef7cea99ff505965182ec9900a2d53a8986e Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com> Signed-off-by:
Brad Bishop <bradleyb@fuzziesquirrel.com>
-
Brad Bishop authored
This allows us to not depend on specific include ordering. Change-Id: I4d2a552eb4b4d5dcf0aaf9ad9be3b86265ca469a Signed-off-by:
Brad Bishop <bradleyb@fuzziesquirrel.com>
-
- Oct 04, 2018
-
-
Vernon Mauery authored
Update configure.ac to choose the c++17 standard Change-Id: I3636e54a746c9f9312f5d01ac83113204ed78a46 Signed-off-by:
Vernon Mauery <vernon.mauery@linux.intel.com>
-
- Jun 12, 2018
-
-
William A. Kennington III authored
Requests come in the form "oa{sa{sv}}". However, the way sdbusplus was interpreting the type of our message "a{oa{sa{sv}}}" since tuples are not allowed to consume multiple arguments during the read call as that would be ambiguous. This fixes the type issues. Prior to the change to sdbusplus that introduces error handling for the read calls, the sd_bus_message_{enter,exit}_container were failing during the read on the pair. Luckily this produces the expected result for the read and our old code was "working". This also cleans up an unnecessary string move. Tested: Builds and no longer produces errors on zaius when elogs are added. Change-Id: Ifc5394f3f361e8932c939376bd0bf5b4e3ca589c Signed-off-by:
William A. Kennington III <wak@google.com>
-
- May 29, 2018
-
-
William A. Kennington III authored
Some of the signals we try and parse for error logs are not structured in the format we expect when parsing. When error logging is enabled in sdbusplus this causes the phosphor-dump-manager to crash. Fix this crashing by logging errors and ignoring the bad signals. Change-Id: Ieadcb7e95f622005382f3c4957bf1535e3bb1ef9 Signed-off-by:
William A. Kennington III <wak@google.com>
-
- May 21, 2018
-
-
Andrew Jeffery authored
Change-Id: I37b3967b1feeedf40677d79ca684070378123952 Signed-off-by:
Andrew Jeffery <andrew@aj.id.au>
-
- May 14, 2018
-
-
Joseph Reynolds authored
Resolves openbmc/openbmc#2905 Tested: static_assert only Change-Id: Ib3b74591ca2d26e5f4e0afac508fc248756e0905 Signed-off-by:
Joseph Reynolds <jrey@us.ibm.com>
-
- Apr 08, 2018
-
-
Gunnar Mills authored
Took a .gitignore from another repo and added a few repo specific items. Change-Id: I46c85976d8c89cb469d476357a412e9c06bb644e Signed-off-by:
Gunnar Mills <gmills@us.ibm.com>
-
Gunnar Mills authored
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: I192b40fcab98b64e39b3100d41ea025ca280d842 Signed-off-by:
Gunnar Mills <gmills@us.ibm.com>
-
- Feb 22, 2018
-
-
Brad Bishop authored
std::function is not found with a GCC 7.2 runtime. Change-Id: Id28ea8da225c6bae0742848ba3d379fbafcfc190 Tested: Built repository with GCC 7.2 Signed-off-by:
Brad Bishop <bradleyb@fuzziesquirrel.com>
-
- Feb 07, 2018
-
-
Jayanth Othayoth authored
Plugin used for collecting alt flash U-boot environment variables. Resolves openbmc/openbmc#2862 Change-Id: Ife6eec8e85640e1933771cd149c49f1579430473 Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com>
-
Jayanth Othayoth authored
Plugin used for collecting primary flash U-boot environment variables. Resolves partially openbmc/openbmc#2862 Change-Id: I9cffd936575311a39d8006b84a612f0223158fbb Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com>
-
- Jan 25, 2018
-
-
Jayanth Othayoth authored
dreport uses PID information from the elog or core file to collect PID based journal logs as part the BMC dump. Existing dreport skips journal log collection in case PID information is missing in the elog or core file. Proposed changes help to collect the last 500 journal entries when the PID is not present in the elog entry or core file. Resolves openbmc/openbmc#2716 Change-Id: Ib3d8dfea64ea17f4b020b429267294c36530848b Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com>
-
- Nov 10, 2017
-
-
Jayanth Othayoth authored
Resolves openbmc/openbmc#2537 Change-Id: Id5ce18da3652e39edf3b970a99c75424ed039c35 Signed-off-by:
Jayanth Othayoth <ojayanth@in.ibm.com>
-