MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / S3FIFO_current_params

Function S3FIFO_current_params

libCacheSim/cache/eviction/S3FIFO.c:411–416  ·  view source on GitHub ↗

parameter set up functions

Source from the content-addressed store, hash-verified

409// **** ****
410// ***********************************************************************
411static const char *S3FIFO_current_params(S3FIFO_params_t *params) {
412 static __thread char params_str[128];
413 snprintf(params_str, 128, "small-size-ratio=%.4lf,ghost-size-ratio=%.4lf,move-to-main-threshold=%d\n",
414 params->small_size_ratio, params->ghost_size_ratio, params->move_to_main_threshold);
415 return params_str;
416}
417
418static void S3FIFO_parse_params(cache_t *cache, const char *cache_specific_params) {
419 S3FIFO_params_t *params = (S3FIFO_params_t *)(cache->eviction_params);

Callers 1

S3FIFO_parse_paramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected