summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHuichao cai <[email protected]>2024-10-22 20:28:05 +0800
committerThomas Monjalon <[email protected]>2024-11-19 11:42:46 +0100
commit0787cdbce54381a3517c24ccec8bbb58215e17b3 (patch)
tree1b729e9befdf56452730bc7c223622760ef067ad /lib
parentba0a0e44f361cbc4667088a0c0e2d0b63f8dee20 (diff)
graph: add more infos to node dump
The function node_dump add some printing of node information. Signed-off-by: Huichao cai <[email protected]> Acked-by: Kiran Kumar Kokkilagadda <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/graph/graph_debug.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/graph/graph_debug.c b/lib/graph/graph_debug.c
index 9def3067ec..37088ce2cf 100644
--- a/lib/graph/graph_debug.c
+++ b/lib/graph/graph_debug.c
@@ -35,8 +35,17 @@ node_dump(FILE *f, struct node *n)
fprintf(f, " flags=0x%" PRIx64 "\n", n->flags);
fprintf(f, " addr=%p\n", n);
fprintf(f, " process=%p\n", n->process);
+ if (n->parent_id == RTE_NODE_ID_INVALID)
+ fprintf(f, " parent_id=RTE_NODE_ID_INVALID\n");
+ else
+ fprintf(f, " parent_id=%" PRIu32 "\n", n->parent_id);
+ fprintf(f, " init=%p\n", n->init);
+ fprintf(f, " fini=%p\n", n->fini);
+ fprintf(f, " xstats=%p\n", n->xstats);
+ fprintf(f, " next node addr=%p\n", STAILQ_NEXT(n, next));
+ if (STAILQ_NEXT(n, next))
+ fprintf(f, " next node name=%s\n", STAILQ_NEXT(n, next)->name);
fprintf(f, " nb_edges=%d\n", n->nb_edges);
-
for (i = 0; i < n->nb_edges; i++)
fprintf(f, " edge[%d] <%s>\n", i, n->next_nodes[i]);
}