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

Function main

libCacheSim/bin/customized/SOSP23/flash/flash.cpp:115–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115int main(int argc, char *argv[]) {
116 struct arguments args;
117 parse_cmd(argc, argv, &args);
118 if (args.n_cache_size != 1) {
119 WARN("only support one cache size\n");
120 exit(0);
121 }
122 if (args.n_eviction_algo != 1) {
123 WARN("only support one eviction algorithm\n");
124 exit(0);
125 }
126
127 calWriteAmp(args.reader, args.caches[0]);
128
129 free_arg(&args);
130
131 return 0;
132}

Callers

nothing calls this directly

Calls 3

calWriteAmpFunction · 0.70
parse_cmdFunction · 0.50
free_argFunction · 0.50

Tested by

no test coverage detected