mem-cache: Add stats for failed compressions
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 2 Apr 2020 20:35:53 +0000 (22:35 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 31 Aug 2020 17:45:43 +0000 (17:45 +0000)
commitbc92a06cf516740b1275393c8bc6c117102ddfc4
tree733136e31accf8c8e2153aaf0a58be210406bb45
parent53ef7c1e6cca6b355fa63bbdfdd6d94fd660aaac
mem-cache: Add stats for failed compressions

Add statistics to keep track of the number of times compression
has failed to provide blocks whose compressed size passes the
size threshold.

Also, update the compressed data's size if compression fails.

Change-Id: If3479572bf114f07911238c602ffef3a90b6a931
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33384
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/compressors/base.cc
src/mem/cache/compressors/base.hh