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

Function MClock_current_params

libCacheSim/cache/eviction/priv/MClock.c:409–421  ·  view source on GitHub ↗

parameter set up functions

Source from the content-addressed store, hash-verified

407// **** ****
408// ***********************************************************************
409static const char *MClock_current_params(cache_t *cache,
410 MClock_params_t *params) {
411 static __thread char params_str[128];
412 int n = snprintf(params_str, 128, "hand-pos=%.2lf", (params->hand_pos[0]));
413
414 for (int i = 1; i < params->n_hands; i++) {
415 n += snprintf(params_str + n, 128 - n, ":%.2lf", (params->hand_pos[i]));
416 }
417
418 snprintf(cache->cache_name + n, 128 - n, "\n");
419
420 return params_str;
421}
422
423static void MClock_parse_params(cache_t *cache,
424 const char *cache_specific_params) {

Callers 1

MClock_parse_paramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected