dynamorio::drmemtrace::policy_bit_plru_t Class Reference

#include <policy_bit_plru.h>

Inheritance diagram for dynamorio::drmemtrace::policy_bit_plru_t:
dynamorio::drmemtrace::cache_replacement_policy_t

Public Member Functions

 policy_bit_plru_t (int num_sets, int associativity, int seed=-1)
 If seed is -1, a random seed will be used.
 
void access_update (int set_idx, int way, cache_access_outcome_t access_type) override
 Informs the replacement policy that an access has occurred.
 
void eviction_update (int set_idx, int way) override
 Informs the replacement policy that an eviction has occurred.
 
void invalidation_update (int set_idx, int way) override
 Informs the replacement policy that an invalidation has occurred.
 
std::string get_name () const override
 Returns the name of the replacement policy.
 

Detailed Description

A replacement policy that uses a bit per way to track access frequency.

On access, a way's bit is set to 1. Once all bits are set, the whole set's bits are set to 0. A random way with a 0 bit is chosen for replacement.


The documentation for this class was generated from the following file:
  • /home/runner/work/dynamorio/dynamorio/build_release-64/clients/include/drmemtrace/policy_bit_plru.h