diff --git a/src/lib/zswapdebug/zswapdebug.cpp b/src/lib/zswapdebug/zswapdebug.cpp index 8ae4880..959fb90 100644 --- a/src/lib/zswapdebug/zswapdebug.cpp +++ b/src/lib/zswapdebug/zswapdebug.cpp @@ -50,6 +50,11 @@ long ZSwapDebug::GetRejectReclaimFail() const return ReadModuleDebugValue("reject_reclaim_fail"); } +long ZSwapDebug::GetRejectCompressFail() const +{ + return ReadModuleDebugValue("reject_compress_fail"); +} + long ZSwapDebug::GetSameFilledPages() const { return ReadModuleDebugValue("same_filled_pages"); diff --git a/src/lib/zswapdebug/zswapdebug.hpp b/src/lib/zswapdebug/zswapdebug.hpp index 5856f98..b0cb5aa 100644 --- a/src/lib/zswapdebug/zswapdebug.hpp +++ b/src/lib/zswapdebug/zswapdebug.hpp @@ -68,6 +68,12 @@ class ZSwapDebug */ long GetRejectReclaimFail() const; + /** + * Gets the number of compression failures. + * @returns Reject compression failures count. + */ + long GetRejectCompressFail() const; + /** * Gets the number of same filled pages. * @returns Same filled pages count.