Lines Matching refs:node

23 /* Capture same node ID across cluster  */
224 rte_node_t id = graph_node->node->id;
226 struct rte_node *node;
232 /* Iterate over cluster node array to find node ID match */
234 /* Found an existing node in the reel */
236 node = graph_node_id_to_ptr(graph, id);
237 if (node == NULL)
240 "Failed to find node %s in graph %s",
241 graph_node->node->name, graph->name);
243 cluster->nodes[cluster->nb_nodes++] = node;
249 /* Hey, it is a new node, allocate space for it in the reel */
258 memcpy(cluster->stat.name, graph_node->node->name, RTE_NODE_NAMESIZE);
259 cluster->stat.id = graph_node->node->id;
261 node = graph_node_id_to_ptr(graph, id);
262 if (node == NULL)
263 SET_ERR_JMP(ENOENT, free, "Failed to find node %s in graph %s",
264 graph_node->node->name, graph->name);
265 cluster->nodes[cluster->nb_nodes++] = node;
266 if (graph_node->node->xstats) {
267 cluster->stat.xstat_cntrs = graph_node->node->xstats->nb_xstats;
269 sizeof(uint64_t) * graph_node->node->xstats->nb_xstats,
272 SET_ERR_JMP(ENOMEM, free, "Failed to allocate memory node %s graph %s",
273 graph_node->node->name, graph->name);
276 sizeof(RTE_NODE_XSTAT_DESC_SIZE) * graph_node->node->xstats->nb_xstats,
280 SET_ERR_JMP(ENOMEM, free, "Failed to allocate memory node %s graph %s",
281 graph_node->node->name, graph->name);
286 graph_node->node->xstats->xstat_desc[i],
291 "Error description overflow node %s graph %s",
292 graph_node->node->name, graph->name);
465 struct rte_node *node;
472 node = cluster->nodes[count];
475 sched_objs += node->dispatch.total_sched_objs;
476 sched_fail += node->dispatch.total_sched_fail;
479 calls += node->total_calls;
480 objs += node->total_objs;
481 cycles += node->total_cycles;
482 realloc_count += node->realloc_count;
484 if (node->xstat_off == 0)
486 xstat = RTE_PTR_ADD(node, node->xstat_off);
546 struct rte_graph_cluster_node_stats *node = &cluster->stat;
548 node->ts = 0;
549 node->calls = 0;
550 node->objs = 0;
551 node->cycles = 0;
552 node->prev_ts = 0;
553 node->prev_calls = 0;
554 node->prev_objs = 0;
555 node->prev_cycles = 0;
556 node->realloc_count = 0;
557 for (i = 0; i < node->xstat_cntrs; i++)
558 node->xstat_count[i] = 0;