Lines Matching refs:stat
24 struct rte_graph_cluster_node_stats stat; member
58 print_node(FILE *f, const struct rte_graph_cluster_node_stats *stat) in print_node() argument
61 const uint64_t prev_calls = stat->prev_calls; in print_node()
62 const uint64_t prev_objs = stat->prev_objs; in print_node()
63 const uint64_t cycles = stat->cycles; in print_node()
64 const uint64_t calls = stat->calls; in print_node()
65 const uint64_t objs = stat->objs; in print_node()
72 call_delta ? (double)((cycles - stat->prev_cycles) / call_delta) in print_node()
74 ts_per_hz = (double)((stat->ts - stat->prev_ts) / stat->hz); in print_node()
81 stat->name, calls, objs, stat->realloc_count, objs_per_call, in print_node()
87 const struct rte_graph_cluster_node_stats *stat) in graph_cluster_stats_cb() argument
93 if (stat->objs) in graph_cluster_stats_cb()
94 print_node(f, stat); in graph_cluster_stats_cb()
150 if (cluster->stat.id == id) { in stats_mem_populate()
173 memcpy(cluster->stat.name, graph_node->node->name, RTE_NODE_NAMESIZE); in stats_mem_populate()
174 cluster->stat.id = graph_node->node->id; in stats_mem_populate()
175 cluster->stat.hz = rte_get_timer_hz(); in stats_mem_populate()
325 rte_graph_cluster_stats_destroy(struct rte_graph_cluster_stats *stat) in rte_graph_cluster_stats_destroy() argument
327 return rte_free(stat); in rte_graph_cluster_stats_destroy()
334 struct rte_graph_cluster_node_stats *stat = &cluster->stat; in cluster_node_arregate_stats() local
347 stat->calls = calls; in cluster_node_arregate_stats()
348 stat->objs = objs; in cluster_node_arregate_stats()
349 stat->cycles = cycles; in cluster_node_arregate_stats()
350 stat->ts = rte_get_timer_cycles(); in cluster_node_arregate_stats()
351 stat->realloc_count = realloc_count; in cluster_node_arregate_stats()
357 struct rte_graph_cluster_node_stats *stat = &cluster->stat; in cluster_node_store_prev_stats() local
359 stat->prev_ts = stat->ts; in cluster_node_store_prev_stats()
360 stat->prev_calls = stat->calls; in cluster_node_store_prev_stats()
361 stat->prev_objs = stat->objs; in cluster_node_store_prev_stats()
362 stat->prev_cycles = stat->cycles; in cluster_node_store_prev_stats()
366 rte_graph_cluster_stats_get(struct rte_graph_cluster_stats *stat, bool skip_cb) in rte_graph_cluster_stats_get() argument
372 cluster = stat->clusters; in rte_graph_cluster_stats_get()
374 for (count = 0; count < stat->max_nodes; count++) { in rte_graph_cluster_stats_get()
377 rc = stat->fn(!count, (count == stat->max_nodes - 1), in rte_graph_cluster_stats_get()
378 stat->cookie, &cluster->stat); in rte_graph_cluster_stats_get()
382 cluster = RTE_PTR_ADD(cluster, stat->cluster_node_size); in rte_graph_cluster_stats_get()
387 rte_graph_cluster_stats_reset(struct rte_graph_cluster_stats *stat) in rte_graph_cluster_stats_reset() argument
392 cluster = stat->clusters; in rte_graph_cluster_stats_reset()
394 for (count = 0; count < stat->max_nodes; count++) { in rte_graph_cluster_stats_reset()
395 struct rte_graph_cluster_node_stats *node = &cluster->stat; in rte_graph_cluster_stats_reset()
406 cluster = RTE_PTR_ADD(cluster, stat->cluster_node_size); in rte_graph_cluster_stats_reset()