DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] graph: add some print to the node dump
@ 2024-10-22 12:28 Huichao cai
  2024-10-22 13:40 ` [EXTERNAL] " Kiran Kumar Kokkilagadda
  0 siblings, 1 reply; 3+ messages in thread
From: Huichao cai @ 2024-10-22 12:28 UTC (permalink / raw)
  To: jerinj, kirankumark, ndabilpuram, yanzhirun_163; +Cc: dev

The function node_dump add some printing of node information.

Signed-off-by: Huichao cai <chcchc88@163.com>
---
 lib/graph/graph_debug.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/graph/graph_debug.c b/lib/graph/graph_debug.c
index 9def306..37088ce 100644
--- a/lib/graph/graph_debug.c
+++ b/lib/graph/graph_debug.c
@@ -35,8 +35,17 @@
 	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]);
 }
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [EXTERNAL] [PATCH] graph: add some print to the node dump
  2024-10-22 12:28 [PATCH] graph: add some print to the node dump Huichao cai
@ 2024-10-22 13:40 ` Kiran Kumar Kokkilagadda
  2024-11-19 10:43   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Kiran Kumar Kokkilagadda @ 2024-10-22 13:40 UTC (permalink / raw)
  To: Huichao cai, Jerin Jacob, Nithin Kumar Dabilpuram, yanzhirun_163; +Cc: dev



> -----Original Message-----
> From: Huichao cai <chcchc88@163.com>
> Sent: Tuesday, October 22, 2024 5:58 PM
> To: Jerin Jacob <jerinj@marvell.com>; Kiran Kumar Kokkilagadda
> <kirankumark@marvell.com>; Nithin Kumar Dabilpuram
> <ndabilpuram@marvell.com>; yanzhirun_163@163.com
> Cc: dev@dpdk.org
> Subject: [EXTERNAL] [PATCH] graph: add some print to the node dump
> 
> The function node_dump add some printing of node information. Signed-off-
> by: Huichao cai <chcchc88@ 163. com> --- lib/graph/graph_debug. c | 11
> ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git
> a/lib/graph/graph_debug. c 
> The function node_dump add some printing of node information.
> 
> Signed-off-by: Huichao cai <chcchc88@163.com>
> ---
Acked-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>


>  lib/graph/graph_debug.c | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/graph/graph_debug.c b/lib/graph/graph_debug.c index
> 9def306..37088ce 100644
> --- a/lib/graph/graph_debug.c
> +++ b/lib/graph/graph_debug.c
> @@ -35,8 +35,17 @@
>  	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]);
>  }
> --
> 1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [EXTERNAL] [PATCH] graph: add some print to the node dump
  2024-10-22 13:40 ` [EXTERNAL] " Kiran Kumar Kokkilagadda
@ 2024-11-19 10:43   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2024-11-19 10:43 UTC (permalink / raw)
  To: Huichao cai
  Cc: Jerin Jacob, Nithin Kumar Dabilpuram, yanzhirun_163, dev,
	Kiran Kumar Kokkilagadda

> > The function node_dump add some printing of node information. Signed-off-
> > by: Huichao cai <chcchc88@ 163. com> --- lib/graph/graph_debug. c | 11
> > ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git
> > a/lib/graph/graph_debug. c 
> > The function node_dump add some printing of node information.
> > 
> > Signed-off-by: Huichao cai <chcchc88@163.com>
> > ---
> Acked-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>

Applied, thanks.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-19 10:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-22 12:28 [PATCH] graph: add some print to the node dump Huichao cai
2024-10-22 13:40 ` [EXTERNAL] " Kiran Kumar Kokkilagadda
2024-11-19 10:43   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).