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

Function rte_latencystats_fill_values

dpdk/lib/latencystats/rte_latencystats.c:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static void
114rte_latencystats_fill_values(struct rte_metric_value *values)
115{
116 unsigned int i;
117 float *stats_ptr = NULL;
118
119 for (i = 0; i < NUM_LATENCY_STATS; i++) {
120 stats_ptr = RTE_PTR_ADD(glob_stats,
121 lat_stats_strings[i].offset);
122 values[i].key = i;
123 values[i].value = (uint64_t)floor((*stats_ptr)/
124 latencystat_cycles_per_ns());
125 }
126}
127
128static uint16_t
129add_time_stamps(uint16_t pid __rte_unused,

Callers 1

rte_latencystats_getFunction · 0.85

Calls 1

Tested by

no test coverage detected