diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-08-09 06:19:32 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-22 20:48:18 +0000 |
commit | 104f57cf9c9067c8e431923406e6bc0bd67a5e5c (patch) | |
tree | a09f7128f131bc54bd67b66c896d6b4e25c3a9b9 /dump_manager.hpp | |
parent | ab7f920942ff0b6337b641b6f80ad6025e120220 (diff) | |
download | phosphor-debug-collector-104f57cf9c9067c8e431923406e6bc0bd67a5e5c.tar.gz phosphor-debug-collector-104f57cf9c9067c8e431923406e6bc0bd67a5e5c.zip |
Enhancement of Dump cap algorithm
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>
Diffstat (limited to 'dump_manager.hpp')
-rw-r--r-- | dump_manager.hpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/dump_manager.hpp b/dump_manager.hpp index 9856f1e..ef3cd22 100644 --- a/dump_manager.hpp +++ b/dump_manager.hpp @@ -64,7 +64,6 @@ class Manager : public CreateIface bus(bus), eventLoop(event.get()), lastEntryId(0), - activeDumpCount(0), dumpWatch(eventLoop, IN_NONBLOCK, IN_CLOSE_WRITE | IN_CREATE, @@ -137,11 +136,9 @@ class Manager : public CreateIface */ void removeWatch(const fs::path& path); - /** @brief Calculate per dump allowed size based on number of - * existing dumps and total dump size. Returns - * allowed size for a dump in kilo bytes. - * @returns 0 indicates no space is available in dump location - * non zero value indicates size of one dump. + /** @brief Calculate per dump allowed size based on the available + * size in the dump location. + * @returns dump size in kilobytes. */ size_t getAllowedSize(); @@ -157,9 +154,6 @@ class Manager : public CreateIface /** @brief Id of the last Dump entry */ uint32_t lastEntryId; - /** @brief active dump count */ - uint32_t activeDumpCount; - /** @brief Dump main watch object */ Watch dumpWatch; |