diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-07-12 19:40:34 -0500 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-07-26 03:50:00 -0500 |
commit | f9009a2bc6e0d0f1ae646a2209a2dd750a7df1ab (patch) | |
tree | 659113aa0246e9967c982d70c7a1561ca8f5a42b /dump_manager.cpp | |
parent | 764d1b2255b4f66ba9bf80024ff425fe983d3528 (diff) | |
download | phosphor-debug-collector-f9009a2bc6e0d0f1ae646a2209a2dd750a7df1ab.tar.gz phosphor-debug-collector-f9009a2bc6e0d0f1ae646a2209a2dd750a7df1ab.zip |
Add support to create dump in the Dump ID specific location
Change-Id: Iccfe13bdbcfe539d1a8dd2f1726be5539b383bc5
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Diffstat (limited to 'dump_manager.cpp')
-rw-r--r-- | dump_manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dump_manager.cpp b/dump_manager.cpp index 3d8bdc2..d5150d3 100644 --- a/dump_manager.cpp +++ b/dump_manager.cpp @@ -42,11 +42,12 @@ uint32_t Manager::captureDump( { pid_t pid = fork(); - // TODO openbmc/openbmc#1795 - // Add Dump location info. if (pid == 0) { - execl("/usr/bin/ffdc", "ffdc", nullptr); + fs::path dumpPath(BMC_DUMP_PATH); + + dumpPath /= std::to_string(lastEntryId + 1); + execl("/usr/bin/ffdc", "ffdc", "-d", dumpPath.c_str(), nullptr); //ffdc script execution is failed. auto error = errno; |