Skip to content

Commit

Permalink
Added a new public method GetRejectCompressFail() to the ZSwapDebug c…
Browse files Browse the repository at this point in the history
…lass.
  • Loading branch information
xvitaly committed Oct 15, 2024
1 parent 8fe2eea commit 7d0635f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/zswapdebug/zswapdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 6 additions & 0 deletions src/lib/zswapdebug/zswapdebug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7d0635f

Please sign in to comment.