parameter set up functions
| 409 | // **** **** |
| 410 | // *********************************************************************** |
| 411 | static 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 | |
| 418 | static void S3FIFO_parse_params(cache_t *cache, const char *cache_specific_params) { |
| 419 | S3FIFO_params_t *params = (S3FIFO_params_t *)(cache->eviction_params); |
no outgoing calls
no test coverage detected