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

Function service_dump_one

dpdk/lib/eal/common/rte_service.c:988–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988static void
989service_dump_one(FILE *f, uint32_t id)
990{
991 struct rte_service_spec_impl *s;
992 uint64_t service_calls;
993 uint64_t service_cycles;
994
995 service_calls = attr_get_service_calls(id);
996 service_cycles = attr_get_service_cycles(id);
997
998 /* avoid divide by zero */
999 if (service_calls == 0)
1000 service_calls = 1;
1001
1002 s = service_get(id);
1003
1004 fprintf(f, " %s: stats %d\tcalls %"PRIu64"\tcycles %"
1005 PRIu64"\tavg: %"PRIu64"\n",
1006 s->spec.name, service_stats_enabled(s), service_calls,
1007 service_cycles, service_cycles / service_calls);
1008}
1009
1010static void
1011service_dump_calls_per_lcore(FILE *f, uint32_t lcore)

Callers 1

rte_service_dumpFunction · 0.85

Calls 4

attr_get_service_callsFunction · 0.85
attr_get_service_cyclesFunction · 0.85
service_getFunction · 0.85
service_stats_enabledFunction · 0.85

Tested by

no test coverage detected