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

Function rte_trace_save

dpdk/lib/eal/common/eal_common_trace_utils.c:411–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411int
412rte_trace_save(void)
413{
414 struct trace *trace = trace_obj_get();
415 struct __rte_trace_header *header;
416 uint32_t count;
417 int rc = 0;
418
419 if (trace->nb_trace_mem_list == 0)
420 return rc;
421
422 rc = trace_mkdir();
423 if (rc < 0)
424 return rc;
425
426 rc = trace_meta_save(trace);
427 if (rc)
428 return rc;
429
430 rte_spinlock_lock(&trace->lock);
431 for (count = 0; count < trace->nb_trace_mem_list; count++) {
432 header = trace->lcore_meta[count].mem;
433 rc = trace_mem_save(trace, header, count);
434 if (rc)
435 break;
436 }
437 rte_spinlock_unlock(&trace->lock);
438 return rc;
439}

Callers 3

rte_eal_cleanupFunction · 0.85
rte_eal_cleanupFunction · 0.85
cmd_dump_parsedFunction · 0.85

Calls 6

trace_obj_getFunction · 0.85
trace_mkdirFunction · 0.85
trace_meta_saveFunction · 0.85
trace_mem_saveFunction · 0.85
rte_spinlock_lockFunction · 0.50
rte_spinlock_unlockFunction · 0.50

Tested by

no test coverage detected