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

Function create_cache

libCacheSim/cache/plugin.c:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93cache_t *create_cache(const char *const cache_alg_name,
94 common_cache_params_t cc_params, void *specific_params) {
95 cache_t *cache =
96 create_cache_internal(cache_alg_name, cc_params, specific_params);
97 if (cache == NULL) {
98 cache = create_cache_external(cache_alg_name, cc_params, specific_params);
99 }
100 if (cache == NULL) {
101 ERROR("failed to create cache %s\n", cache_alg_name);
102 abort();
103 }
104 return cache;
105}
106
107#ifdef __cplusplus
108}

Callers 3

gen_miss_traceMethod · 0.50
output_mrcMethod · 0.50
runMethod · 0.50

Calls 2

create_cache_internalFunction · 0.85
create_cache_externalFunction · 0.85

Tested by

no test coverage detected