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

Function trace_meta_save

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

Source from the content-addressed store, hash-verified

354}
355
356static int
357trace_meta_save(struct trace *trace)
358{
359 char file_name[PATH_MAX];
360 FILE *f;
361 int rc;
362
363 rc = snprintf(file_name, PATH_MAX, "%s/metadata", trace->dir);
364 if (rc < 0)
365 return rc;
366
367 f = fopen(file_name, "w");
368 if (f == NULL)
369 return -errno;
370
371 rc = rte_trace_metadata_dump(f);
372
373 if (fclose(f))
374 rc = -errno;
375
376 return rc;
377}
378
379
380static inline int

Callers 1

rte_trace_saveFunction · 0.85

Calls 2

snprintfFunction · 0.85
rte_trace_metadata_dumpFunction · 0.85

Tested by

no test coverage detected