MCPcopy Create free account
hub / github.com/F-Stack/f-stack / timed_deletes

Function timed_deletes

dpdk/app/test/test_efd_perf.c:282–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static int
283timed_deletes(struct efd_perf_params *params)
284{
285 unsigned int i, a;
286 const uint64_t start_tsc = rte_rdtsc();
287 int32_t ret;
288
289 for (i = 0; i < KEYS_TO_ADD; i++) {
290 ret = rte_efd_delete(params->efd_table, test_socket_id, keys[i],
291 NULL);
292
293 if (ret != 0) {
294 printf("Error %d in rte_efd_delete - key=0x", ret);
295 for (a = 0; a < params->key_size; a++)
296 printf("%02x", keys[i][a]);
297 printf("\n");
298
299 return -1;
300 }
301 }
302
303 const uint64_t end_tsc = rte_rdtsc();
304 const uint64_t time_taken = end_tsc - start_tsc;
305
306 cycles[params->cycle][DELETE] = time_taken / KEYS_TO_ADD;
307
308 return 0;
309}
310
311static void
312perform_frees(struct efd_perf_params *params)

Callers 1

run_all_tbl_perf_testsFunction · 0.70

Calls 3

rte_efd_deleteFunction · 0.85
rte_rdtscFunction · 0.50
printfFunction · 0.50

Tested by

no test coverage detected