From 7e089cd9b1a86d70040923b33f5b54a5510274ac Mon Sep 17 00:00:00 2001 From: Daon Park Date: Tue, 29 Oct 2024 09:59:11 +0000 Subject: [PATCH] dump: Skip nodes during graphviz dump If a node is marked as True in the skip variable, the dump file will not record that node. Signed-off-by: Daon Park --- cmds/dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmds/dump.c b/cmds/dump.c index 74719f11e..89733d400 100644 --- a/cmds/dump.c +++ b/cmds/dump.c @@ -1258,8 +1258,9 @@ static void print_graph_to_graphviz(struct uftrace_graph_node *node, struct uftr { struct uftrace_graph_node *child; unsigned long n_calls = node->nr_calls; + bool skip = node->skip; - if (n_calls) { + if (n_calls && !skip) { struct uftrace_graph_node *parent = node->parent; pr_out(" ");