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

Function new_request

libCacheSim/include/libCacheSim/request.h:77–89  ·  view source on GitHub ↗

* allocate a new request_t struct and fill in necessary field * @return */

Source from the content-addressed store, hash-verified

75 * @return
76 */
77static inline request_t *new_request(void) {
78 request_t *req = my_malloc(request_t);
79 memset(req, 0, sizeof(request_t));
80 req->obj_size = 1;
81 req->op = OP_NOP;
82 req->valid = true;
83 req->obj_id = 0;
84 req->clock_time = 0;
85 req->hv = 0;
86 req->next_access_vtime = -2;
87 req->ttl = 0;
88 return req;
89}
90
91/**
92 * copy the req_src to req_dest

Callers 15

mainFunction · 0.85
simulateFunction · 0.85
gen_miss_traceMethod · 0.85
mainFunction · 0.85
test_reader_basicFunction · 0.85
test_reader_more1Function · 0.85
test_reader_more2Function · 0.85
test_twrFunction · 0.85
runSimulationFunction · 0.85
runSimFunction · 0.85
cache_evict_baseFunction · 0.85

Calls

no outgoing calls

Tested by 6

mainFunction · 0.68
test_reader_basicFunction · 0.68
test_reader_more1Function · 0.68
test_reader_more2Function · 0.68
test_twrFunction · 0.68