Extending the Simulator
drcachesim tool was designed to be extensible, allowing users to easily model different caching devices, implement different models, and gather custom statistics.
To model different caching devices, subclass the
simulator_t, caching_device_t, caching_device_block_t, caching_device_stats_t classes.
To implement a different cache model, subclass the
cache_t class and override the
Statistics gathering is separated out into the
caching_device_stats_t class. To implement custom statistics, subclass
caching_device_stats_t and override the