[scudo] Support printing the status of cached blocks
authorChia-hung Duan <chiahungduan@google.com>
Wed, 19 Apr 2023 22:58:36 +0000 (22:58 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Thu, 20 Apr 2023 01:08:47 +0000 (01:08 +0000)
commitc5c0f9b400e55553a0c3ff281b3d172ea488fc37
tree7f3a5211fb41bc49de940d383d82f5525baac08f
parenteece19515570bc0eb85247904421ae5f09e33c4e
[scudo] Support printing the status of cached blocks

The output looks like,
  Stats: SharedTSDs: 2 available; total 8
    Shared TSD[0]:
      00 (    64): cached:   10 max:   26
      32 ( 65552): cached:    1 max:    2
    Shared TSD[1]:
      No block is cached.

Differential Revision: https://reviews.llvm.org/D148755
compiler-rt/lib/scudo/standalone/combined.h
compiler-rt/lib/scudo/standalone/local_cache.h
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
compiler-rt/lib/scudo/standalone/tsd_exclusive.h
compiler-rt/lib/scudo/standalone/tsd_shared.h